CVE & CISA-KEV Catalog

CVE-2022-35949

MEDIUM
5.3
CVSS v3
NVD

Description

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.

How to fix

Remediation Available
node-undiciDebian
Fixed in:5.8.2+dfsg1+~cs18.9.18.1-1CVE-2022-35949
Fixed in:5.8.2+dfsg1+~cs18.9.18.1-1CVE-2022-35949
Fixed in:5.8.2+dfsg1+~cs18.9.18.1-1CVE-2022-35949

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityLow
IntegrityNone
AvailabilityNone

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Exploit Intelligence

1.39%probability of exploitation in 30 days
69thpercentile

Moderate risk: more likely to be exploited than 69% of all known CVEs.

References

Exploit1
Third-Party Advisory1

Related Vulnerabilities

Other CWE-918 (Server-Side Request Forgery (SSRF)) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2024-21893High8.2100%KEV + Ransom-
CVE-2021-40438Critical9.0100%KEVFix
CVE-2021-34473Critical9.1100%KEV + RansomFix
CVE-2021-26855Critical9.1100%KEV + RansomFix
CVE-2021-21985Critical9.8100%KEV + RansomFix
CVE-2022-41040High8.8100%KEV + RansomFix
Embed a live status badge for CVE-2022-35949
CVE-2022-35949 severity badge

Markdown

[![CVE-2022-35949](https://tridentstack.com/cve/badge/CVE-2022-35949.svg)](https://tridentstack.com/cve/CVE-2022-35949)

HTML

<a href="https://tridentstack.com/cve/CVE-2022-35949"><img src="https://tridentstack.com/cve/badge/CVE-2022-35949.svg" alt="CVE-2022-35949"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.