Security Resilience

CVE-2026-33806

Fastify 5.3.2 – 5.8.5

Published
15 April 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.0050 36th percentile
Risk Priority 58 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-33806 is a high-severity Improper Validation of Specified Type of Input (CWE-1287) 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 at the 36th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to 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-33806 is a vulnerability in Fastify applications that utilize schema.body.content for per-content-type body validation. It allows attackers to entirely bypass schema validation by prepending a space to the Content-Type header, while the body is still parsed correctly. This issue is a regression introduced in Fastify versions 5.3.2 and later, stemming from the fix for CVE-2025-32442, and is classified under CWE-1287 with 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).

Remote attackers require no privileges or user interaction to exploit this vulnerability over the network with low complexity. By crafting an HTTP request with a space-prepended Content-Type header, such as " application/json" instead of "application/json", they can bypass intended body validation schemas. This enables the processing of malformed or malicious payloads that would otherwise be rejected, leading to high integrity impacts such as improper data handling or injection of invalid content into the application.

Advisories from the Fastify GitHub security page (GHSA-mg2h-6x62-wpwc) and OpenJSF CNA recommend upgrading to Fastify v5.8.5 or later to mitigate the issue. No workarounds are available, emphasizing the need for prompt patching in affected applications.

EU & UK References

Vulnerability Data

Impact: Fastify applications using schema.body.content for per-content-type body validation can have validation bypassed entirely by prepending a space to the Content-Type header. The body is still parsed correctly but schema validation is skipped. This is a regression introduced in fastify…

more

>= 5.3.2 by the fix for CVE-2025-32442 Patches: Upgrade to fastify v5.8.5 or later. Workarounds: None. Upgrade to the patched version.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1036.006 Space after Filename Stealth
Adversaries can hide a program's true filetype by changing the extension of a file.
T1687 Exploitation for Defense Impairment Defense Impairment
Adversaries may exploit vulnerabilities in security software, infrastructure, or defensive components to degrade, disable, or otherwise continue to impair their ability to prevent, detect, or respond to malicious activity.
T1036.005 Match Legitimate Resource Name or Location Stealth
Adversaries may match or approximate the name or location of legitimate files, Registry keys, or other resources when naming/placing them.
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.
T1216.001 PubPrn Stealth
Adversaries may use PubPrn to proxy execution of malicious remote files.
T1218.002 Control Panel Stealth
Adversaries may abuse control.
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-25223Same product: Fastify Fastify
CVE-2026-25224Same product: Fastify Fastify
CVE-2026-76169Same product: Fastify Fastify
CVE-2026-3635Same product: Fastify Fastify
CVE-2026-84504Same product: Fastify Fastify
CVE-2026-3419Same product: Fastify Fastify
CVE-2026-84469Same product: Fastify Fastify
CVE-2026-15631Same vendor: Fastify

Affected Assets

fastify
fastify
5.3.2 — 5.8.5

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)
  • V5.2.2
  • V9.1.3
  • V10.4.6
  • V1.1.1

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

SI-10 directly requires validation of information inputs, which structurally prevents type-validation failures from being introduced or exploitable.

Mitigating Controls (NIST CSF 2.0)

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

PR.PS-06 mostly match
blocks

Secure SDLC practices directly require proper input type validation during development.

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 type-validation flaws but does not prevent them during development.

prevents

Training raises awareness of case-insensitivity, encoding equivalence and similar gotchas (the XSS example in CWE-1289's own description is exactly the kind of pitfall secure-coding education addresses), but the defect is subtle and implementation-specific, so even well-trained developers miss it; the effect is a minority one, consistent with A.6.3's other developer-introduced-weakness grades.

prevents

Secure coding standards directly require proper type validation of all external inputs.

prevents

A.8.30 carries secure design, coding and testing practice (8.25–8.29) into outsourced development, which reduces ordinary implementation-phase input-validation weaknesses like CWE-1287 in delivered code, but its effect depends on those other controls and is bounded by supplier practice, matching the clause's declared ceiling.

finds

A.8.8's reach is disclosure-based (vulnerability scanning, published advisories, third-party library tracking); CWE-1287 is a first-party implementation defect whose bulk in custom code is never published as a CVE, so A.8.8 finds only the minority of instances that surface as advisories in third-party components or are caught by its penetration-testing component.

References