VDB

CVE-2025-32442

CVE-2025-32442 PUBLISHED CVSS 7.5 HIGH

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

Reported by github_m · Published April 18, 2025

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
fastifyfastify5.3.2

Risk scores

CVSS 3.1
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Affected products

VendorProductVersions
fastifyfastify>= 5.0.0, < 5.3.2, = 4.29.0
npmfastify5.0.0, 4.29.0, 4.29.0
fastifyfastify5.0.0, 4.29.0

Timeline

  • Apr 18, 2025 CVE Published
  • Apr 18, 2025 PoC Published
  • Apr 19, 2025 EPSS Score (30 in total, the first dated here)
  • May 9, 2025 Coalition ESS Score (30 in total, the first dated here)
  • Dec 16, 2025 Security Advisory
  • Jun 17, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-32442
vulnetix vdb fixes CVE-2025-32442

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-32442/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›