Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker controls or compromises redirect-issuing server
-
DeliveryVictim app sends authenticated urllib request to trusted endpoint
-
ExploitEndpoint returns 302 redirect to attacker-controlled origin
-
Executionurllib reuses original credential headers on redirected request
-
PersistAttacker server captures Authorization/Cookie/API-key values
-
ImpactAttacker replays credentials against original partner API
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V14 - Data Protection Data exposure prevention
MITRE ATT&CK
2 techniques across 2 tactics: Collection, Discovery The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The followRedirect option must be active (it is the default behavior in urllib); applications that explicitly set followRedirect: false are not affected. The original request must supply credential-bearing headers - Authorization, Cookie, Proxy-Authorization, x-api-key, x-auth-token, x-access-token - or configure options.auth (Basic) or options.digestAuth; requests with no credentials in headers or options are not affected. The attacker must control or influence the redirect target URL, meaning they must either operate the redirecting server, exploit an open redirect vulnerability on a trusted upstream host, or otherwise inject a Location header pointing to their infrastructure. Exploitation is limited to the urllib v3/v4 branch (>=3.0.0, <=4.9.0) and v2 branch (<=2.44.0); GHSA confirmed that urllib was the only tested Node.js HTTP client that did not strip headers on cross-origin redirect as of v4.9.0. No user interaction by a human operator is required once the attacker controls the redirect target. |
| Impact | The NVD CVSS 3.1 score of 7.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N) accurately reflects the network-exposed, unauthenticated nature of the flaw from the attacker's perspective, but AC:L may slightly overstate ease of exploitation: the attacker must be positioned to control or influence the redirect target URL, which requires either owning an upstream service, abusing an open redirect vulnerability on a trusted partner endpoint, or operating in an SSRF-adjacent scenario. No EPSS score was provided in the input data, so exploitation probability cannot be independently quantified. There is no CISA KEV entry, meaning active in-the-wild exploitation is unconfirmed. A working three-container proof-of-concept topology is documented in the GHSA advisory (GHSA-hq3h-g68c-hp78), confirming exploitability in controlled conditions. Real-world impact is highest in server-to-server API integration patterns where urllib is used with long-lived Bearer tokens or session cookies and where the upstream API can be caused to issue redirects to attacker-controlled hosts. Applications using urllib solely on same-origin infrastructure with no possibility of attacker-influenced redirect targets face significantly reduced practical risk despite the high CVSS score. |
| Exploit ScenarioDerived | An application backend uses urllib with a long-lived Bearer token to call a partner REST API. An attacker who can influence the partner API's redirect responses - for example by exploiting an open redirect on that partner's domain or by compromising the partner's DNS - causes the partner endpoint to issue a 302 redirect to an attacker-controlled server. urllib follows the redirect and forwards the original Authorization: Bearer LIVE-AUTH header to the attacker's server, which logs the credential. The attacker then replays the token directly against the original partner API to access data or perform privileged actions. A three-container reproduction topology demonstrating this scenario is documented in the GHSA advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 25, 2026
Credential leakage in the urllib Node.js HTTP client (npm package node-modules/urllib) allows attacker-controlled redirect targets to capture sensitive authentication headers sent by the victim application. Versions through 4.9.0 (v3/v4 branch) and through 2.44.0 (v2 branch) recursively reuse the original caller-supplied options object - including Authorization, Cookie, Proxy-Authorization, x-api-key, x-auth-token, and x-access-token headers - when following redirects to a different origin, violating the WHATWG Fetch specification's cross-origin header-stripping requirement. No public exploit code has been released beyond the proof-of-concept topology described in the GHSA advisory, and no active exploitation has been confirmed by CISA KEV at time of analysis.
RemediationAI
The primary remediation is to upgrade urllib to version 4.9.1 (for v3/v4 users) or 2.44.1 (for v2 users); both releases are tagged on GitHub at https://github.com/node-modules/urllib/releases/tag/v4.9.1 and https://github.com/node-modules/urllib/releases/tag/v2.44.1. The patches were delivered via pull requests #812 and #813. If an immediate upgrade is not possible, a targeted workaround is to disable the followRedirect option in urllib call sites that supply credential-bearing headers, accepting the trade-off that redirects from upstream APIs will no longer be followed automatically and must be handled explicitly by the calling code. Alternatively, callers can implement a custom beforeRedirect hook (if the API supports it) to strip Authorization, Cookie, Proxy-Authorization, x-api-key, x-auth-token, and x-access-token before each redirect. Applications that integrate with partner APIs that could issue attacker-influenced redirects should also audit their upstream trust boundaries regardless of which urllib version is in use.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The affected code lives in src/HttpClient.ts within the #requestInternal private method of the HttpClient class (node-modules/urllib, CPE cpe:2.3:a:node-modules:urllib:*:*:*:*:*:*:*:*). When a redirect status code (301, 302, 303, 307, 308) is received, the method resolves the next URL and then calls this.#requestInternal(nextUrl.href, options, requestContext) recursively, passing the identical options reference. Because JavaScript objects are passed by reference and the caller's options.headers, options.auth (HTTP Basic), and options.digestAuth are never sanitized before the recursive call, the full credential payload is forwarded to nextUrl regardless of origin. The root cause maps directly to CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor): the library's information-flow control fails to enforce origin isolation mandated by the WHATWG Fetch spec (https://fetch.spec.whatwg.org/#http-redirect-fetch), which requires stripping Authorization, Cookie, and Proxy-Authorization on cross-origin redirects. The fix introduces a CrossOriginSensitiveHeaders Set, performs an origin comparison (nextUrl.origin !== requestUrl.origin), and creates a cloned redirectOptions with sensitive headers removed and auth/digestAuth set to undefined before the recursive call.
Know when Urllib gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
AC:H because attacker must control or influence the redirect target URL, a non-trivial external precondition; no confidentiality impact beyond credential exposure.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
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.
Executive ViewAI
The urllib Node.js HTTP client leaks sensitive authentication credentials (API keys, tokens, cookies) to attacker-controlled external websites during HTTP redirects, exposing organizations using this package to authentication bypass and credential compromise. Without a vendor patch, organizations must immediately identify affected applications and implement protective controls. The potential scale of exposure across API integrations and user sessions makes urgent remediation essential.
Implement strict application-level HTTP redirect validation to reject redirects to unexpected external domains; configure network-level monitoring and access controls to prevent unexpected redirect destinations; immediately rotate all API keys, authentication tokens, and session credentials that may have been transmitted; migrate to alternative Node.js HTTP clients with proper cross-origin header stripping compliance; enable comprehensive logging of all HTTP redirect patterns for detection and forensic analysis.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
EUVD-2026-65613
GHSA-hq3h-g68c-hp78
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB