{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-3419","id":"CVE-2026-3419","title":"Fastify's Missing End Anchor in \"subtypeNameReg\" Allows Malformed Content-Types to Pass Validation","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-bas","descriptionLong":"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.","published":"2026-03-06T17:50:58.714Z","updated":"2026-10-28T02:30:31.051888989Z","reserved":"2026-03-01T18:56:49.613Z","status":"Analyzed","rejected":false,"assigner":"openjs","metric":{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","rating":"medium","source":"openjs"},"metrics":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","rating":"medium","source":"openjs"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","rating":"medium","source":"ce714d77-add3-4f53-aff5-83d477b104bb"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["fastify"],"affectedProducts":[{"vendor":"fastify","product":"fastify","defaultStatus":"unaffected","versions":[{"versionType":"semver","status":"affected","version":"5.7.2","lessThan":"5.8.1"},{"versionType":"semver","status":"unaffected","version":"5.8.1"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"fastify","purl":"pkg:npm/fastify","ranges":[">=5.7.2 <5.8.1"],"fixed":["5.8.1"],"advisory":"GHSA-573f-x89g-hqp9"}],"cwes":["CWE-185"],"aliases":["GHSA-573f-x89g-hqp9"],"references":[{"url":"https://github.com/fastify/fastify/security/advisories/GHSA-573f-x89g-hqp9","tags":["Vendor Advisory","advisory","web"]},{"url":"https://github.com/fastify/fastify/commit/67f6c9b32cb3623d3c9470cc17ed830dd2f083d7","tags":["Patch","fix","web"]},{"url":"https://httpwg.org/specs/rfc9110.html#field.content-type","tags":["Technical Description","web"]},{"url":"https://github.com/advisories/GHSA-573f-x89g-hqp9","tags":["Patch","Vendor Advisory","advisory"]},{"url":"https://cna.openjsf.org/security-advisories.html","tags":["Vendor Advisory","advisory","web"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-3419","tags":["VDB Entry","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/3xxx/CVE-2026-3419.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-3419","tags":["advisory"]},{"url":"https://github.com/fastify/fastify","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial"},"epss":0.00388,"epssPercentile":0.33586,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-3419","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-3419","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-3419","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-573f-x89g-hqp9","ok":true,"note":"GHSA-573f-x89g-hqp9"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-3419","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}