ADVISORIES

Alpine Security Database

ALPINE-CVE-2025-0938

Details

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 packages

EcosystemPackageAffected versions
Alpine:v3.18python3
All versions before 3.11.12-r0 (fixed in 3.11.12-r0)
Alpine:v3.19python3
All versions before 3.11.12-r0 (fixed in 3.11.12-r0)
Alpine:v3.20python3
All versions before 3.12.9-r0 (fixed in 3.12.9-r0)
Alpine:v3.21python3
All versions before 3.12.9-r0 (fixed in 3.12.9-r0)
Alpine:v3.22python3
All versions before 3.12.9-r0 (fixed in 3.12.9-r0)
Alpine:v3.23python3
All versions before 3.12.9-r0 (fixed in 3.12.9-r0)
Alpine:v3.24python3
All versions before 3.12.9-r0 (fixed in 3.12.9-r0)

References