Description
urllib is an HTTP client for Node.js that supports authentication, redirects, timeouts, and other request features. Prior to 4.9.1 and 2.44.1, urllib follows redirects through followRedirect but reuses caller-supplied options across origins. In src/HttpClient.ts, #requestInternal recursively calls this.#requestInternal(nextUrl.href, options, requestContext), causing options.headers and auth or digestAuth values to be reused when the redirect target has a different scheme, host, or port. Authorization, Cookie, Proxy-Authorization, x-api-key, x-auth-token, and x-access-token can therefore be sent to an attacker-controlled redirected origin, exposing credentials intended for the original origin and potentially allowing reuse against the original partner API or related services. No user interaction is required. This issue is fixed in versions 2.44.1 and 4.9.1.
References8
- github.com/node-modules/urllib/commit/7c86c465883ebd3dea5109c87…
- github.com/node-modules/urllib/commit/811a8d56e64e540bf6a19bf8b…
- github.com/node-modules/urllib/pull/812
- github.com/node-modules/urllib/pull/813
- github.com/node-modules/urllib/releases/tag/v2.44.1
- github.com/node-modules/urllib/releases/tag/v4.9.1
- github.com/node-modules/urllib/security/advisories/GHSA-hq3h-g6…
- github.com/node-modules/urllib/security/advisories/GHSA-hq3h-g6…
Metrics
- CVSS 3.1
-
7.5
HIGH
Score source: CNA
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - EPSS — exploit probability
- 1% percentile: 52 · as of 9 November 2026
- CWE
- CWE-200CWE-201CWE-522
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.