CVE-2025-0938

Medium

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.

SeverityMedium
CVSS6.3
Exploit probability—
ProductCPython
PublishedJan 31, 2025
First seenJan 31, 2025

How to fix

Affected products

ProductAffected versionsFixed in
Python Software Foundation CPythonv < 3.9.22, 3.10.0 ≤ v < 3.10.17, 3.11.0 ≤ v < 3.11.12, 3.12.0 ≤ v < 3.12.9, 3.13.0 ≤ v < 3.13.2, 3.14.0a1 ≤ v < 3.14.0a53.9.22, 3.10.17, 3.11.12, 3.12.9, 3.13.2, 3.14.0a5

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.