Command Line Option Vulnerability in Python's Webbrowser API
CVE-2026-4519
7HIGH
What is CVE-2026-4519?
The webbrowser.open() API within Python has a vulnerability that allows URL inputs with leading dashes to be processed as command line options by certain web browsers. This issue can lead to unintended command execution. Although recent updates reject such inputs, it is recommended that users sanitize URLs thoroughly before passing them to the API to mitigate this risk. Developers should ensure that leading dashes are removed from URLs to maintain the integrity and security of their applications.
Affected Version(s)
CPython 0 < 3.13.13
CPython 3.14.0 < 3.14.4
CPython 3.15.0a1 < 3.15.0a8
