Cyber Resilience

CVE-2026-3419

Fastify 5.7.2 – 5.8.1

Published
06 March 2026
Modified
18 March 2026
Patch / advisory
CVSS Score v3.1 5.3
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:L/A:N
EPSS Score 0.0035 28th percentile
Risk Priority 35 floored blend · peak EPSS

Summary

CVE-2026-3419 is a medium-severity Incorrect Regular Expression (CWE-185) vulnerability in Fastify Fastify. Its CVSS base score is 5.3 (Medium).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked at the 28th 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) and AC-4 (Information Flow Enforcement) — see the control section below for these in your framework.

EU & UK References

Vulnerability Data

Fastify incorrectly accepts malformed `Content-Type` headers containing trailing characters after the subtype token, in violation of RFC 9110 §8.3.1(https://httpwg.org/specs/rfc9110.html#field.content-type). For example, a request sent with Content-Type: application/json garbage passes validation and is processed normally, rather than being rejected with 415…

more

Unsupported Media Type. When regex-based content-type parsers are in use (a documented Fastify feature), the malformed value is matched against registered parsers using the full string including the trailing garbage. This means a request with an invalid content-type may be routed to and processed by a parser it should never have reached. Impact: An attacker can send requests with RFC-invalid Content-Type headers that bypass validity checks, reach content-type parser matching, and be processed by the server. Requests that should be rejected at the validation stage are instead handled as if the content-type were valid. Workarounds: Deploy a WAF rule to protect against this Fix: The fix is available starting with v5.8.1.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise TechniquesAI

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.
Why these techniques?

Malformed Content-Type header bypass enables exploitation of public-facing Fastify web app via invalid parser routing.

Confidence: MEDIUM · MITRE ATT&CK Enterprise v19.0

CVEs Like This One

CVE-2026-25223Same product: Fastify Fastify
CVE-2026-33806Same product: Fastify Fastify
CVE-2025-32442Same product: Fastify Fastify
CVE-2026-3635Same product: Fastify Fastify
CVE-2026-25224Same product: Fastify Fastify
CVE-2026-33807Same vendor: Fastify
CVE-2026-33804Same vendor: Fastify
CVE-2026-14198Same vendor: Fastify
CVE-2026-15631Same vendor: Fastify
CVE-2026-33805Same vendor: Fastify

Affected Assets

fastify
fastify
5.7.2 — 5.8.1

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)
  • SI-10 Information Input Validation
  • AC-4 Information Flow Enforcement
  • SC-7 Boundary Protection
Detect
Catch it (NIST detect / respond)

Harden
Shrink the surface (DISA STIG)

Validate
Prove the fix (OWASP ASVS)

Mitigating Controls (NIST 800-53 r5) AI

prevent

Directly enforces validation of Content-Type header syntax per RFC 9110, rejecting malformed values with trailing garbage before parser selection.

prevent

Enforces information flow rules that can require strict Content-Type conformance, blocking requests that would otherwise reach an unintended regex-based parser.

prevent

Boundary protection mechanisms (e.g., WAF rules) can inspect and drop RFC-noncompliant Content-Type headers before they reach the Fastify instance.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.PS-06 mostly match
prevents

Secure SDLC practices directly require correct regex design, testing, and review to avoid improper matching.

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

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

detects

Security testing in development can detect regex-related flaws before release.

prevents

Secure development lifecycle includes validation of input-handling constructs such as regex.

prevents

Application security requirements can mandate correct regex design and testing.

prevents

Secure coding standards directly address proper construction and review of regular expressions.

References