CVE-2025-0938

Summary

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.

Affected Software

VendorProductVersion RangeStatus
Python Software FoundationCPython0 < 3.10.17affected
Python Software FoundationCPython3.11.0 < 3.11.12affected
Python Software FoundationCPython3.12.0 < 3.12.9affected
Python Software FoundationCPython3.13.0 < 3.13.2affected
Python Software FoundationCPython3.14.0a1 < 3.14.0a5affected

Weaknesses

  • CWE-20: CWE-20 Improper Input Validation

ADP Enrichment

CISA ADP Vulnrichment

  • SSVC:
  • Exploitation: none
    • Automatable: no
    • Technical Impact: partial

CVE Program Container

Additional References

References