SecurityContext

CVE-2022-41919: Fastify - Cross-Site Request Forgery

  • Cve: CVE-2022-41919
  • Name: Fastify - Cross-Site Request Forgery
  • 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'.
  • Impact: Attackers can perform CSRF attacks by bypassing CORS protections, potentially leading to unauthorized actions on behalf of users.
  • Remediation: Update to version 4.10.2 or 3.29.4 and implement CSRF protection with @fastify/csrf.
  • Vulnerability type: cross_site_request_forgery
  • Requirement type: user_interaction
  • Requirements: Attacker needs to craft specific fetch() requests with manipulated Content-Type
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Epss score: 0.00491
  • Epss percentile: 0.4307
  • Assignee: [email protected]
  • Published at: 2022-11-22T20:15:11Z
  • Age in days: 1463
  • Modified at: 2026-06-17T05:04:03Z
  • Patch available: yes
  • References total: 3
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-41919
  • Nvd status: modified
  • Checked, none or zero: vulnerability impact, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd

Cwe

IdName
CWE-352Cross-Site Request Forgery

Hackerone

  • Reports: 1
  • Rank: 5211

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/fastify/fastify/commit/62dde76f1f7aca76e38625fe8d983761f26e6fc9Patch, Third Party Advisory
https://github.com/fastify/fastify/security/advisories/GHSA-3fjj-p79j-c9hhThird Party Advisory
https://www.npmjs.com/package/%40fastify/csrf

Products

ProductAffectedPlatform boundSourcesUrl
fastify:fastify>= 4.0.0, < 4.10.2; >= 3.0.0, < 3.29.4nonvd/v1/products/fastify/fastify

Projects

RepositoryLink kindsIndexedUrl
fastify/fastifycommit, fix, package, security_advisoryyes/v1/repositories/fastify/fastify

Index

  • Repositories: 12
  • Repositories high signal: 4
  • Packages: 1

Exploitation

  • Remote: yes
  • Hackerone reports: 1
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, exposed hosts