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

High 7.0 Published Updated

Attackers can inject command-line options into web browsers via webbrowser.open() by using URLs with leading dashes, potentially executing arbitrary commands.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-4519?

CVE-2026-4519 is a high-severity command injection vulnerability in Python Python, published on 20 Mar 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

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

Weakness: CWE-88, CWE-20

Which versions are affected by CVE-2026-4519?

It affects 1 product.

Linux distribution packages (40)
python-unversioned-command AlmaLinux:10All versions3.12.12-3.el10_1.2
platform-python AlmaLinux:8All versions3.6.8-75.el8_10.alma.1
platform-python-debug AlmaLinux:8All versions3.6.8-75.el8_10.alma.1
platform-python-devel AlmaLinux:8All versions3.6.8-75.el8_10.alma.1
python3-idle AlmaLinux:8All versions3.6.8-75.el8_10.alma.1
python3-libs AlmaLinux:8All versions3.6.8-75.el8_10.alma.1
python3-test AlmaLinux:8All versions3.6.8-75.el8_10.alma.1
python3-tkinter AlmaLinux:8All versions3.6.8-75.el8_10.alma.1
python3.11 AlmaLinux:8All versions3.11.13-6.el8_10
python3.11-debug AlmaLinux:8All versions3.11.13-6.el8_10
python3.11-devel AlmaLinux:8All versions3.11.13-6.el8_10
python3.11-idle AlmaLinux:8All versions3.11.13-6.el8_10
python3.11-libs AlmaLinux:8All versions3.11.13-6.el8_10
python3.11-rpm-macros AlmaLinux:8All versions3.11.13-6.el8_10
python3.11-test AlmaLinux:8All versions3.11.13-6.el8_10
python3.11-tkinter AlmaLinux:8All versions3.11.13-6.el8_10
python3.12 AlmaLinux:8All versions3.12.12-4.el8_10
python3.12-debug AlmaLinux:8All versions3.12.12-4.el8_10
python3.12-devel AlmaLinux:8All versions3.12.12-4.el8_10
python3.12-idle AlmaLinux:8All versions3.12.12-4.el8_10
python3.12-libs AlmaLinux:8All versions3.12.12-4.el8_10
python3.12-rpm-macros AlmaLinux:8All versions3.12.12-4.el8_10
python3.12-test AlmaLinux:8All versions3.12.12-4.el8_10
python3.12-tkinter AlmaLinux:8All versions3.12.12-4.el8_10
python-unversioned-command AlmaLinux:9All versions3.9.25-3.el9_7.2
python3 AlmaLinux:9All versions3.9.25-3.el9_7.2
python3-debug AlmaLinux:9All versions3.9.25-3.el9_7.2
python3-devel AlmaLinux:9All versions3.9.25-3.el9_7.2
python3-idle AlmaLinux:9All versions3.9.25-3.el9_7.2
python3-libs AlmaLinux:9All versions3.9.25-3.el9_7.2
python3-test AlmaLinux:9All versions3.9.25-3.el9_7.2
python3-tkinter AlmaLinux:9All versions3.9.25-3.el9_7.2
python3.11 AlmaLinux:9All versions3.11.13-5.2.el9_7
python3.11-debug AlmaLinux:9All versions3.11.13-5.2.el9_7
python3.11-devel AlmaLinux:9All versions3.11.13-5.2.el9_7
python3.11-idle AlmaLinux:9All versions3.11.13-5.2.el9_7
python3.11-libs AlmaLinux:9All versions3.11.13-5.2.el9_7
python3.11-test AlmaLinux:9All versions3.11.13-5.2.el9_7
python3.11-tkinter AlmaLinux:9All versions3.11.13-5.2.el9_7
python3.12 AlmaLinux:9All versions3.12.12-4.el9_7.2

Products include Python Python.

How do I fix CVE-2026-4519?

Apply the vendor's patch.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2026-4519 being exploited?

There is no known exploitation of CVE-2026-4519 in the wild and no public exploit code.

All Python Python vulnerabilities

Sources

Also known as ALPINE-CVE-2026-4519, ALSA-2026:6256, ALSA-2026:6281, ALSA-2026:6283, ALSA-2026:6285, ALSA-2026:6286 and 58 more.

Is CVE-2026-4519 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free