CVE-2026-4519: webbrowser.open() allows leading dashes in URLs

Published Mar 20, 2026
·
Updated

Last updated 6 July 2026

Other sources

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().

Launchpad

webbrowser.open() allows leading dashes in URLs

Microsoft

Affected Software

21 affected componentsFixes available
Python Software Foundation CPython
Microsoft azl3 python3 3.12.9-9
Microsoft cbl2 python3 3.9.19-19
Microsoft azl3 python3 3.12.9-10
debian/jython<=2.7.2+repack1-3, <=2.7.3+repack1-1
debian/pypy3<=7.3.5+dfsg-2+deb11u2, <=7.3.5+dfsg-2+deb11u5, <=7.3.11+dfsg-2+deb12u3, <=7.3.19+dfsg-2
7.3.23+dfsg-1
debian/python2.7<=2.7.18-8+deb11u1
debian/python3.11<=3.11.2-6+deb12u7, <=3.11.2-6+deb12u3
debian/python3.13
3.13.5-2+deb13u23.13.14-1
debian/python3.14
3.14.6-1
debian/python3.9<=3.9.2-1
3.9.2-1+deb11u7
Python Python<3.13.13
Python Python>=3.14.0<3.14.4
Python Python=3.15.0-alpha1
Python Python=3.15.0-alpha2
Python Python=3.15.0-alpha3
Python Python=3.15.0-alpha4
Python Python=3.15.0-alpha5
Python Python=3.15.0-alpha6
Python Python=3.15.0-alpha7
IBM Observability with Instana (Agent)<=Build 1.0.303 to 1.0.320

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/pypy3 to a version that resolves this vulnerability.

    Fixed in 7.3.23+dfsg-1
  2. Upgrade

    Upgrade debian/python3.13 to a version that resolves this vulnerability.

    Fixed in 3.13.5-2+deb13u2Fixed in 3.13.14-1
  3. Upgrade

    Upgrade debian/python3.14 to a version that resolves this vulnerability.

    Fixed in 3.14.6-1
  4. Upgrade

    Upgrade debian/python3.9 to a version that resolves this vulnerability.

    Fixed in 3.9.2-1+deb11u7
  5. Configuration

    Sanitize any URL string before passing it to webbrowser.open(), to prevent handling of leading dashes as command-line options in certain web browsers.

    CPython webbrowser.open() URL handling (sanitization) = sanitize prior to calling webbrowser.open()

Event History

Mar 20, 2026
CVE Published
via MITRE·03:08 PM
Data Sourced
via MITRE·03:08 PM
Description
Data Sourced
via NVD·03:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via Red Hat·04:03 PM
DescriptionSeverityAffected Software
Mar 25, 2026
Data Sourced
via Microsoft·08:05 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·08:05 AM
Affected Software
Updated
via Microsoft·08:05 AM
DescriptionSeverity
Jul 7, 2026
Data Sourced
via Ubuntu·01:34 PM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Debian·01:35 PM
DescriptionAffected Software
Data Sourced
via Launchpad·01:35 PM
Description
Jul 27, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Apr 7, 58249
Event
via FIRST·02:05 PM

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-4519?

CVE-2026-4519 has been categorized as a medium severity vulnerability.

2

How do I fix CVE-2026-4519?

To fix CVE-2026-4519, ensure that URLs are sanitized by removing any leading dashes before passing them to webbrowser.open().

3

What issue does CVE-2026-4519 address?

CVE-2026-4519 addresses the issue where leading dashes in URLs are accepted by the webbrowser.open() API, potentially causing unintended command line option handling.

4

Which software is affected by CVE-2026-4519?

CVE-2026-4519 affects the Python Software Foundation's CPython webbrowser module.

5

Is there a patch available for CVE-2026-4519?

Yes, the patch for CVE-2026-4519 was introduced to reject URLs with leading dashes in the updated webbrowser.open() API.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203