Read the docs
TI-2022-20260 Aliases CVE-2022-41919GHSA-3fjj-p79j-c9hh

Fastify vulnerable to Cross-Site Request Forgery (CSRF) attack via incorrect content type

Priority LOW 38CWE-352Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
Tampering
Confidentiality · integrity · availability
High · High · High
Fix status
Partial Red Hat: 1 without a fix

Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-352.

Summary

Fastify is a web framework with minimal overhead and plugin architecture. The attacker can use the incorrect `Content-Type` to bypass the `Pre-Flight` checking of `fetch`. `fetch()` requests with Content-Type’s essence as "application/x-www-form-urlencoded", "multipart/form-data", or "text/plain", could potentially be used to invoke routes that only accepts `application/json` content type, thus bypassing any CORS protection, and therefore they could lead to a Cross-Site Request Forgery attack. This issue has been patched in version 4.10.2 and 3.29.4. As a workaround, implement Cross-Site Request Forgery protection using `@fastify/csrf'.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00409 35th percentileScored 2026-11-07
Fix Partial fastify (fastify): 4.10.2, 3.29.4fastify (npm): 4.10.2, 3.29.4Red Hat: 1 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
fastifyfastify4.0.0 to before 4.10.2; 3.0.0 to before 3.29.44.10.2, 3.29.4Patch availableCNA
—fastify (npm)4.0.0 to before 4.10.24.10.2Patch availableGHSA-3fjj-p79j-c9hh
—fastify (npm)3.0.0 to before 3.29.43.29.4Patch availableGHSA-3fjj-p79j-c9hh
  • fastify Vendorfastify Affected 4.0.0 to before 4.10.2; 3.0.0 to before 3.29.4 Fixed in 4.10.2, 3.29.4 Patch available CNA
  • fastify (npm) Vendor— Affected 4.0.0 to before 4.10.2 Fixed in 4.10.2 Patch available GHSA-3fjj-p79j-c9hh
  • fastify (npm) Vendor— Affected 3.0.0 to before 3.29.4 Fixed in 3.29.4 Patch available GHSA-3fjj-p79j-c9hh

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:fastify:fastify:*:*:*:*:*:node.js:*:*3.0.0 to before 3.29.4; 4.0.0 to before 4.10.2Vulnerablefastify
  • cpe:2.3:a:fastify:fastify:*:*:*:*:*:node.js:*:* Versions 3.0.0 to before 3.29.4; 4.0.0 to before 4.10.2 Vulnerable ·fastify

Remediation

  • Fix · CNA fastify (fastify) Fixed in 4.10.2, 3.29.4
  • Fix · GHSA-3fjj-p79j-c9hh fastify (npm) Fixed in 4.10.2 Advisory →
  • Fix · GHSA-3fjj-p79j-c9hh fastify (npm) Fixed in 3.29.4 Advisory →

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat OpenShift Dev SpacesAffectedNo fix yet

Timeline

  1. 2026-10-02 Threatist record created from CVE-2022-41919
  2. 2026-10-03 Alias added: GHSA-3fjj-p79j-c9hh

References

  • TI-2022-18664 Denial of service in Fastify via Content-Type header CVSS 3.1HIGH 7.5
  • TI-2025-23513 Fastify vulnerable to invalid content-type parsing, which could lead to validation bypass CVSS 3.1HIGH 7.5
  • TI-2026-58050 fastify vulnerable to request validation bypass via skipped boolean false schemas CVSS 3.1HIGH 7.5
  • TI-2026-58022 fastify vulnerable to header validation bypass via incomplete schema case normalization CVSS 3.1HIGH 7.5
  • TI-2026-53284 fastify vulnerable to authentication bypass via malformed URLs reaching encapsulated not-found handlers CVSS 3.1HIGH 7.5
  • TI-2026-26178 fastify vulnerable to Body Schema Validation Bypass via Leading Space in Content-Type Header CVSS 3.1HIGH 7.5
See all 15 →

Sources