p PatchFirst

CVE-2026-55553

CVE-2026-55553 · urllib: Cross-origin redirects preserve credential-bearing request headers, leading to potential credential leakage

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 7.5 · High · EPSS 0.7% · Fix available

Published
Updated

Stack: node

Affected products and versions

  • urllib

    Versions
    • >= 3.0.0, < 4.9.1: Affected
    • < 2.44.1: Affected

    No fix published

  • urllib npm

    Affected ranges
    • SEMVER: ≥ 3.0.0, < 4.9.1

    Update to 4.9.1

  • urllib npm

    Affected ranges
    • SEMVER: < 2.44.1

    Update to 2.44.1

Original sources

Check your server →