8.8

CVE-2022-41919: fastify Cross-Site Request Forgery (CSRF)

CVSS: 8.8v3.1HighModified
AliasesGHSA-3fjj-p79j-c9hh
Published 22-11-2022Last modified 23-04-2025

Vulnerability summary

CVE-2022-41919 is a high (CVSS 8.8) Cross-Site Request Forgery (CSRF) vulnerability in fastify. EPSS estimates a 0.40% chance of exploitation in the next 30 days, higher than 32.8% of scored vulnerabilities.

Overall risk
35/100
0100
Medium · default modelHow is this calculated?
CVSS score
8.8/10
010
High · v3.1 (NVD)
EPSS score
0.40%
0%100%
Low · +0.01 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Timeline

  1. 22-11-2022
    PublishedVulnerability first disclosed.
  2. 23-04-2025
    Last modifiedVulnerability information updated.

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 metrics

3 scores · 3 sources · 1 version

EPSS trend

Probability

0.40%

Chance of exploitation in the next 30 days

Percentile

33%

Versus all other CVEs

30-day change

+0.01 pp

From 0.39% on 19-09-2026

19-09-202619-10-2026
EPSS score
0.40%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Fastify1 product
  • fastify≥ 3.0.0, < 3.29.4 | ≥ 4.0.0, < 4.10.2
Npm1 product
  • fastify≥ 4.0.0, < 4.10.2 | ≥ 3.0.0, < 3.29.4

2 vendors · 2 products

References

6 links