CVE-2026-4519
webbrowser.open() allows leading dashes in URLs
Mitigation
- Upgrade CPython to 3.15.0a8 or later.
Who should check
- Anyone running Python Software Foundation CPython < 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
Vulnerability facts
- Affected
- Python Software Foundation CPython < 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
- Fixed in
- Python Software Foundation CPython 3.10.21, Python Software Foundation CPython 3.11.16, Python Software Foundation CPython 3.12.14, Python Software Foundation CPython 3.13.13, Python Software Foundation CPython 3.14.4, Python Software Foundation CPython 3.15.0a8
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.0 (v4.0, CNA)CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Attack requirements: Present
- Privileges required: None
- User interaction: Active
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: None
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- EPSS
- 0.47% chance of exploitation in 30 days (percentile 32, 2026-11-26)
- CWE
- CWE-20, CWE-88
- Modified
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().
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Python Software Foundation CPython | < 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 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-4519. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-4519.md Affected: Python Software Foundation CPython < 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 Fixed in: Python Software Foundation CPython 3.10.21, Python Software Foundation CPython 3.11.16, Python Software Foundation CPython 3.12.14, Python Software Foundation CPython 3.13.13, Python Software Foundation CPython 3.14.4, Python Software Foundation CPython 3.15.0a8 Steps: 1. Search this machine and project for Python Software Foundation CPython: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
- https://mail.python.org/archives/list/security-announce@python.org/thread/AY5NDSS433JK56Q7Q5IS7B37QFZVVOUS/
- https://access.redhat.com/errata/RHSA-2026:10102
- https://access.redhat.com/errata/RHSA-2026:9614
- https://access.redhat.com/errata/RHSA-2026:9745
- https://access.redhat.com/errata/RHSA-2026:13812
- https://access.redhat.com/errata/RHSA-2026:7244
- https://access.redhat.com/errata/RHSA-2026:6256
- https://access.redhat.com/errata/RHSA-2026:19064
- https://access.redhat.com/errata/RHSA-2026:19019
- https://access.redhat.com/errata/RHSA-2026:6473
- https://access.redhat.com/errata/RHSA-2026:6281
- https://access.redhat.com/errata/RHSA-2026:6283
- https://access.redhat.com/errata/RHSA-2026:9387
- https://access.redhat.com/errata/RHSA-2026:9621
- https://access.redhat.com/errata/RHSA-2026:9386
- https://access.redhat.com/errata/RHSA-2026:9289
- https://access.redhat.com/errata/RHSA-2026:9591
- https://access.redhat.com/errata/RHSA-2026:9261
- https://access.redhat.com/errata/RHSA-2026:9262
- https://access.redhat.com/errata/RHSA-2026:9260
- https://access.redhat.com/errata/RHSA-2026:10101
- https://access.redhat.com/errata/RHSA-2026:9042
- https://access.redhat.com/errata/RHSA-2026:10111
- https://access.redhat.com/errata/RHSA-2026:9354
- https://access.redhat.com/errata/RHSA-2026:9705
- https://access.redhat.com/errata/RHSA-2026:7010
- https://access.redhat.com/errata/RHSA-2026:6766
- https://access.redhat.com/errata/RHSA-2026:6286
- https://access.redhat.com/errata/RHSA-2026:6285
- https://access.redhat.com/errata/RHSA-2026:19216
- https://access.redhat.com/errata/RHSA-2026:19175
- https://access.redhat.com/errata/RHSA-2026:19177
- https://access.redhat.com/errata/RHSA-2026:19176
- https://access.redhat.com/errata/RHSA-2026:25096
- https://access.redhat.com/errata/RHSA-2026:7335
- https://access.redhat.com/errata/RHSA-2026:19724
- https://access.redhat.com/errata/RHSA-2026:19725
- https://access.redhat.com/errata/RHSA-2026:16008
- https://access.redhat.com/errata/RHSA-2026:8748
- https://access.redhat.com/errata/RHSA-2026:8746
- https://access.redhat.com/errata/RHSA-2026:16030
- https://access.redhat.com/errata/RHSA-2026:8747
- https://access.redhat.com/errata/RHSA-2026:16009
- https://access.redhat.com/errata/RHSA-2026:16174
- https://access.redhat.com/errata/RHSA-2026:7329
- https://access.redhat.com/errata/RHSA-2026:10140
- https://access.redhat.com/errata/RHSA-2026:10141
- https://access.redhat.com/errata/RHSA-2026:6016
- https://access.redhat.com/errata/RHSA-2026:6035
- https://access.redhat.com/errata/RHSA-2026:7443
- https://access.redhat.com/errata/RHSA-2026:7661
- https://access.redhat.com/errata/RHSA-2026:21275
- https://access.redhat.com/errata/RHSA-2026:10065
Patches
- https://github.com/python/cpython/pull/143931
- https://github.com/python/cpython/issues/143930
- https://github.com/python/cpython/commit/43fe06b96f6a6cf5cfd5bdab20b8649374956866
- https://github.com/python/cpython/commit/82a24a4442312bdcfc4c799885e8b3e00990f02b
- https://github.com/python/cpython/commit/9669a912a0e329c094e992204d6bdb8787024d76
- https://github.com/python/cpython/commit/ad4d5ba32af4d80b0dfa2ba9d8203bfb219e60a5
- https://github.com/python/cpython/commit/ceac1efc66516ac387eef2c9a0ce671895b44f03
- https://github.com/python/cpython/commit/cbba6119391112aba9c5aebf7b94aea447922c48
- https://github.com/python/cpython/commit/3681d47a440865aead912a054d4599087b4270dd
- https://github.com/python/cpython/commit/591ed890270c5697b013bf637029fb3e6cd2d73e
- https://github.com/python/cpython/commit/594b5a05dc9913880ac92eded440defbf32a28d1
- https://github.com/python/cpython/commit/89bfb8e5ed3c7caa241028f1a4eac5f6275a46a4
- https://github.com/python/cpython/commit/96fc5048605863c7b6fd6289643feb0e97edd96c
- https://github.com/python/cpython/commit/cc023511238ad93ecc8796157c6f9139a2bb2932
FAQ
Is CVE-2026-4519 being exploited?
There is no confirmed exploitation: CVE-2026-4519 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.47% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-4519?
High: CVSS 7.0 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2026-4519?
Python Software Foundation CPython < 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.
Is there a fix for CVE-2026-4519?
Yes. Fixed in Python Software Foundation CPython 3.10.21, Python Software Foundation CPython 3.11.16, Python Software Foundation CPython 3.12.14, Python Software Foundation CPython 3.13.13, Python Software Foundation CPython 3.14.4, Python Software Foundation CPython 3.15.0a8. Upgrade CPython to 3.15.0a8 or later.
How do I check if I'm affected by CVE-2026-4519?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.