{"id":"EUVD-2026-10056","enisaUuid":"36ce43c7-9a44-348f-8dd7-5978cd5db926","description":"Fastify incorrectly accepts malformed `Content-Type` headers containing trailing characters after the subtype token, in violation of RFC 9110 §8.3.1(https://httpwg.org/specs/rfc9110.html#field.content-type). For example, a request sent with Content-Type: application/json garbage passes validation and is processed normally, rather than being rejected with 415 Unsupported Media Type.\n\nWhen regex-based content-type parsers are in use (a documented Fastify feature), the malformed value is matched against registered parsers using the full string including the trailing garbage. This means a request with an invalid content-type may be routed to and processed by a parser it should never have reached.\n\nImpact:\nAn attacker can send requests with RFC-invalid Content-Type headers that bypass validity checks, reach content-type parser matching, and be processed by the server. Requests that should be rejected at the validation stage are instead handled as if the content-type were valid.\n\nWorkarounds:\nDeploy a WAF rule to protect against this\n\nFix:\n\nThe fix is available starting with v5.8.1.","datePublished":"Mar 6, 2026, 5:50:58 PM","dateUpdated":"Mar 9, 2026, 2:55:21 PM","baseScore":5.3,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","references":"https://github.com/fastify/fastify/security/advisories/GHSA-573f-x89g-hqp9\nhttps://github.com/fastify/fastify/commit/67f6c9b32cb3623d3c9470cc17ed830dd2f083d7\nhttps://httpwg.org/specs/rfc9110.html#field.content-type\nhttps://github.com/advisories/GHSA-573f-x89g-hqp9\nhttps://cna.openjsf.org/security-advisories.html\nhttps://www.cve.org/CVERecord?id\u003dCVE-2026-3419\n","aliases":"CVE-2026-3419\nGHSA-573f-x89g-hqp9\n","assigner":"openjs","epss":0.39,"enisaIdProduct":[{"id":"200115c9-4eea-3e78-a5b7-40aad1ef5648","product":{"name":"fastify","vendor":{"name":"@clerk"}},"product_version":"5.7.2 \u003c5.8.1"}],"enisaIdVendor":[{"id":"762a1817-cc12-3f34-bc6c-4c23a15eef26","vendor":{"name":"fastify"}}],"enisaIdVulnerability":[{"id":"3466f06b-090e-3c82-a4a3-a6b022ba9a17","vulnerability":{"id":"GHSA-573f-x89g-hqp9","description":"Fastify\u0027s Missing End Anchor in \"subtypeNameReg\" Allows Malformed Content-Types to Pass Validation","datePublished":"Mar 5, 2026, 9:29:54 PM","dateUpdated":"Mar 6, 2026, 10:44:34 PM","baseScore":0.0,"references":"https://github.com/fastify/fastify/security/advisories/GHSA-573f-x89g-hqp9\nhttps://nvd.nist.gov/vuln/detail/CVE-2026-3419\nhttps://github.com/fastify/fastify/commit/67f6c9b32cb3623d3c9470cc17ed830dd2f083d7\nhttps://cna.openjsf.org/security-advisories.html\nhttps://github.com/advisories/GHSA-573f-x89g-hqp9\nhttps://github.com/fastify/fastify\nhttps://httpwg.org/specs/rfc9110.html#field.content-type\nhttps://www.cve.org/CVERecord?id\u003dCVE-2026-3419\n","enisa_id":"EUVD-2026-10056\n","aliases":"CVE-2026-3419\nGHSA-573f-x89g-hqp9\n","epss":0.0,"dataProcessed":"Nov 22, 2026, 2:48:56 AM","vulnerabilityProduct":[],"vulnerabilityVendor":[]}},{"id":"4bcad4a8-d563-31f4-96e6-9695b5234027","vulnerability":{"id":"CVE-2026-3419","description":"Fastify incorrectly accepts malformed `Content-Type` headers containing trailing characters after the subtype token, in violation of RFC 9110 §8.3.1(https://httpwg.org/specs/rfc9110.html#field.content-type). For example, a request sent with Content-Type: application/json garbage passes validation and is processed normally, rather than being rejected with 415 Unsupported Media Type.\n\nWhen regex-based content-type parsers are in use (a documented Fastify feature), the malformed value is matched against registered parsers using the full string including the trailing garbage. This means a request with an invalid content-type may be routed to and processed by a parser it should never have reached.\n\nImpact:\nAn attacker can send requests with RFC-invalid Content-Type headers that bypass validity checks, reach content-type parser matching, and be processed by the server. Requests that should be rejected at the validation stage are instead handled as if the content-type were valid.\n\nWorkarounds:\nDeploy a WAF rule to protect against this\n\nFix:\n\nThe fix is available starting with v5.8.1.","datePublished":"Mar 6, 2026, 5:50:58 PM","dateUpdated":"Mar 9, 2026, 2:55:21 PM","status":"PUBLISHED","baseScore":5.3,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","references":"https://github.com/fastify/fastify/security/advisories/GHSA-573f-x89g-hqp9\nhttps://github.com/fastify/fastify/commit/67f6c9b32cb3623d3c9470cc17ed830dd2f083d7\nhttps://httpwg.org/specs/rfc9110.html#field.content-type\nhttps://github.com/advisories/GHSA-573f-x89g-hqp9\nhttps://cna.openjsf.org/security-advisories.html\nhttps://www.cve.org/CVERecord?id\u003dCVE-2026-3419\n","enisa_id":"EUVD-2026-10056\n","assigner":"openjs","epss":0.39,"dataProcessed":"Nov 23, 2026, 7:21:32 AM","vulnerabilityProduct":[{"id":"2f0d61bf-2fd3-3980-b54f-8320bef23fa5","product":{"name":"fastify","vendor":{"name":"@clerk"}},"product_version":"5.7.2 \u003c5.8.1"}],"vulnerabilityVendor":[{"id":"13715dcd-3e31-3e12-b5cc-991c967c2c96","vendor":{"name":"fastify"}}]}}],"enisaIdAdvisory":[]}