Security Resilience

CVE-2026-25223

Fastify ≤ 5.7.2

Published
03 February 2026
Modified
15 July 2026
Patch / advisory
CVSS Score v3.1 7.5
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS Score 0.013 70th percentile
Risk Priority 60 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2026-25223 is a high-severity Interpretation Conflict (CWE-436) vulnerability in Fastify. Its CVSS base score is 7.5 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Masquerade File Type (T1036.008); ranked in the top 30% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to SA-11 (Developer Testing and Evaluation) and SI-10 (Information Input Validation) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

CVE-2026-25223 is a validation bypass vulnerability in Fastify, a fast and low-overhead web framework for Node.js, affecting versions prior to 5.7.2. The flaw allows attackers to completely circumvent request body validation schemas that are specified based on the Content-Type header. This is achieved by appending a tab character (\t) followed by arbitrary content to the Content-Type header, enabling the server to process the request body as the original content type without enforcing the associated validation schema. The issue is classified under CWE-436 and carries a CVSS v3.1 base score of 7.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N).

Any unauthenticated remote attacker who can send HTTP requests to an affected Fastify server can exploit this vulnerability with low complexity and no user interaction required. By crafting a malicious Content-Type header, the attacker bypasses body validation, allowing the submission of payloads that violate schema rules but are still parsed and processed according to the intended content type. This could lead to integrity impacts, such as injecting malformed data, executing unintended logic, or enabling further attacks depending on the application's validation usage.

The vulnerability has been patched in Fastify version 5.7.2. Mitigation involves upgrading to this version or later. Details on the fix are documented in the Fastify GitHub security advisory (GHSA-jx2c-rxcm-jvmq), the patching commit (32d7b6add39ddf082d92579a58bea7018c5ac821), and related code changes in content-type-parser.js and validation.js.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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)…

more

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.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1036.008 Masquerade File Type Stealth
Adversaries may masquerade malicious payloads as legitimate files through changes to the payload's formatting, including the file’s signature, extension, icon, and contents.
T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1210 Exploitation of Remote Services Lateral Movement
Adversaries may exploit remote services to gain unauthorized access to internal systems once inside of a network.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2025-32442Same product: Fastify Fastify
CVE-2026-84428Same product: Fastify Fastify
CVE-2026-33806Same product: Fastify Fastify
CVE-2026-3635Same product: Fastify Fastify
CVE-2026-76169Same product: Fastify Fastify
CVE-2026-84504Same product: Fastify Fastify
CVE-2026-3419Same product: Fastify Fastify
CVE-2026-84469Same product: Fastify Fastify
CVE-2026-25224Same product: Fastify Fastify
CVE-2026-33807Same vendor: Fastify

Affected Assets

fastify
fastify
≤ 5.7.2

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

—

Detect
Catch it (NIST detect / respond)

—

Harden
Shrink the surface (DISA STIG)

—

Validate
Prove the fix (OWASP ASVS)
  • V1.3.6
  • V1.3.8
  • V2.2.1
  • V3.7.2

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

Developer testing and evaluation can discover cases where two products interpret the same inputs or state transitions differently.

Strict, consistently applied input validation reduces the chance that one product will accept data the other product rejects or interprets differently.

Applying security engineering principles during design can require unambiguous protocol and data-format specifications that eliminate divergent interpretations between products.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Security testing can detect and correct cases where one component misinterprets another’s state or messages.

prevents

Training developers in secure coding practices raises awareness of validation-ordering pitfalls for some, but the defect is subtle and the strongest control is code review/testing (A.8.29), so training moves only a minority of instances.

prevents

Secure coding standards can enforce canonical input handling and strict protocol compliance to avoid misinterpretation between products.

prevents

A.8.30 carries its effect through the secure-development practices (8.25–8.29) its contract requires of the supplier, so a faithfully implemented clause reduces ordinary implementation defects like early-validation ordering the way those practices do — a minority of instances, with the remainder bounded by the fallibility of the practice and the dependence on the underlying controls being configured to act.

finds

A.8.8's reach is DISCLOSURE — vulnerability scanning, published advisories, and third-party component tracking. CWE-179 is a first-party implementation defect (validation order vs. canonicalization) that surfaces as CVEs in some cases (the observed examples are all CVEs) but the bulk of latent instances in deployed custom code are not published advisories, so the disclosed share is a minority.

Hardening callouts derived

DISA STIG baselines are authored against specific weaknesses. Where this CVE cites a broad weakness class, the mapping is not asserted at that abstraction (owner ruling, 2026-09-25: grade only at Base and below), so no rule is shown here rather than a rule shown against the wrong grain.

  • No fine-grained STIG row for CWE-436, a class-level weakness, and none of its children carries one either.

References