CVE-2018-20060 · mitre
CVE-2018-20060
urllib3 before version 1.23 does not remove the Authorization HTTP header when following a cross-origin redirect (i.e., a redirect that differs in host, port, or scheme). This can allow for credentials in the Authorization header to be exposed to unintended hosts or transmitted in cleartext.
Published 2018-12-11, last changed 2026-06-17.
How to fix
Upgrade to a fixed version: urllib3 1.23 (PyPI). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Where the flaw is in the code
Fixed in urllib3/urllib3 by pull request #1346, 560bd227b9, 7c216f433e. Functions changed by the fix: Retry, __init__, drain_and_release_conn, urlopen. Regression tests: test/with_dummyserver/test_connectionpool.py, test/with_dummyserver/test_poolmanager.py, test/appengine/test_gae_manager.py, test/test_retry.py. Confidence: inferred (code changed near the fix, but no record names this exact commit as the fix).
Timeline
| 2018-12-11 | Published |
| 2018-12-11 | Package advisory PYSEC-2018-32 |
| 2018-12-12 | Package advisory GHSA-www2-v7xj-xrc6 |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 4.49% |
| 2026-12-02 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-www2-v7xj-xrc6 | urllib3 (PyPI) | 1.23 |
| PYSEC-2018-32 | urllib3 (PyPI) | 1.23 |
Also known as: GHSA-www2-v7xj-xrc6, PYSEC-2018-32
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2026-97689 | 2026-09-29 | 7.5 | urllib3: HTTPResponse.stream()/read_chunked() buffers an unbounded chunk-size line into memory |
| CVE-2026-97688 | 2026-09-29 | 5.3 | urllib3: Chunked Deflate streaming can enter an infinite loop |
| CVE-2026-97687 | 2026-09-29 | 8.1 | urllib3: HTTPS proxy TLS configuration may be ignored or overridden |
| CVE-2026-44432 | 2026-05-13 | 7.5 | urllib3: Decompression-bomb safeguards bypassed in parts of the streaming API |
| CVE-2026-44431 | 2026-05-13 | 5.3 | urllib3: Sensitive headers forwarded across origins in proxied low-level redirects |
| CVE-2026-21441 | 2026-01-07 | 7.5 | urllib3 vulnerable to decompression-bomb safeguard bypass when following HTTP redirects (streaming API) |
| CVE-2025-66471 | 2025-12-05 | 7.5 | urllib3 Streaming API improperly handles highly compressed data |
| CVE-2025-66418 | 2025-12-05 | 7.5 | urllib3 allows an unbounded number of links in the decompression chain |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2018-20060, or call /api/v1/vulnerabilities/CVE-2018-20060. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.