CVE-2022-35949 | `undici.request` vulnerable to SSRF using absolute URL on `pathname`

Exp

undici is an HTTP/1.1 client, written from scratch for Node.js.`undici` is vulnerable to SSRF (Server-side Request Forgery) when an application takes in **user input** into the `path/pathname` option of `undici.request`. If a user specifies a URL such as `http://127.0.0.1` or `//127.0.0.1` ```js const undici = require("undici") undici.request({origin: "http://example.com", pathname: "//127.0.0.1"}) ``` Instead of processing the request as `http://example.org//127.0.0.1` (or `http://example.org/http://127.0.0.1` when `http://127.0.0.1 is used`), it actually processes the request as `http://127.0.0.1/` and sends it to `http://127.0.0.1`. If a developer passes in user input into `path` parameter of `undici.request`, it can result in an _SSRF_ as they will assume that the hostname cannot change, when in actual fact it can change because the specified path parameter is combined with the base URL. This issue was fixed in `[email protected]`. The best workaround is to validate user input before passing it to the `undici.request` call.

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

Conclusion & alert: CVE-2022-35949 is rated High Exploit Risk (61.2/100): CVSS Medium severity, with medium exploitation likelihood (EPSS 1.39%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). 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-35949

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

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

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.39% 1.39% +1.00%
2 2026-03-04 0.22% 0.39% +0.17%
3 2026-03-01 0.22%

Full EPSS history (34 records total)

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

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:L/I:N/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:L)
Some sensitive info could get out, but not a total data dump.
Integrity (I:N)
Data isn’t meaningfully altered or forged.
Availability (A:N)
Service keeps running; no real outage angle.
3.9 1.4 [email protected]
9.8 3.1 CRITICAL
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H 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:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
3.9 5.9 [email protected]

Weakness enumeration for CVE-2022-35949

GitHub Security Advisory for CVE-2022-35949

GHSA-8qr4-xgw6-wmr3 · Severity: medium · Ecosystem: npm — `undici.request` vulnerable to SSRF using absolute URL on `pathname`

OS Trackers for CVE-2022-35949

vendor priority summary link
debian not yet assigned CVE-2022-35949 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-35949
gentoo low CVE-2022-35949: 1 GLSA(s) (202405-29), 1 atom(s) (net-libs/nodejs); latest impact low. https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2022-35949
redhat medium https://access.redhat.com/security/cve/CVE-2022-35949
suse medium CVE-2022-35949 severity moderate: SUSE including 28 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, …), 105 product×package rows across 20 product lines (Container bci/nodejs, SUSE Enterprise Storage 7, … (20 product lines)): Known Not Affected 58, Fixed 47. https://www.suse.com/security/cve/CVE-2022-35949/
ubuntu medium CVE-2022-35949 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-35949

Affected software / configurations for CVE-2022-35949

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

References for CVE-2022-35949

cvelogic Threat Intelligence