Vulnerabilities

CVE-2025-32442

High 7.5 CVSS 3.1

Description

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.

Description as published by the source, in English.

Key facts

Published
2025-04-18
Last modified
2026-06-17
Assigned by
security-advisories@github.com
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Scored by
security-advisories@github.com
Probability of exploitation
0.7 % higher than 50 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Yes, see references

Affected products

Vendor Product Versions Status
fastify (npm) ≥ 4.29.0, < 4.29.1 Affected
fastify (npm) ≥ 5.0.0, < 5.3.2 Affected
fastify (npm) ≥ 5.3.2, < 5.8.5 Affected
Fastify Fastify 4.29.0 Affected
Fastify Fastify ≥ 5.0.0, < 5.3.2 Affected

Weakness type

References

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities