CVE-2026-25223
JSON

7.5high

Fastify's Content-Type header tab character allows body validation bypass

Severity
7.5high CVSS:3.1 by GitHub_M
Exploit likelihood
0.86% (higher than 59% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-jx2c-rxcm-jvmq

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

Product or packageVersionsReported by
fastify fastify< 5.7.2, before 5.7.2CVE List, NVD
rhoai/odh-dashboard-rhel8Not specified
Not affected: from 1774282136 before *
CVE List
rhoai/odh-dashboard-rhel9Not specified
Not affected: from 1776742021 before *
CVE List
rhoai/odh-mod-arch-model-registry-rhel9Not specified
Not affected: from 1776742141 before *
CVE List
devspaces/dashboard-rhel9Not specified
Not affected: from 1774476526 before *
CVE List
rhelai3/bootc-cuda-rhel9Not specifiedCVE List
rhelai3/disk-image-cuda-rhel9Not specifiedCVE List
rhoai/odh-mod-arch-gen-ai-rhel9Not specifiedCVE List
fastify (npm)before 5.7.2GitHub Advisory Database

All scores

GitHub_M7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
redhat-SADP7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Classification

CWE-179CWE-436

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
Impact

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.

For example, a request with Content-Type: application/json\ta will bypass JSON schema validation but still be parsed as JSON.

This 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.

This issue is a regression or missed edge case from the fix for a previously reported vulnerability.

Patches

This vulnerability has been patched in Fastify v5.7.2. All users should upgrade to this version or later immediately.

Workarounds

If upgrading is not immediately possible, user can implement a custom onRequest hook to reject requests containing tab characters in the Content-Type header:

fastify.addHook('onRequest', async (request, reply) => {
  const contentType = request.headers['content-type']
  if (contentType && contentType.includes('\t')) {
    reply.code(400).send({ error: 'Invalid Content-Type header' })
  }
})
Resources
NVD (es)

Fastify es un framework web rápido y de baja sobrecarga, para Node.js. Antes de la versión 5.7.2, existe una vulnerabilidad de omisión de validación en Fastify donde los esquemas de validación del cuerpo de la solicitud especificados por Content-Type pueden ser completamente eludidos. Al añadir un carácter de tabulación (\t) seguido de contenido arbitrario al encabezado Content-Type, los atacantes pueden omitir la validación del cuerpo mientras el servidor sigue procesando el cuerpo como el tipo de contenido original. Este problema ha sido parcheado en la versión 5.7.2.

References

https://github.com/fastify/fastify/security/advisories/GHSA-jx2c-rxcm-jvmqmitigation, vendor-advisory, web
https://github.com/fastify/fastify/commit/32d7b6add39ddf082d92579a58bea7018c5ac821patch, web
https://hackerone.com/reports/3464114permissions-required, web
https://fastify.dev/docs/latest/Reference/Validation-and-Serializationproduct, technical-description, web
https://github.com/fastify/fastify/blob/759e9787b5669abf953068e42a17bffba7521348/lib/content-type-parser.js#L125product, web
https://github.com/fastify/fastify/blob/759e9787b5669abf953068e42a17bffba7521348/lib/validation.js#L272product, web
https://access.redhat.com/security/cve/CVE-2026-25223vdb-entry
https://bugzilla.redhat.com/show_bug.cgi?id=2436560issue-tracking
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-25223.json
https://access.redhat.com/errata/RHSA-2026:5807vendor-advisory
https://access.redhat.com/errata/RHSA-2026:10184vendor-advisory
https://access.redhat.com/errata/RHSA-2026:6192vendor-advisory

Sources

SourceRecordLicence
CVE ListCVE-2026-25223 changed 2026-09-16CVE Terms of Use
GitHub Advisory DatabaseGHSA-jx2c-rxcm-jvmq changed 2026-02-04CC-BY-4.0
NVDCVE-2026-25223 changed 2026-07-15Public domain