ADVISORIES

CVE Program

CNA-CVE-2026-4519

webbrowser.open() allows leading dashes in URLs

Details

The webbrowser.open() API would accept leading dashes in the URL which could be handled as command line options for certain web browsers. New behavior rejects leading dashes. Users are recommended to sanitize URLs prior to passing to webbrowser.open().

Affected packages

EcosystemPackageAffected versions
Pythonpython
All versions before 3.10.21 (fixed in 3.10.21)
From 3.11.0 before 3.11.16 (fixed in 3.11.16)
From 3.12.0 before 3.12.14 (fixed in 3.12.14)
From 3.13.0 before 3.13.13 (fixed in 3.13.13)
From 3.14.0 before 3.14.4 (fixed in 3.14.4)
From 3.15.0a1 before 3.15.0a8 (fixed in 3.15.0a8)

References