Vulnerability · Published Feb 3, 2026 · Assigned by GitHub_M
CVE-2026-25223Fastify's Content-Type header tab character allows body validation bypass
High 7.5
In plain English
A high-severity security flaw in fastify from fastify. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 59% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | fastify | 5.7.2 | GHSA-jx2c-rxcm-jvmq |
Affected products (as reported)
Weakness: CWE-436, CWE-179 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
References
- https://github.com/fastify/fastify/security/advisories/GHSA-jx2c-rxcm-jvmq x_refsource_CONFIRM
- https://github.com/fastify/fastify/commit/32d7b6add39ddf082d92579a58bea7018c5ac821 x_refsource_MISC
- https://hackerone.com/reports/3464114 x_refsource_MISC
- https://fastify.dev/docs/latest/Reference/Validation-and-Serialization x_refsource_MISC
- https://github.com/fastify/fastify/blob/759e9787b5669abf953068e42a17bffba7521348/lib/content-type-parser.js#L125 x_refsource_MISC
- https://github.com/fastify/fastify/blob/759e9787b5669abf953068e42a17bffba7521348/lib/validation.js#L272 x_refsource_MISC
- https://access.redhat.com/security/cve/CVE-2026-25223 vdb-entry, x_refsource_REDHAT
- RHBZ#2436560 issue-tracking, x_refsource_REDHAT
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-25223.json x_sadp-csaf-vex
- https://access.redhat.com/errata/RHSA-2026:5807 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:10184 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:6192 vendor-advisory, x_refsource_REDHAT