GHSA-8qr4-xgw6-wmr3 · Severity: medium · Ecosystem: npm — `undici.request` vulnerable to SSRF using absolute URL on `pathname`
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.
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.
| EDB-ID | Source | Kind | Published | Link |
|---|---|---|---|---|
| — | nvd_ref | exploit_tag | Exploit-DB ↗ |
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)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 5.3 | 3.1 | MEDIUM |
|
3.9 | 1.4 | [email protected] |
| 9.8 | 3.1 | CRITICAL |
|
3.9 | 5.9 | [email protected] |
GHSA-8qr4-xgw6-wmr3 · Severity: medium · Ecosystem: npm — `undici.request` vulnerable to SSRF using absolute URL on `pathname`
| 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 |
| URL | Tags |
|---|---|
| https://github.com/nodejs/undici/commit/124f7ebf705366b2e1844dff721928d270f87895 | Patch Third Party Advisory |
| https://github.com/nodejs/undici/releases/tag/v5.8.2 | Release Notes Third Party Advisory |
| https://github.com/nodejs/undici/security/advisories/GHSA-8qr4-xgw6-wmr3 | Exploit Mitigation Third Party Advisory |