{"api_version":"1","generated_at":"2026-04-23T02:38:00+00:00","cve":"CVE-2022-41919","urls":{"html":"https://cve.report/CVE-2022-41919","api":"https://cve.report/api/cve/CVE-2022-41919.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-41919","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-41919"},"summary":{"title":"CVE-2022-41919","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'.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2022-11-22 20:15:00","updated_at":"2023-11-07 03:53:00"},"problem_types":["CWE-352"],"metrics":[],"references":[{"url":"https://github.com/fastify/fastify/commit/62dde76f1f7aca76e38625fe8d983761f26e6fc9","name":"https://github.com/fastify/fastify/commit/62dde76f1f7aca76e38625fe8d983761f26e6fc9","refsource":"MISC","tags":[],"title":"Merge pull request from GHSA-3fjj-p79j-c9hh · fastify/fastify@62dde76 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.npmjs.com/package/%40fastify/csrf","name":"https://www.npmjs.com/package/%40fastify/csrf","refsource":"","tags":[],"title":"@fastify/csrf - npm","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/fastify/fastify/security/advisories/GHSA-3fjj-p79j-c9hh","name":"https://github.com/fastify/fastify/security/advisories/GHSA-3fjj-p79j-c9hh","refsource":"CONFIRM","tags":[],"title":"Incorrect Content-Type parsing can lead to CSRF attack  · Advisory · fastify/fastify · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.npmjs.com/package/@fastify/csrf","name":"https://www.npmjs.com/package/@fastify/csrf","refsource":"MISC","tags":[],"title":"@fastify/csrf - npm","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-41919","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-41919","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"41919","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"fastify","cpe5":"fastify","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2022-41919","STATE":"PUBLIC","TITLE":"Fastify vulnerable to Cross-Site Request Forgery (CSRF) attack via incorrect content type"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"fastify","version":{"version_data":[{"version_value":">= 4.0.0, < 4.10.2"},{"version_value":">= 3.0.0, < 3.29.4"}]}}]},"vendor_name":"fastify"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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'."}]},"impact":{"cvss":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":4.2,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-352: Cross-Site Request Forgery (CSRF)"}]}]},"references":{"reference_data":[{"name":"https://github.com/fastify/fastify/security/advisories/GHSA-3fjj-p79j-c9hh","refsource":"CONFIRM","url":"https://github.com/fastify/fastify/security/advisories/GHSA-3fjj-p79j-c9hh"},{"name":"https://github.com/fastify/fastify/commit/62dde76f1f7aca76e38625fe8d983761f26e6fc9","refsource":"MISC","url":"https://github.com/fastify/fastify/commit/62dde76f1f7aca76e38625fe8d983761f26e6fc9"},{"name":"https://www.npmjs.com/package/@fastify/csrf","refsource":"MISC","url":"https://www.npmjs.com/package/@fastify/csrf"}]},"source":{"advisory":"GHSA-3fjj-p79j-c9hh","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2022-11-22 20:15:00","lastModifiedDate":"2023-11-07 03:53:00","problem_types":["CWE-352"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":8.8,"baseSeverity":"HIGH"},"exploitabilityScore":2.8,"impactScore":5.9}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:fastify:fastify:*:*:*:*:*:node.js:*:*","versionStartIncluding":"4.0.0","versionEndExcluding":"4.10.2","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:fastify:fastify:*:*:*:*:*:node.js:*:*","versionStartIncluding":"3.0.0","versionEndExcluding":"3.29.4","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}