Skip to content
6.3 Medium

CVE-2025-0938 The Python standard library functions `urllib.parse.urlsplit` and `urlparse` accepted domain names that included…

Description

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 products and versions

Product Affected versions Fixed in
CPython 3.14 3.14.0a1 → < 3.14.0a5 3.14.0a5
CPython 3.13 3.13.0 → < 3.13.2 3.13.2
CPython 3.12 3.12.0 → < 3.12.9 3.12.9
CPython 3.11 3.11.0 → < 3.11.12 3.11.12
CPython 3.10 3.10.0 → < 3.10.17 3.10.17
CPython 3.9 earliest → < 3.9.22 3.9.22

References

Timeline

  1. Published
  2. Last modified
The 79 CVEs of CPython →
Track this CVE