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

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/python-urllib3 to a version that resolves this vulnerability.

    Fixed in 0:1.10.2-7.el7
  2. Upgrade

    Upgrade redhat/python-pip to a version that resolves this vulnerability.

    Fixed in 0:9.0.3-7.el7_7
  3. Upgrade

    Upgrade redhat/python-virtualenv to a version that resolves this vulnerability.

    Fixed in 0:15.1.0-4.el7_7
  4. Upgrade

    Upgrade redhat/python-pip to a version that resolves this vulnerability.

    Fixed in 0:9.0.3-7.el7_8
  5. Upgrade

    Upgrade redhat/python-virtualenv to a version that resolves this vulnerability.

    Fixed in 0:15.1.0-4.el7_8
  6. Upgrade

    Upgrade redhat/python-pip to a version that resolves this vulnerability.

    Fixed in 0:9.0.3-16.el8
  7. Upgrade

    Upgrade redhat/python-urllib3 to a version that resolves this vulnerability.

    Fixed in 1.23
  8. Upgrade

    Upgrade pip/urllib3 to a version that resolves this vulnerability.

    Fixed in 1.23
  9. Upgrade

    Upgrade debian/python-urllib3 to a version that resolves this vulnerability.

    Fixed in 1.26.5-1~exp1Fixed in 1.26.5-1~exp1+deb11u3Fixed in 1.26.12-1+deb12u1Fixed in 1.26.12-1+deb12u3Fixed in 2.3.0-3Fixed in 2.3.0-3+deb13u1Fixed in 2.6.3-1
  10. Upgrade

    Upgrade urllib3 to a version that resolves this vulnerability.

    Fixed in 1.23
  11. Configuration

    Use retries=urllib3.Retry(redirect=0) when performing requests if redirects are not needed; handle redirects manually when required.

    urllib3 retries = urllib3.Retry(redirect=0)

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

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