CVE-2025-0938
URL parser allowed square brackets in domain names
EPSS 1.6%
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.
How to fix CVE-2025-0938
To remediate CVE-2025-0938, upgrade the affected package to a fixed version below.
- Alpine/python3—upgrade to 3.11.12-r0 or later
- —upgrade to 3.9.22 or later
- —upgrade to 3.9.22 or later
- —upgrade to 3.9.22 or later
- —upgrade to 7.3.5+dfsg-2+deb11u5 or later
- —upgrade to 3.11.2-6+deb12u6 or later
- —upgrade to 3.13.2-1 or later
- —upgrade to 3.9.2-1+deb11u3 or later
Is CVE-2025-0938 being exploited?
Low — EPSS is 1.6%, meaning exploitation activity has not been observed at scale.
Affected packages (8)
- from 0, < 3.11.12-r0
- from 0, < 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
- from 0, < 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
- from 0, < 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
- from 0, < 7.3.5+dfsg-2+deb11u5
- from 0, < 3.11.2-6+deb12u6
- from 0, < 3.13.2-1
- from 0, < 3.9.2-1+deb11u3
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |