CVE-2025-0938

URL parser allowed square brackets in domain names

MEDIUM
6.3
CVSS Score
Published: January 31, 2025 at 05:51 PM UTC
Updated: July 31, 2026 at 02:16 PM UTC
1 product affected across 1 vendorPython

Using CPython by Python Software Foundation?

Get instant alerts when new vulnerabilities affect CPython - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM6.3
Exploit prediction
EPSS 2%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 3.9.223.10.0 ≤ v < 3.10.173.11.0 ≤ v < 3.11.123.12.0 ≤ v < 3.12.93.13.0 ≤ v < 3.13.23.14.0a1 ≤ v < 3.14.0a53.10.03.11.03.12.03.13.03.14.0a1
Affected range stops below 3.10.17, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.11.12, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.12.9, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.13.2, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.14.0a5, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.9.22, so it looks safe — our inference, not a vendor statement

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

6.3MEDIUMPSF
Vector?

Quick Info

StatusDEFERRED
CWE
CWE-20

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card