Loading advisory.
Loading advisory.
Fastify: Incorrect Content-Type parsing can lead to CSRF attack
The attacker can use the incorrect Content-Type to bypass the Pre-Flight checking of fetch. fetch() requests with Content-Type’s essence as "application/x-www-form-urlencoded", "multipart/form-data", or "text/plain", could potentially be used to invoke routes that only accepts application/json…
Published 2022-11-21 22:28 UTC · Modified 2025-04-23 16:36 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score.
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| fastify | npm | >= 4.0.0, < 4.10.2 >= 3.0.0, < 3.29.4 | 4.10.2, 3.29.4 | npm install fastify@4.10.2npm install fastify@3.29.4 |
The attacker can use the incorrect Content-Type to bypass the Pre-Flight checking of fetch. fetch() requests with Content-Type’s essence as "application/x-www-form-urlencoded", "multipart/form-data", or "text/plain", could potentially be used to invoke routes that only accepts application/json content type, thus bypassing any CORS protection, and therefore they could lead to a Cross-Site Request Forgery attack.
For 4.x users, please update to at least 4.10.2
For 3.x users, please update to at least 3.29.4
Implement Cross-Site Request Forgery protection using @fastify/csrf.
Check out the HackerOne report: https://hackerone.com/reports/1763832.
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.005 on 2026-11-24 to 0.005 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.005 | first score | v2026.06.15 |
| 2026-11-26 | 0.005 | 0.005 | v2026.06.15 |