{"schemaVersion":3,"id":"CVE-2022-41919","aliases":["GHSA-3fjj-p79j-c9hh"],"status":"published","duplicateOf":null,"title":null,"description":"Fastify is a web framework with minimal overhead and plugin architecture. 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. This issue has been patched in version 4.10.2 and 3.29.4. As a workaround, implement Cross-Site Request Forgery protection using `@fastify/csrf'.","dates":{"published":"2022-11-22T00:00:00.000Z","modified":"2025-04-23T16:36:24.268Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":4.2,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":4.2,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N","exploitability":4.1,"impact":4.2,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00401,"percentile":0.3292,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.014999999999999953,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00386},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00386,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00386,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00386,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00386,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00386,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00386,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00386,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00386,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00401,"percentile":0.3292}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00386,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00386,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00401,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00401,"percentile":0.3292}]},"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-352","name":"Cross-Site Request Forgery (CSRF)","description":"The web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor.","type":"weakness","status":"Stable","abstraction":"Compound","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/352.html"}],"affected":[{"vendor":"fastify","product":"fastify","name":"fastify","label":"fastify","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 3.0.0, < 3.29.4","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.0.0, < 4.10.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 3.0.0, < 3.29.4 | ≥ 4.0.0, < 4.10.2","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":"≥ 4.0.0, < 4.10.2","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.0.0, < 3.29.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 4.0.0, < 4.10.2 | ≥ 3.0.0, < 3.29.4","eol":null,"hubHref":null}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/fastify/fastify/security/advisories/GHSA-3fjj-p79j-c9hh","label":"github.com/fastify/fastify/security/advisories/GHSA-3fjj-p79j-c9hh","hostname":"github.com","tags":["WEB","Third Party Advisory"]},{"url":"https://github.com/fastify/fastify/commit/62dde76f1f7aca76e38625fe8d983761f26e6fc9","label":"github.com/fastify/fastify/commit/62dde76f1f7aca76e38625fe8d983761f26e6fc9","hostname":"github.com","tags":["WEB","Patch","Third Party Advisory"]},{"url":"https://www.npmjs.com/package/%40fastify/csrf","label":"www.npmjs.com/package/%40fastify/csrf","hostname":"www.npmjs.com","tags":[]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-41919","label":"nvd.nist.gov/vuln/detail/CVE-2022-41919","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/fastify/fastify","label":"github.com/fastify/fastify","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://www.npmjs.com/package/@fastify/csrf","label":"www.npmjs.com/package/@fastify/csrf","hostname":"www.npmjs.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2022-11-22T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-04-23T16:36:24.268Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":35,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T14:43:42.456Z","stale":false,"partial":false}}