# CVE-2026-33806: fastify vulnerable to Body Schema Validation Bypass via Leading Space in Content-Type Header

- Severity: High 7.5 (CVSS:3.1, scored by openjs) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.46%, higher than 41% of CVEs (2026-12-01)
- Published: 2025-04-18T15:02:41.000Z
- Modified: 2026-07-15T02:20:15.760Z
- Also known as: GHSA-247c-9743-5963, GHSA-mg2h-6x62-wpwc
- Related: CVE-2025-32442
- Weaknesses: CWE-1287, CWE-1289
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: openjs

## Description

Impact:

Fastify applications using schema.body.content for per-content-type body validation can have validation bypassed entirely by prepending a space to the Content-Type header. The body is still parsed correctly but schema validation is skipped.

This is a regression introduced in fastify >= 5.3.2 by the fix for CVE-2025-32442

Patches:

Upgrade to fastify v5.8.5 or later.

Workarounds:

None. Upgrade to the patched version.

(As written by CVE List.)

## Affected

- fastify fastify: from 5.3.2 before 5.8.5 (not affected: 5.8.5)
- rhelai3/bootc-cuda-rhel9: no versions given
- rhelai3/bootc-rocm-rhel9: no versions given
- rhelai3/disk-image-cuda-rhel9: no versions given
- rhoai/odh-dashboard-rhel8: no versions given
- rhoai/odh-dashboard-rhel9: no versions given
- rhoai/odh-mod-arch-gen-ai-rhel9: no versions given
- rhoai/odh-mod-arch-maas-rhel9: no versions given
- rhoai/odh-mod-arch-model-registry-rhel9: no versions given
- devspaces/dashboard-rhel9: no versions given
- fastify (npm): from 5.3.2 before 5.8.5; from 5.0.0 before 5.3.2; from 4.29.0 before 4.29.1

## Every score

- openjs: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- redhat-SADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/fastify/fastify/security/advisories/GHSA-mg2h-6x62-wpwc> (not-applicable, web)
- <https://cna.openjsf.org/security-advisories.html> (vendor-advisory, web)
- <https://access.redhat.com/security/cve/CVE-2026-33806> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2458596> (issue-tracking)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-33806.json>
- <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://github.com/fastify/fastify/commit/f3d2bcb3963cd570a582e5d39aab01a9ae692fe4> (web)
- <https://github.com/fastify/fastify> (package)
- <https://github.com/fastify/fastify/releases/tag/v5.8.5> (web)
- <https://github.com/fastify/fastify/commit/436da4c06dfbbb8c24adee3a64de0c51e4f47418> (web)
- <https://hackerone.com/reports/3087928> (web)

## Sources

- CVE List: [CVE-2026-33806](https://www.cve.org/CVERecord?id=CVE-2026-33806), CVE Terms of Use, modified 2026-07-15
- GitHub Advisory Database: [GHSA-247c-9743-5963](https://github.com/advisories/GHSA-247c-9743-5963), CC-BY-4.0, modified 2026-07-08
- GitHub Advisory Database: [GHSA-mg2h-6x62-wpwc](https://github.com/advisories/GHSA-mg2h-6x62-wpwc), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2026-33806](https://nvd.nist.gov/vuln/detail/CVE-2026-33806), Public domain, modified 2026-07-15

---

Page: https://cve.day/CVE-2026-33806 · Whole record: https://cve.day/CVE-2026-33806.json · Rebuilt by cve.day 2026-11-25T22:59:18.810Z
