CVE-2025-32442

Source
https://cve.org/CVERecord?id=CVE-2025-32442
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-32442.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-32442
Aliases
Downstream
CLSA (2)
Published
2025-04-18T15:59:06Z
Modified
2026-10-21T02:30:41Z
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
{
    "extracted_events":  [
        {
            "cpe":  "cpe:2.3:a:fastify:fastify:*:*:*:*:*:node.js:*:*",
            "range":  [
                {
                    "introduced":  "5.0.0"
                },
                {
                    "fixed":  "5.3.2"
                }
            ],
            "source":  "CPE_RANGE"
        },
        {
            "cpe":  "cpe:2.3:a:fastify:fastify:4.29.0:*:*:*:*:node.js:*:*",
            "range":  [
                {
                    "introduced":  "4.29.0"
                },
                {
                    "last_affected":  "4.29.0"
                }
            ],
            "source":  "CPE_STRING"
        },
        {
            "range":  [
                {
                    "fixed":  "436da4c06dfbbb8c24adee3a64de0c51e4f47418"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "range":  [
                {
                    "fixed":  "f3d2bcb3963cd570a582e5d39aab01a9ae692fe4"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        }
    ]
}

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

Database specific

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