CVE-2025-32442

Source
https://cve.org/CVERecord?id=CVE-2025-32442
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-32442.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-32442
Aliases
Downstream
Published
2025-04-18T15:59:06Z
Modified
2026-08-12T03:30:11Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N CVSS Calculator
Summary
Fastify vulnerable to invalid content-type parsing, which could lead to validation bypass
Details

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.

Database specific
{
    "cna_assigner":  "GitHub_M",
    "cwe_ids":  [
        "CWE-1287"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/32xxx/CVE-2025-32442.json"
}
References

Affected packages

Git / github.com/fastify/fastify

Affected ranges

Type
GIT
Repo
https://github.com/fastify/fastify
Events
Database specific
Show details
{
    "cpe":  [
        "cpe:2.3:a:fastify:fastify:*:*:*:*:*:node.js:*:*",
        "cpe:2.3:a:fastify:fastify:4.29.0:*:*:*:*:node.js:*:*"
    ],
    "extracted_events":  [
        {
            "introduced":  "5.0.0"
        },
        {
            "fixed":  "5.3.2"
        },
        {
            "introduced":  "4.29.0"
        },
        {
            "last_affected":  "4.29.0"
        }
    ],
    "source":  [
        "CPE_RANGE",
        "CPE_STRING",
        "REFERENCES"
    ]
}

Affected versions

4.*
4.29.0
= 4.*
= 4.29.0
v5.*
v5.0.0
v5.1.0
v5.2.0
v5.2.1
v5.2.2
v5.3.0
v5.3.1

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-32442.json"