published 31 Jan 2025 · updated 31 Jul 2026
URL parser allowed square brackets in domain names
6.3MediumCVSS 6.3EPSS 2%
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 2%. Fixed in 3.9.22, 3.10.17, 3.11.12 and 3 more.
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
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Python Software Foundation | <3.9.22, >=3.10.0 <3.10.17, >=3.11.0 <3.11.12, >=3.12.0 <3.12.9, >=3.13.0 <3.13.2, >=3.14.0a1 <3.14.0a5 | 3.9.22, 3.10.17, 3.11.12, 3.12.9, 3.13.2, 3.14.0a5 |
Timeline
Every event on this vulnerability
Embed
A live severity badge for an advisory, README or ticket