CVE-2018-20060: Infoleak

Published Mar 26, 2018
·
Updated

Last updated 18 August 2025

Other sources

python-urllib3 before version 1.23 does not remove the 'Authorization' HTTP header when following a cross-origin redirect. This can allow for credentials in the 'Authorization' header to be exposed as they are transmitted in plaintext.

Upstream Issues:

https://github.com/urllib3/urllib3/issues/1316 https://github.com/urllib3/urllib3/pull/1346

Red Hat

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.

Affected Software

13 affected componentsFixes available
redhat/python-urllib3<0:1.10.2-7.el7
0:1.10.2-7.el7
redhat/python-pip<0:9.0.3-7.el7_7
0:9.0.3-7.el7_7
redhat/python-virtualenv<0:15.1.0-4.el7_7
0:15.1.0-4.el7_7
redhat/python-pip<0:9.0.3-7.el7_8
0:9.0.3-7.el7_8
redhat/python-virtualenv<0:15.1.0-4.el7_8
0:15.1.0-4.el7_8
redhat/python-pip<0:9.0.3-16.el8
0:9.0.3-16.el8
redhat/python-urllib3<1.23
1.23
pip/urllib3<1.23
1.23
Python urllib3<1.23
Fedoraproject Fedora=28
Fedoraproject Fedora=29
Fedoraproject Fedora=30
debian/python-urllib3
1.26.5-1~exp11.26.5-1~exp1+deb11u31.26.12-1+deb12u11.26.12-1+deb12u32.3.0-32.3.0-3+deb13u12.6.3-1

Remediation

Information

Use `retries=urllib3.Retry(redirect=0)` when performing requests if you do not need redirection and handle the redirects manually if you need them.

Event History

Mar 26, 2018
CVE Published
12:00 AM
Dec 11, 2018
CVE Published
via MITRE·05:00 PM
Data Sourced
via MITRE·05:00 PM
Description
Dec 12, 2018
Advisory Published
via GitHub·03:52 PM
Feb 20, 2026
Data Sourced
via Ubuntu·06:57 PM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Launchpad·06:57 PM
Description
Data Sourced
via Debian·06:58 PM
DescriptionAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2018-20060?

CVE-2018-20060 is a vulnerability in urllib3 before version 1.23 that allows for credentials in the Authorization HTTP header to be exposed to unintended hosts or transmitted in cleartext.

2

What is the severity of CVE-2018-20060?

The severity of CVE-2018-20060 is critical with a severity value of 9.8.

3

How does CVE-2018-20060 affect urllib3?

CVE-2018-20060 affects urllib3 before version 1.23.

4

How can I fix CVE-2018-20060?

To fix CVE-2018-20060, upgrade urllib3 to version 1.23 or higher.

5

Where can I find more information about CVE-2018-20060?

You can find more information about CVE-2018-20060 at the following references: [NVD](https://nvd.nist.gov/vuln/detail/CVE-2018-20060), [GitHub Issue](https://github.com/urllib3/urllib3/issues/1316), [GitHub Pull Request](https://github.com/urllib3/urllib3/pull/1346).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203