CVE Catalog

CVE-2025-0938

MediumCVSS 6.3
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Elevated risk
1.50%

72th percentile - higher than 72% of all known CVEs

Summary

The Python standard library functions `urllib.parse.urlsplit` and `urlparse` accept domain names with square brackets, which is invalid per RFC 3986. Square brackets are only meant as delimiters for IPv6 and IPvFuture hosts. This can cause differential parsing between Python's URL parser and other compliant parsers.

Risk Assessment

URL parsing discrepancies can be exploited for SSRF attacks or bypassing URL-based security controls, potentially leading to unauthorized access to internal resources.

Recommendation

Upgrade Python to a version where `urlsplit` and `urlparse` are fixed to reject invalid domain names with square brackets.

Original NVD description (English source)

The Python standard library functions `urllib.parse.urlsplit` and `urlparse` accepted domain names that included square brackets which isn't valid according to RFC 3986. Square brackets are only meant to be used as delimiters for specifying IPv6 and IPvFuture hosts in URLs. This could result in differential parsing across the Python URL parser and other specification-compliant URL parsers.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS