webbrowser.open() allows leading dashes in URLs
CVE-2026-4519Published 20 Mar 2026, 15:08 UTC
Real-world risk
1.1/ 10Low
Routine
If the vulnerable configuration applies to you: 2.4
PreliminaryFrom the CVSS vector only · confidence low
CVSS
7.0
scored by the vendor (CNA), CVSS 4.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from PSF)
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().
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| CPythonUbiquitous | < 3.10.21; >= 3.11.0, < 3.11.16; >= 3.12.0, < 3.12.14; >= 3.13.0, < 3.13.13; >= 3.14.0, < 3.14.4; >= 3.15.0a1, < 3.15.0a8 | 3.10.21, 3.11.16, 3.12.14, 3.13.13, 3.14.4, 3.15.0a8 |
What to do
Update to a fixed version: 3.10.21, 3.11.16, 3.12.14, 3.13.13, 3.14.4, 3.15.0a8.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Major data exposureReads secrets, credentials, databases, arbitrary files | From the CVSS vector | 0.80 |
| Attacker position | LocalMust already run code or have a shell on the machine | From the CVSS vector | 0.50 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | RoutineA normal action: open a file, visit a page, click a link | From the CVSS vector | 0.70 |
| Configuration | UncommonNeeds a non-default feature that a minority enables | From the CVSS vector | 0.45 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.4% chance of exploitation in 30 days (percentile 31), as of 2026-12-03.
The arithmetic
- Prerequisites multiplied together0.158
- Threat T1: Nothing known0.850
- 10 × impact 0.8 × prerequisites 0.1575 × threat 0.851.071
- Rounded to one decimal between 0.1 and 101.1
Exploitation and evidence timeline
- 20 Mar 2026 Published
- 3 Dec 2026 Risk 1.1 (cvss fallback)
Weakness
CWE-20
References
- https://github.com/python/cpython/pull/143931patch
- https://github.com/python/cpython/issues/143930issue-tracking
- https://mail.python.org/archives/list/[email protected]/thread/AY5NDSS433JK56Q7Q5IS7B37QFZVVOUS/vendor-advisory
- https://github.com/python/cpython/commit/43fe06b96f6a6cf5cfd5bdab20b8649374956866patch
- https://github.com/python/cpython/commit/82a24a4442312bdcfc4c799885e8b3e00990f02bpatch
- https://github.com/python/cpython/commit/9669a912a0e329c094e992204d6bdb8787024d76patch
- https://github.com/python/cpython/commit/ad4d5ba32af4d80b0dfa2ba9d8203bfb219e60a5patch
- https://github.com/python/cpython/commit/ceac1efc66516ac387eef2c9a0ce671895b44f03patch
- https://github.com/python/cpython/commit/cbba6119391112aba9c5aebf7b94aea447922c48patch
- https://github.com/python/cpython/commit/3681d47a440865aead912a054d4599087b4270ddpatch
- https://github.com/python/cpython/commit/591ed890270c5697b013bf637029fb3e6cd2d73epatch
- https://github.com/python/cpython/commit/594b5a05dc9913880ac92eded440defbf32a28d1patch
- https://github.com/python/cpython/commit/89bfb8e5ed3c7caa241028f1a4eac5f6275a46a4patch
- https://github.com/python/cpython/commit/96fc5048605863c7b6fd6289643feb0e97edd96cpatch
- https://github.com/python/cpython/commit/cc023511238ad93ecc8796157c6f9139a2bb2932patch
- http://www.openwall.com/lists/oss-security/2026/03/20/1
- https://access.redhat.com/security/cve/CVE-2026-4519redhat, vdb-entry
- https://bugzilla.redhat.com/show_bug.cgi?id=2449649issue-tracking, redhat
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-4519.jsonx-sadp-csaf-vex
- https://access.redhat.com/errata/RHSA-2026:10102redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:9614redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:9745redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:13812redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:7244redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:6256redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:19064redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:19019redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:6473redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:6281redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:6283redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:9387redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:9621redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:9386redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:9289redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:9591redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:9261redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:9262redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:9260redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:10101redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:9042redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:10111redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:9354redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:9705redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:7010redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:6766redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:6286redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:6285redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:19216redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:19175redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:19177redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:19176redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:25096redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:7335redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:19724redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:19725redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:16008redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:8748redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:8746redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:16030redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:8747redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:16009redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:16174redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:7329redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:10140redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:10141redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:6016redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:6035redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:7443redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:7661redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:21275redhat, vendor-advisory
- https://access.redhat.com/errata/RHSA-2026:10065redhat, vendor-advisory
- CVE-2026-4519 on CVE.org