{"schemaVersion":4,"id":"CVE-2026-3419","aliases":["GHSA-573f-x89g-hqp9"],"status":"published","duplicateOf":null,"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-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.","dates":{"published":"2026-03-06T17:50:58.714Z","modified":"2026-03-09T14:55:21.011Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.3,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","exploitability":10,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00382,"percentile":0.34313,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":-0.006000000000000016,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.00388},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00351,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00477,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00477,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00477,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00477,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00477,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00477,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00477,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00477,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00477,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00496,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.00507,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.00365,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.00365,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.00365,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.00365,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.00365,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.00365,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.00365,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00591,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00382,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00382,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00382,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00382,"percentile":0.34313}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00388,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00554,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00591,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00382,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00382,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00382,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00382,"percentile":0.34313}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-185","name":"Incorrect Regular Expression","description":"The product specifies a regular expression in a way that causes data to be improperly matched or compared.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/185.html"}],"affected":[{"vendor":"fastify","product":"fastify","name":"fastify","label":"fastify","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 5.7.2, < 5.8.1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"5.7.2","startInclusive":true,"end":"5.8.1","endInclusive":false}}],"versionsText":"≥ 5.7.2, < 5.8.1","eol":null,"hubHref":"/vendor/fastify/fastify"},{"vendor":"Npm","product":"fastify","name":"fastify","label":"fastify","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/fastify","purlType":"npm","versions":[{"text":"≥ 5.7.2, < 5.8.1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"5.7.2","startInclusive":true,"end":"5.8.1","endInclusive":false}}],"versionsText":"≥ 5.7.2, < 5.8.1","eol":null,"hubHref":null}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/fastify/fastify/security/advisories/GHSA-573f-x89g-hqp9","label":"github.com/fastify/fastify/security/advisories/GHSA-573f-x89g-hqp9","hostname":"github.com","tags":["WEB","Vendor Advisory"]},{"url":"https://github.com/fastify/fastify/commit/67f6c9b32cb3623d3c9470cc17ed830dd2f083d7","label":"github.com/fastify/fastify/commit/67f6c9b32cb3623d3c9470cc17ed830dd2f083d7","hostname":"github.com","tags":["WEB","Patch"]},{"url":"https://httpwg.org/specs/rfc9110.html#field.content-type","label":"httpwg.org/specs/rfc9110.html","hostname":"httpwg.org","tags":["WEB","Technical Description"]},{"url":"https://github.com/advisories/GHSA-573f-x89g-hqp9","label":"github.com/advisories/GHSA-573f-x89g-hqp9","hostname":"github.com","tags":["Advisory","Patch","Vendor Advisory"]},{"url":"https://cna.openjsf.org/security-advisories.html","label":"cna.openjsf.org/security-advisories.html","hostname":"cna.openjsf.org","tags":["WEB","Vendor Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-3419","label":"www.cve.org/CVERecord?id=CVE-2026-3419","hostname":"www.cve.org","tags":["WEB","VDB Entry"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-3419","label":"nvd.nist.gov/vuln/detail/CVE-2026-3419","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/fastify/fastify","label":"github.com/fastify/fastify","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-03-06T17:50:58.714Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-03-09T14:55:21.011Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,0,53],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00382,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-03-09T14:55:21.011Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","version":"3.1","headline":true},{"type":"cvss","source":"osv_npm","date":"2026-03-09T14:55:21.011Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","version":"3.1"},{"type":"cvss","source":"nvd","date":"2026-03-09T14:55:21.011Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2026-03-09T14:55:13.971Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.00382,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T09:01:26.874Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T09:01:27.430Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T09:01:27.610Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T09:01:02.756Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T09:01:25.188Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T09:01:24.136Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T09:21:42.389Z","stale":false,"partial":false}}