{"cve":"CVE-2022-41919","nvd":{"published":"2022-11-22T20:15:11.110","modified":"2026-06-17T05:04:03.767","status":"Modified","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'.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8},"cwes":["CWE-352"],"references":["https://github.com/fastify/fastify/commit/62dde76f1f7aca76e38625fe8d983761f26e6fc9","https://github.com/fastify/fastify/security/advisories/GHSA-3fjj-p79j-c9hh","https://www.npmjs.com/package/%40fastify/csrf","https://github.com/fastify/fastify/commit/62dde76f1f7aca76e38625fe8d983761f26e6fc9","https://github.com/fastify/fastify/security/advisories/GHSA-3fjj-p79j-c9hh"],"products":["fastify:fastify"],"source":"nvd","synced_at":"2026-10-19T21:37:28.463369388+00:00"},"epss":{"cve":"CVE-2022-41919","score":0.00409,"percentile":0.35163,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-3fjj-p79j-c9hh","url":"https://osv.dev/vulnerability/GHSA-3fjj-p79j-c9hh","summary":"Fastify: Incorrect Content-Type parsing can lead to CSRF attack ","modified":"2023-11-08T04:10:35.631515Z","packages":[{"ecosystem":"npm","name":"fastify","purl":"pkg:npm/fastify","ranges":[">=4.0.0 <4.10.2"],"fixed":["4.10.2"]},{"ecosystem":"npm","name":"fastify","purl":"pkg:npm/fastify","ranges":[">=3.0.0 <3.29.4"],"fixed":["3.29.4"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}