CVE-2022-35948
CRLF Injection in Nodejs ‘undici’ via Content-Type
undici is an HTTP/1.1 client, written from scratch for Node.js.`=< [email protected]` users are vulnerable to _CRLF Injection_ on headers when using unsanitized input as request headers, more specifically, inside the `content-type` header. Example: ``` import { request } from 'undici' const unsanitizedContentTypeInput = 'application/json\r\n\r\nGET /foo2 HTTP/1.1' await request('http://localhost:3000, { method: 'GET', headers: { 'content-type': unsanitizedContentTypeInput }, }) ``` The above snippet will perform two requests in a single `request` API call: 1) `http://localhost:3000/` 2) `http://localhost:3000/foo2` This issue was patched in Undici v5.8.1. Sanitize input when sending content-type headers using user input as a workaround.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 1.391% · 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-19T15:55:09.885Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 5.3 · published by GitHub_MCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Assessment source · checked 2026-11-19T12:56:34.725Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T15:55:09.885Z | CISA KEV |
| cvss | verified | 2026-11-19T12:56:34.725Z | CVE Program |
| epss | verified | 2026-11-19T16:04:34.659Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:31.685Z | OSV |
| affected | verified | 2026-11-19T12:56:34.725Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:56:34.725Z | CVE Program |
Affected versions and configuration
nodejs undici; default status: unknown: =< 5.8.0 [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": "nodejs",
"product": "undici",
"versions": [
{
"status": "affected",
"version": "=< 5.8.0"
}
]
}
],
"additionalContainers": [
{
"title": "CVE Program Container",
"references": [
{
"url": "https://github.com/nodejs/undici/releases/tag/v5.8.2",
"tags": [
"x_transferred"
]
},
{
"url": "https://github.com/nodejs/undici/security/advisories/GHSA-f772-66g8-q5h3",
"tags": [
"x_transferred"
]
},
{
"url": "https://github.com/nodejs/undici/commit/66165d604fd0aee70a93ed5c44ad4cc2df395f80",
"tags": [
"x_transferred"
]
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2024-08-03T09:51:59.082Z"
}
},
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2022-35948",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "poc"
},
{
"Automatable": "yes"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2025-04-22T15:39:48.293625Z"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2025-04-22T17:42:05.598Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-f772-66g8-q5h3",
"aliases": [
"CVE-2022-35948"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "5.8.2"
}
]
}
],
"package": {
"name": "undici",
"purl": "pkg:npm/undici",
"ecosystem": "npm"
},
"versions": [],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/08/GHSA-f772-66g8-q5h3/GHSA-f772-66g8-q5h3.json",
"last_known_affected_version_range": "<= 5.8.1"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/nodejs/undici/security/advisories/GHSA-f772-66g8-q5h3",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2022-35948",
"type": "ADVISORY"
},
{
"url": "https://github.com/nodejs/undici/commit/66165d604fd0aee70a93ed5c44ad4cc2df395f80",
"type": "WEB"
},
{
"url": "https://github.com/nodejs/undici",
"type": "PACKAGE"
},
{
"url": "https://github.com/nodejs/undici/releases/tag/v5.8.2",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-74",
"CWE-93"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": "2022-08-15T11:21:00Z",
"github_reviewed_at": "2022-08-18T19:02:56Z"
}
}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 | undici | Not a distribution channel | 5.8.2 | 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:31.685ZArchived source JSON
Source publication: 2022-08-18T19:02:56.000Z
Source modification: 2023-11-08T04:09:53.836ZDocument fingerprint
5d6d75d792b516aad9918564f2547ee8b9e8538569dc2e4ae0c28391e44547c6 - CVE ProgramConsulted: 2026-11-19T12:56:34.725ZArchived source JSON
Source publication: 2022-08-13T00:00:00.000Z
Source modification: 2025-04-22T17:42:05.598ZDocument fingerprint
1e35a0c3464cec83ddbfe24bfacc3f818a682b9ae8993dc28a3a5165678939de - CISA KEVConsulted: 2026-11-19T15:55:09.885ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:34.659ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
ebc3741797ce6bacd6a15ab266164046e3e05f01d3c263c1d41b753e0058bf3c
Official status history
- UNKNOWN → PUBLISHED · · evidence