Read the docs
TI-2022-16376 Aliases CVE-2022-35949GHSA-8qr4-xgw6-wmr3

`undici.request` vulnerable to SSRF using absolute URL on `pathname`

Priority HIGH 81CWE-918Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
High · High · High
Fix status
Partial Red Hat: 2 without a fix

Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat.

Summary

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.01927 80th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Partial undici (npm): 5.8.2Red Hat: 1 advisoryRed Hat: 2 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
NodeJSundiciup to 5.8.1—No fix listedCNA
—undici (npm)before 5.8.25.8.2Patch availableGHSA-8qr4-xgw6-wmr3
  • undici VendorNodeJS Affected up to 5.8.1 Fixed in — No fix listed CNA
  • undici (npm) Vendor— Affected before 5.8.2 Fixed in 5.8.2 Patch available GHSA-8qr4-xgw6-wmr3

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:nodejs:undici:*:*:*:*:*:node.js:*:*up to 5.8.1VulnerableNodeJS
  • cpe:2.3:a:nodejs:undici:*:*:*:*:*:node.js:*:* Versions up to 5.8.1 Vulnerable ·NodeJS

Remediation

  • Fix · GHSA-8qr4-xgw6-wmr3 undici (npm) Fixed in 5.8.2 Advisory →

Red Hat 1 advisory

  • RHSA-2022:7276 Released 2022-11-01 · Red Hat rating Moderate
    Red Hat Advanced Cluster Management 2.4.8 security fixes and container updates
    • Red Hat Advanced Cluster Management for Kubernetes 2.4 for RHEL 8 rhacm2/acm-grafana-rhel8, rhacm2/acm-must-gather-rhel8, rhacm2/acm-operator-bundle +47

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Advanced Cluster Management for Kubernetes 2AffectedNo fix yet
Red Hat OpenShift Dev SpacesAffectedNo fix yet

Timeline

  1. 2026-10-02 Threatist record created from CVE-2022-35949
  2. 2026-10-03 Alias added: GHSA-8qr4-xgw6-wmr3

References

  • TI-2026-01215 undici is vulnerable to Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling') CVSS 3.1CRITICAL 9.8
  • TI-2023-09734 CRLF Injection in Nodejs ‘undici’ via host CVSS 3.1MEDIUM 6.5
  • TI-2022-13193 CRLF injection in request headers CVSS 3.1MEDIUM 6.5
  • TI-2022-16375 CRLF Injection in Nodejs ‘undici’ via Content-Type CVSS 3.1MEDIUM 5.3
  • TI-2022-13194 Uncleared cookies on cross-host/cross-origin redirect in undici CVSS 3.1MEDIUM 6.5
  • TI-2024-20007 Undici's fetch with integrity option is too lax when algorithm is specified but hash value is in incorrect CVSS 3.1LOW 3.5
See all 51 →

Sources