BIT-libpython-2023-24329: High severity Python urllib.parse vulnerability

Published Feb 17, 2023
·
Updated

An issue in the urllib.parse component of Python before 3.11.4 allows attackers to bypass blocklisting methods by supplying a URL that starts with blank characters.

Affected Software

1 affected component
Python urllib.parse<3.11.4

Event History

Feb 17, 2023
CVE Published
via OSV·12:00 AM
Data Sourced
via OSV·12:00 AM
DescriptionSeverity

Frequently Asked Questions

1

Which applications are exposed to this issue?

Applications that use Python's urllib.parse to enforce URL blocklists and accept attacker-controlled URLs are exposed. The bypass relies on URLs beginning with blank characters.

2

What does an attacker need to exploit it?

An attacker needs to be able to supply a URL to the affected application's blocklisting logic. The provided severity vector indicates no privileges or user interaction are required.

3

How can I determine whether an application is affected?

Check whether it runs Python before 3.11.4 and uses urllib.parse as part of URL blocklisting or validation. Test whether a blocked URL prefixed with blank characters is accepted or parsed in a way that bypasses the intended blocklist.

4

What should be done if the affected code is in use?

Upgrade Python to 3.11.4 or later. Until then, ensure URL validation and blocklist checks account for leading blank characters before making allow or deny decisions.

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