CVE-2022-41919
Fastify vulnerable to Cross-Site Request Forgery (CSRF) attack via incorrect content type
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'.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.491% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T17:28:52.703Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 4.2 · published by GitHub_MCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
Assessment source · checked 2026-11-19T12:56:44.231Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T17:28:52.703Z | CISA KEV |
| cvss | verified | 2026-11-19T12:56:44.231Z | CVE Program |
| epss | verified | 2026-11-19T16:04:35.462Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:30.987Z | OSV |
| affected | verified | 2026-11-19T12:56:44.231Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:56:44.231Z | CVE Program |
Affected versions and configuration
fastify fastify; default status: unknown: >= 4.0.0, < 4.10.2 [affected; scheme: unspecified]; >= 3.0.0, < 3.29.4 [affected; scheme: unspecified]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "fastify",
"product": "fastify",
"versions": [
{
"status": "affected",
"version": ">= 4.0.0, < 4.10.2"
},
{
"status": "affected",
"version": ">= 3.0.0, < 3.29.4"
}
]
}
],
"additionalContainers": [
{
"title": "CVE Program Container",
"references": [
{
"url": "https://github.com/fastify/fastify/security/advisories/GHSA-3fjj-p79j-c9hh",
"tags": [
"x_transferred"
]
},
{
"url": "https://github.com/fastify/fastify/commit/62dde76f1f7aca76e38625fe8d983761f26e6fc9",
"tags": [
"x_transferred"
]
},
{
"url": "https://www.npmjs.com/package/%40fastify/csrf",
"tags": [
"x_transferred"
]
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2024-08-03T12:56:38.544Z"
}
},
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2022-41919",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2025-04-23T13:54:07.870257Z"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2025-04-23T16:36:24.268Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-3fjj-p79j-c9hh",
"aliases": [
"CVE-2022-41919"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "4.0.0"
},
{
"fixed": "4.10.2"
}
]
}
],
"package": {
"name": "fastify",
"purl": "pkg:npm/fastify",
"ecosystem": "npm"
},
"versions": [],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/11/GHSA-3fjj-p79j-c9hh/GHSA-3fjj-p79j-c9hh.json"
}
},
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "3.0.0"
},
{
"fixed": "3.29.4"
}
]
}
],
"package": {
"name": "fastify",
"purl": "pkg:npm/fastify",
"ecosystem": "npm"
},
"versions": [],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/11/GHSA-3fjj-p79j-c9hh/GHSA-3fjj-p79j-c9hh.json"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/fastify/fastify/security/advisories/GHSA-3fjj-p79j-c9hh",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2022-41919",
"type": "ADVISORY"
},
{
"url": "https://github.com/fastify/fastify/commit/62dde76f1f7aca76e38625fe8d983761f26e6fc9",
"type": "WEB"
},
{
"url": "https://github.com/fastify/fastify",
"type": "PACKAGE"
},
{
"url": "https://www.npmjs.com/package/@fastify/csrf",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-352"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": "2022-11-22T20:15:00Z",
"github_reviewed_at": "2022-11-21T22:28:11Z"
}
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | npm / package | fastify | Not a distribution channel | 4.10.2 | Official record |
| ecosystem-boundary | npm / package | fastify | Not a distribution channel | 3.29.4 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- OSVConsulted: 2026-11-19T12:52:30.987ZArchived source JSON
Source publication: 2022-11-21T22:28:11.000Z
Source modification: 2023-11-08T04:10:35.631ZDocument fingerprint
55d483bc826a0c5071574372d56441dd1e0bca0643e042f7ad3603b5fbde7b44 - CISA KEVConsulted: 2026-11-19T17:28:52.703ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - CVE ProgramConsulted: 2026-11-19T12:56:44.231ZArchived source JSON
Source publication: 2022-11-22T00:00:00.000Z
Source modification: 2025-04-23T16:36:24.268ZDocument fingerprint
d986ad54dd026bb7b798e717e344c96db8435677ad78f0f2ba327675d1590dd1 - FIRST EPSSConsulted: 2026-11-19T16:04:35.462ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
b63cbe7bc63e0501e688ddd23bd124e41d9f115ff6b890919f13eaaeebc955fc
Official status history
- UNKNOWN → PUBLISHED · · evidence