CVE-2022-35948 | CRLF Injection in Nodejs ‘undici’ via Content-Type

Exp

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.

Published: 2022-08-15 Last update: 2026-06-17 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2022-35948 is rated Exploit Available (59.7/100): CVSS Medium severity, with medium exploitation likelihood (EPSS 1.20%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). EPSS rose +1.03% over the last day, indicating growing attacker interest. Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Public exploit references (Exploit-DB) for CVE-2022-35948

EDB-ID Source Kind Published Link
nvd_ref exploit_tag Exploit-DB ↗

Exploit prediction scoring system (EPSS) score for CVE-2022-35948

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-15 0.17% 1.20% +1.03%
2 2026-02-04 0.14% 0.17% +0.03%
3 2026-02-01 0.14%

Full EPSS history (16 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2022-35948

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
5.3 3.1 MEDIUM
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:N)
Doesn’t really leak secrets in a meaningful way.
Integrity (I:L)
Attackers could change some data, but it’s limited—not everything goes.
Availability (A:N)
Service keeps running; no real outage angle.
3.9 1.4 [email protected]
5.3 3.1 MEDIUM
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:N)
Doesn’t really leak secrets in a meaningful way.
Integrity (I:L)
Attackers could change some data, but it’s limited—not everything goes.
Availability (A:N)
Service keeps running; no real outage angle.
3.9 1.4 [email protected]

Weakness enumeration for CVE-2022-35948

GitHub Security Advisory for CVE-2022-35948

GHSA-f772-66g8-q5h3 · Severity: medium · Ecosystem: npm — Nodejs ‘undici’ vulnerable to CRLF Injection via Content-Type

OS Trackers for CVE-2022-35948

vendor priority summary link
debian not yet assigned CVE-2022-35948 not yet assigned priority: Debian including 1 source packages (node-undici), 4 status rows across 4 suites (bookworm, forky, sid, trixie): resolved 4. https://security-tracker.debian.org/tracker/CVE-2022-35948
gentoo low CVE-2022-35948: 1 GLSA(s) (202405-29), 1 atom(s) (net-libs/nodejs); latest impact low. https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2022-35948
redhat medium https://access.redhat.com/security/cve/CVE-2022-35948
suse medium CVE-2022-35948 severity moderate: SUSE including 23 source package names (16-7.1:nodejs16-16.17.0-150400.3.6.1, 16-7.1:npm16-16.17.0-150400.3.6.1, …), 100 product×package rows across 19 product lines (Container bci/nodejs, SUSE Enterprise Storage 7, … (19 product lines)): Known Not Affected 58, Fixed 42. https://www.suse.com/security/cve/CVE-2022-35948/
ubuntu medium CVE-2022-35948 medium priority: Ubuntu including 1 source packages (node-undici), 7 status rows across 7 suites (bionic, focal, jammy, kinetic, trusty, upstream, xenial): DNE 5, not-affected 1, released 1. https://ubuntu.com/security/CVE-2022-35948

Affected software / configurations for CVE-2022-35948

Vendor Product Version Raw CPE
nodejs undici < 5.8.2 cpe:2.3:a:nodejs:undici:*:*:*:*:*:node.js:*:*

References for CVE-2022-35948

cvelogic Threat Intelligence