Skip to main content

node-modules urllib CVE-2026-55553

| EUVDEUVD-2026-65613 HIGH
Information Exposure (CWE-200)
2026-08-25 GitHub_M GHSA-hq3h-g68c-hp78
7.5
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker controls or compromises redirect-issuing server
  2. Delivery
    Victim app sends authenticated urllib request to trusted endpoint
  3. Exploit
    Endpoint returns 302 redirect to attacker-controlled origin
  4. Execution
    urllib reuses original credential headers on redirected request
  5. Persist
    Attacker server captures Authorization/Cookie/API-key values
  6. Impact
    Attacker 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

urllib < 2.44.1
urllib 3.0.0, < 4.9.1

Affected Packages

npm urllib fix: 2.44.1, 4.9.1

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

Vendor (GitHub_M) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
vuln.today AI 5.9 MEDIUM

AC:H because attacker must control or influence the redirect target URL, a non-trivial external precondition; no confidentiality impact beyond credential exposure.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Red Hat 7.5 HIGH

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

Lifecycle Timeline

2
Patch available
Aug 25, 2026 - 18:17 EUVD
CVE Published
Aug 25, 2026 - 16:18 cve.org
HIGH 7.5

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.4%
Top 70% exploitable
Prevalence
Medium
popular npm HTTP client, significant Node.js ecosystem adoption
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

58
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy