CVE-2025-32442
HIGH 7.5CVSS 3.1Fastify has a Body Schema Validation Bypass via Leading Space in Content-Type Header
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.
- Published
- 18 Apr 2025
- Last modified
- 8 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-1287
- Also known as
- CVE-2026-33806GHSA-247c-9743-5963GHSA-mg2h-6x62-wpwc
- Sources
- NVDJSONOSV GHSA-247c-9743-5963JSONOSV GHSA-mg2h-6x62-wpwcJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | fastify | fastifycpe:2.3:a:fastify:fastify:*:*:*:*:*:node.js:*:* |
>= 5.0.0, < 5.3.2 | 5.3.2 |
| NVD | fastify | fastifycpe:2.3:a:fastify:fastify:4.29.0:*:*:*:*:node.js:*:* |
= 4.29.0 | |
| OSV | npm | fastify | >= 5.3.2, < 5.8.5 | 5.8.5 |
| OSV | npm | fastify | >= 5.0.0, < 5.3.2 | 5.3.2 |
| OSV | npm | fastify | >= 4.29.0, < 4.29.1 | 4.29.1 |
References
- https://github.com/fastify/fastify/commit/436da4c06dfbbb8c24adee3a64de0c51e4f47418 · Patch, WEB
- https://github.com/fastify/fastify/commit/f3d2bcb3963cd570a582e5d39aab01a9ae692fe4 · Patch, WEB
- https://github.com/fastify/fastify/security/advisories/GHSA-mg2h-6x62-wpwc · Exploit, Third Party Advisory, WEB
- https://hackerone.com/reports/3087928 · Permissions Required, WEB
- https://github.com/fastify/fastify/security/advisories/GHSA-247c-9743-5963 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-32442 · ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-33806 · ADVISORY
- https://cna.openjsf.org/security-advisories.html · WEB
- https://github.com/fastify/fastify · PACKAGE
- https://github.com/fastify/fastify/releases/tag/v5.8.5 · WEB
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 18 Apr 2025)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 18 Apr 2025)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 15 Apr 2026)