Skip to main content
← All vulnerabilities
CVE-2025-32442GHSA-MG2H-6X62-WPWCGHSA-247C-9743-5963

Fastify vulnerable to invalid content-type parsing, which could lead to validation bypass

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.3.2, 4.29.1, 5.8.5
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

Fastify is a fast and low overhead web framework, for Node.js. In versions 5.0.0 to 5.3.0 as well as version 4.29.0, applications that specify different validation strategies for different content types have a possibility to bypass validation by providing a slightly altered content type such as with different casing or altered whitespacing before `;`. This was patched in v5.3.1, but the initial patch did not cover all problems. This has been fully patched in v5.3.2 and v4.29.1. A workaround involves not specifying individual content types in the schema.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • fastify fastify

    From 5.0.0 · fixed in 5.3.2

  • fastifynpm

    From 5.0.0 · fixed in 5.3.2

  • fastifynpm

    From 4.29.0 · fixed in 4.29.1

  • fastifynpm

    From 5.3.2 · fixed in 5.8.5

References 4

GitHub · fastify/fastify

hackerone.com