URL Parsing Vulnerability in Python Standard Library Functions by Python Software Foundation
CVE-2025-0938
6.3MEDIUM
What is CVE-2025-0938?
The Python standard library functions urllib.parse.urlsplit
and urlparse
improperly handle domain names containing square brackets, which deviate from standard URL syntax as defined in RFC 3986. This vulnerability may lead to inconsistent behavior between the Python URL parser and other parsers that adhere strictly to the specification, potentially causing security issues in applications that rely on these functions for processing URLs. Users are encouraged to review their implementations for compliance.
Affected Version(s)
CPython 0 < 3.12.9
CPython 3.13.0 < 3.13.2
CPython 3.14.0a1 < 3.14.0a5