{"id":"CVE-2026-25223","aliases":["GHSA-jx2c-rxcm-jvmq"],"summary":"Fastify's Content-Type header tab character allows body validation bypass","published_at":"2026-02-02T22:23:29Z","modified_at":"2026-09-16T12:04:20.445Z","products":[],"rating":{"severity":"high","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false,"red_hat":"Important","vendor_ratings":[{"source":"Red Hat","rating":"Important"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.008620000444352627,"percentile":0.5931199789047241,"date":"2026-11-19T00:00:00Z"},"priority":9.5,"details":"Fastify is a fast and low overhead web framework, for Node.js. Prior to version 5.7.2, a validation bypass vulnerability exists in Fastify where request body validation schemas specified by Content-Type can be completely circumvented. By appending a tab character (\\t) followed by arbitrary content to the Content-Type header, attackers can bypass body validation while the server still processes the body as the original content type. This issue has been patched in version 5.7.2.","affected_stack":[],"affected_other":[{"ecosystem":"CVE","package":"fastify/fastify","versions":["< 5.7.2"],"provider":"cvelistv5","source":"CVE-2026-25223","relation":"self"},{"ecosystem":"NVD","package":"fastify:fastify","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.7.2"}]}],"fixed":["5.7.2"],"provider":"nvd","source":"CVE-2026-25223","relation":"self"},{"ecosystem":"TuxCare:npm","package":"fastify","purl":"pkg:npm/fastify","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.29.1-tuxcare.0"},{"fixed":"4.29.1-tuxcare.1"}]}],"versions":["4.29.1"],"fixed":["4.29.1-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1772669615","relation":"upstream"},{"ecosystem":"TuxCare:npm","package":"fastify","purl":"pkg:npm/fastify","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.29.5-tuxcare.0"},{"fixed":"3.29.5-tuxcare.3"}]}],"versions":["3.29.5","3.29.5-tuxcare.1","3.29.5-tuxcare.2"],"fixed":["3.29.5-tuxcare.3"],"provider":"osv","source":"CLSA-2026-1773620080","relation":"upstream"},{"ecosystem":"TuxCare:npm","package":"fastify","purl":"pkg:npm/fastify","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.2.1-tuxcare.0"},{"fixed":"5.2.1-tuxcare.2"}]}],"versions":["5.2.1","5.2.1-tuxcare.1"],"fixed":["5.2.1-tuxcare.2"],"provider":"osv","source":"CLSA-2026-1790110789","relation":"upstream"},{"ecosystem":"npm","package":"fastify","purl":"pkg:npm/fastify","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"5.7.2"}]}],"fixed":["5.7.2"],"provider":"osv","source":"GHSA-jx2c-rxcm-jvmq","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Red Hat Enterprise Linux AI (RHEL AI) 3","cpe":"cpe:/a:redhat:enterprise_linux_ai:3","status":"affected","packages":["rhelai3/bootc-cuda-rhel9","rhelai3/disk-image-cuda-rhel9"],"package_count":2,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2026-25223"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"affected","packages":["rhoai/odh-mod-arch-gen-ai-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2026-25223"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI 2.16","cpe":"cpe:/a:redhat:openshift_ai:2.16::el8","status":"fixed","packages":["rhoai"],"package_count":1,"fixed":[],"advisories":["RHSA-2026:5807"],"provider":"redhat-vex","source":"CVE-2026-25223"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI 2.16","cpe":"cpe:/a:redhat:openshift_ai:2.16::el8","status":"not_affected","packages":["rhoai"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-25223"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI 2.25","cpe":"cpe:/a:redhat:openshift_ai:2.25::el9","status":"fixed","packages":["rhoai"],"package_count":1,"fixed":[],"advisories":["RHSA-2026:10184"],"provider":"redhat-vex","source":"CVE-2026-25223"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI 2.25","cpe":"cpe:/a:redhat:openshift_ai:2.25::el9","status":"not_affected","packages":["rhoai"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-25223"},{"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces 3.27","cpe":"cpe:/a:redhat:openshift_devspaces:3.27::el9","status":"fixed","packages":["devspaces"],"package_count":1,"fixed":[],"advisories":["RHSA-2026:6192"],"provider":"redhat-vex","source":"CVE-2026-25223"},{"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces 3.27","cpe":"cpe:/a:redhat:openshift_devspaces:3.27::el9","status":"not_affected","packages":["devspaces"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-25223"}],"records":[{"provider":"osv","source_id":"CLSA-2026-1772669615","relation":"upstream","url":"https://osv.dev/vulnerability/CLSA-2026-1772669615","published_at":"2026-08-04T14:52:10Z","modified_at":"2026-10-15T09:45:27.086204Z","summary":"TuxCare security update for fastify (2 CVEs)","details":"TuxCare rebuilt fastify to address 2 CVEs. Fixed in 4.29.1-tuxcare.1.","severity":[],"affected":[{"ecosystem":"TuxCare:npm","package":"fastify","purl":"pkg:npm/fastify","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.29.1-tuxcare.0"},{"fixed":"4.29.1-tuxcare.1"}]}],"versions":["4.29.1"],"fixed":["4.29.1-tuxcare.1"],"provider":"osv","source":"CLSA-2026-1772669615","relation":"upstream"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"CLSA-2026-1773620080","relation":"upstream","url":"https://osv.dev/vulnerability/CLSA-2026-1773620080","published_at":"2026-08-04T14:52:11Z","modified_at":"2026-10-15T09:47:28.8086Z","summary":"TuxCare security update for fastify (2 CVEs)","details":"TuxCare rebuilt fastify to address 2 CVEs. Fixed in 3.29.5-tuxcare.3.","severity":[],"affected":[{"ecosystem":"TuxCare:npm","package":"fastify","purl":"pkg:npm/fastify","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.29.5-tuxcare.0"},{"fixed":"3.29.5-tuxcare.3"}]}],"versions":["3.29.5","3.29.5-tuxcare.1","3.29.5-tuxcare.2"],"fixed":["3.29.5-tuxcare.3"],"provider":"osv","source":"CLSA-2026-1773620080","relation":"upstream"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"CLSA-2026-1790110789","relation":"upstream","url":"https://osv.dev/vulnerability/CLSA-2026-1790110789","published_at":"2026-09-22T20:59:49Z","modified_at":"2026-10-15T09:45:34.375513Z","summary":"TuxCare security update for fastify (3 CVEs)","details":"TuxCare rebuilt fastify to address 3 CVEs. Fixed in 5.2.1-tuxcare.2.","severity":[],"affected":[{"ecosystem":"TuxCare:npm","package":"fastify","purl":"pkg:npm/fastify","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.2.1-tuxcare.0"},{"fixed":"5.2.1-tuxcare.2"}]}],"versions":["5.2.1","5.2.1-tuxcare.1"],"fixed":["5.2.1-tuxcare.2"],"provider":"osv","source":"CLSA-2026-1790110789","relation":"upstream"}],"product_status":[],"references":[]},{"provider":"cvelistv5","source_id":"CVE-2026-25223","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2026-25223","license":"CC-BY-4.0","published_at":"2026-02-03T21:21:40.268Z","modified_at":"2026-09-16T12:04:20.445Z","summary":"Fastify's Content-Type header tab character allows body validation bypass","details":"Fastify is a fast and low overhead web framework, for Node.js. Prior to version 5.7.2, a validation bypass vulnerability exists in Fastify where request body validation schemas specified by Content-Type can be completely circumvented. By appending a tab character (\\t) followed by arbitrary content to the Content-Type header, attackers can bypass body validation while the server still processes the body as the original content type. This issue has been patched in version 5.7.2.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","source":"CVE-2026-25223"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","source":"redhat-SADP:CVE-2026-25223"}],"affected":[{"ecosystem":"CVE","package":"fastify/fastify","versions":["< 5.7.2"],"provider":"cvelistv5","source":"CVE-2026-25223","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/fastify/fastify/security/advisories/GHSA-jx2c-rxcm-jvmq"},{"type":"WEB","url":"https://github.com/fastify/fastify/commit/32d7b6add39ddf082d92579a58bea7018c5ac821"},{"type":"WEB","url":"https://hackerone.com/reports/3464114"},{"type":"WEB","url":"https://fastify.dev/docs/latest/Reference/Validation-and-Serialization"},{"type":"WEB","url":"https://github.com/fastify/fastify/blob/759e9787b5669abf953068e42a17bffba7521348/lib/content-type-parser.js#L125"},{"type":"WEB","url":"https://github.com/fastify/fastify/blob/759e9787b5669abf953068e42a17bffba7521348/lib/validation.js#L272"}]},{"provider":"nvd","source_id":"CVE-2026-25223","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25223","severity":[],"affected":[{"ecosystem":"NVD","package":"fastify:fastify","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.7.2"}]}],"fixed":["5.7.2"],"provider":"nvd","source":"CVE-2026-25223","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"GHSA-jx2c-rxcm-jvmq","relation":"self","url":"https://osv.dev/vulnerability/GHSA-jx2c-rxcm-jvmq","license":"CC-BY-4.0","published_at":"2026-02-02T22:23:29Z","modified_at":"2026-02-04T18:07:32.787861Z","summary":"Fastify's Content-Type header tab character allows body validation bypass","details":"### Impact\n\nA validation bypass vulnerability exists in Fastify where request body validation schemas specified by Content-Type can be completely circumvented. By appending a tab character (`\\t`) followed by arbitrary content to the Content-Type header, attackers can bypass body validation while the server still processes the body as the original content type.\n\nFor example, a request with `Content-Type: application/json\\ta` will bypass JSON schema validation but still be parsed as JSON.\n\nThis vulnerability affects all Fastify users who rely on Content-Type-based body validation schemas to enforce data integrity or security constraints. The concrete impact depends on the handler implementation and the level of trust placed in the validated request body, but at the library level, this allows complete bypass of body validation for any handler using Content-Type-discriminated schemas.\n\nThis issue is a regression or missed edge case from the fix for a previously reported vulnerability.\n\n### Patches\n\nThis vulnerability has been patched in **Fastify v5.7.2**. All users should upgrade to this version or later immediately.\n\n### Workarounds\n\nIf upgrading is not immediately possible, user can implement a custom `onRequest` hook to reject requests containing tab characters in the Content-Type header:\n\n```javascript\nfastify.addHook('onRequest', async (request, reply) => {\n  const contentType = request.headers['content-type']\n  if (contentType && contentType.includes('\\t')) {\n    reply.code(400).send({ error: 'Invalid Content-Type header' })\n  }\n})\n```\n\n### Resources\n\n- https://github.com/fastify/fastify/blob/759e9787b5669abf953068e42a17bffba7521348/lib/validation.js#L272\n- https://github.com/fastify/fastify/blob/759e9787b5669abf953068e42a17bffba7521348/lib/content-type-parser.js#L125\n- [Fastify Validation and Serialization Documentation](https://fastify.dev/docs/latest/Reference/Validation-and-Serialization/)\n- https://hackerone.com/reports/3464114","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","source":"GHSA-jx2c-rxcm-jvmq"}],"affected":[{"ecosystem":"npm","package":"fastify","purl":"pkg:npm/fastify","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"5.7.2"}]}],"fixed":["5.7.2"],"provider":"osv","source":"GHSA-jx2c-rxcm-jvmq","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/fastify/fastify/security/advisories/GHSA-jx2c-rxcm-jvmq"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25223"},{"type":"WEB","url":"https://github.com/fastify/fastify/commit/32d7b6add39ddf082d92579a58bea7018c5ac821"},{"type":"WEB","url":"https://hackerone.com/reports/3464114"},{"type":"WEB","url":"https://fastify.dev/docs/latest/Reference/Validation-and-Serialization"},{"type":"PACKAGE","url":"https://github.com/fastify/fastify"},{"type":"WEB","url":"https://github.com/fastify/fastify/blob/759e9787b5669abf953068e42a17bffba7521348/lib/content-type-parser.js#L125"},{"type":"WEB","url":"https://github.com/fastify/fastify/blob/759e9787b5669abf953068e42a17bffba7521348/lib/validation.js#L272"}]},{"provider":"redhat-vex","source_id":"CVE-2026-25223","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2026-25223","license":"CC-BY-4.0","published_at":"2026-02-03T21:21:40.268Z","modified_at":"2026-08-10T11:00:52.758843Z","summary":"Fastify: Fastify: Validation bypass due to malformed Content-Type header leading to integrity impact","details":"A flaw was found in Fastify, a web framework for Node.js. A remote attacker can exploit a validation bypass vulnerability by appending a tab character followed by arbitrary content to the Content-Type header. This circumvents the request body validation schemas, allowing the server to process the body as the original content type without proper validation. This could lead to unexpected data processing and potential integrity impact.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","source":"CVE-2026-25223"},{"type":"Red Hat","score":"Important","source":"CVE-2026-25223"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Red Hat Enterprise Linux AI (RHEL AI) 3","cpe":"cpe:/a:redhat:enterprise_linux_ai:3","status":"affected","packages":["rhelai3/bootc-cuda-rhel9","rhelai3/disk-image-cuda-rhel9"],"package_count":2,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2026-25223"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"affected","packages":["rhoai/odh-mod-arch-gen-ai-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2026-25223"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI 2.16","cpe":"cpe:/a:redhat:openshift_ai:2.16::el8","status":"fixed","packages":["rhoai"],"package_count":1,"fixed":[],"advisories":["RHSA-2026:5807"],"provider":"redhat-vex","source":"CVE-2026-25223"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI 2.16","cpe":"cpe:/a:redhat:openshift_ai:2.16::el8","status":"not_affected","packages":["rhoai"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-25223"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI 2.25","cpe":"cpe:/a:redhat:openshift_ai:2.25::el9","status":"fixed","packages":["rhoai"],"package_count":1,"fixed":[],"advisories":["RHSA-2026:10184"],"provider":"redhat-vex","source":"CVE-2026-25223"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI 2.25","cpe":"cpe:/a:redhat:openshift_ai:2.25::el9","status":"not_affected","packages":["rhoai"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-25223"},{"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces 3.27","cpe":"cpe:/a:redhat:openshift_devspaces:3.27::el9","status":"fixed","packages":["devspaces"],"package_count":1,"fixed":[],"advisories":["RHSA-2026:6192"],"provider":"redhat-vex","source":"CVE-2026-25223"},{"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces 3.27","cpe":"cpe:/a:redhat:openshift_devspaces:3.27::el9","status":"not_affected","packages":["devspaces"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-25223"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-25223.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-25223"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2436560"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-25223"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25223"},{"type":"WEB","url":"https://fastify.dev/docs/latest/Reference/Validation-and-Serialization"},{"type":"WEB","url":"https://github.com/fastify/fastify/blob/759e9787b5669abf953068e42a17bffba7521348/lib/content-type-parser.js#L125"},{"type":"WEB","url":"https://github.com/fastify/fastify/blob/759e9787b5669abf953068e42a17bffba7521348/lib/validation.js#L272"},{"type":"WEB","url":"https://github.com/fastify/fastify/commit/32d7b6add39ddf082d92579a58bea7018c5ac821"},{"type":"WEB","url":"https://github.com/fastify/fastify/security/advisories/GHSA-jx2c-rxcm-jvmq"},{"type":"WEB","url":"https://hackerone.com/reports/3464114"}]}],"references":[{"type":"WEB","url":"https://github.com/fastify/fastify/security/advisories/GHSA-jx2c-rxcm-jvmq"},{"type":"WEB","url":"https://github.com/fastify/fastify/commit/32d7b6add39ddf082d92579a58bea7018c5ac821"},{"type":"WEB","url":"https://hackerone.com/reports/3464114"},{"type":"WEB","url":"https://fastify.dev/docs/latest/Reference/Validation-and-Serialization"},{"type":"WEB","url":"https://github.com/fastify/fastify/blob/759e9787b5669abf953068e42a17bffba7521348/lib/content-type-parser.js#L125"},{"type":"WEB","url":"https://github.com/fastify/fastify/blob/759e9787b5669abf953068e42a17bffba7521348/lib/validation.js#L272"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25223"},{"type":"PACKAGE","url":"https://github.com/fastify/fastify"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-25223.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-25223"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2436560"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-25223"}],"sources":[{"provider":"osv","source_id":"CLSA-2026-1772669615","url":"https://osv.dev/vulnerability/CLSA-2026-1772669615","modified_at":"2026-10-15T09:45:27.086204Z","relation":"upstream"},{"provider":"osv","source_id":"CLSA-2026-1773620080","url":"https://osv.dev/vulnerability/CLSA-2026-1773620080","modified_at":"2026-10-15T09:47:28.8086Z","relation":"upstream"},{"provider":"osv","source_id":"CLSA-2026-1790110789","url":"https://osv.dev/vulnerability/CLSA-2026-1790110789","modified_at":"2026-10-15T09:45:34.375513Z","relation":"upstream"},{"provider":"cvelistv5","source_id":"CVE-2026-25223","url":"https://www.cve.org/CVERecord?id=CVE-2026-25223","license":"CC-BY-4.0","modified_at":"2026-09-16T12:04:20.445Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2026-25223","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25223","relation":"self"},{"provider":"osv","source_id":"GHSA-jx2c-rxcm-jvmq","url":"https://osv.dev/vulnerability/GHSA-jx2c-rxcm-jvmq","license":"CC-BY-4.0","modified_at":"2026-02-04T18:07:32.787861Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2026-25223","url":"https://access.redhat.com/security/cve/CVE-2026-25223","license":"CC-BY-4.0","modified_at":"2026-08-10T11:00:52.758843Z","relation":"self"}]}
