CVE-2026-4786
Incomplete mitigation of CVE-2026-4519, %action expansion for command injection to webbrowser.open()
Mitigation
- Upgrade CPython to 3.15.0b1 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.14; >= 3.14.0a1, < 3.14.5rc1; >= 3.15.0a1, < 3.15.0b1
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.14; >= 3.14.0a1, < 3.14.5rc1; >= 3.15.0a1, < 3.15.0b1
- 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.14, Python Software Foundation CPython 3.14.5rc1, Python Software Foundation CPython 3.15.0b1
- 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.50% chance of exploitation in 30 days (percentile 36, 2026-11-26)
- CWE
- CWE-77
- Modified
Description
Mitgation of CVE-2026-4519 was incomplete. If the URL contained "%action" the mitigation could be bypassed for certain browser types the "webbrowser.open()" API could have commands injected into the underlying shell. See CVE-2026-4519 for details.
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.14; >= 3.14.0a1, < 3.14.5rc1; >= 3.15.0a1, < 3.15.0b1 | — | 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-4786. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-4786.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.14; >= 3.14.0a1, < 3.14.5rc1; >= 3.15.0a1, < 3.15.0b1 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.14, Python Software Foundation CPython 3.14.5rc1, Python Software Foundation CPython 3.15.0b1 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/JQDUNJVB4AQNTJECSUKOBDU3XCJIPSE5/
- https://access.redhat.com/errata/RHSA-2026:22144
- https://access.redhat.com/errata/RHSA-2026:19589
- https://access.redhat.com/errata/RHSA-2026:35838
- https://access.redhat.com/errata/RHSA-2026:13812
- https://access.redhat.com/errata/RHSA-2026:16699
- https://access.redhat.com/errata/RHSA-2026:10711
- https://access.redhat.com/errata/RHSA-2026:19064
- https://access.redhat.com/errata/RHSA-2026:19019
- https://access.redhat.com/errata/RHSA-2026:28581
- https://access.redhat.com/errata/RHSA-2026:11077
- https://access.redhat.com/errata/RHSA-2026:11062
- https://access.redhat.com/errata/RHSA-2026:10950
- https://access.redhat.com/errata/RHSA-2026:19590
- https://access.redhat.com/errata/RHSA-2026:17619
- https://access.redhat.com/errata/RHSA-2026:19549
- https://access.redhat.com/errata/RHSA-2026:26187
- https://access.redhat.com/errata/RHSA-2026:19571
- https://access.redhat.com/errata/RHSA-2026:19570
- https://access.redhat.com/errata/RHSA-2026:13692
- https://access.redhat.com/errata/RHSA-2026:21682
- https://access.redhat.com/errata/RHSA-2026:14653
- https://access.redhat.com/errata/RHSA-2026:17525
- https://access.redhat.com/errata/RHSA-2026:19576
- https://access.redhat.com/errata/RHSA-2026:14652
- https://access.redhat.com/errata/RHSA-2026:14656
- https://access.redhat.com/errata/RHSA-2026:10949
- https://access.redhat.com/errata/RHSA-2026:10774
- https://access.redhat.com/errata/RHSA-2026:10745
- 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:28247
- https://access.redhat.com/errata/RHSA-2026:25096
- https://access.redhat.com/errata/RHSA-2026:30078
- https://access.redhat.com/errata/RHSA-2026:30089
- https://access.redhat.com/errata/RHSA-2026:30088
- https://access.redhat.com/errata/RHSA-2026:30087
- https://access.redhat.com/errata/RHSA-2026:10140
- https://access.redhat.com/errata/RHSA-2026:10141
- https://access.redhat.com/errata/RHSA-2026:8822
- https://access.redhat.com/errata/RHSA-2026:8824
- https://access.redhat.com/errata/RHSA-2026:10117
- https://access.redhat.com/errata/RHSA-2026:9228
- https://access.redhat.com/errata/RHSA-2026:11768
- https://access.redhat.com/errata/RHSA-2026:21275
Patches
- https://github.com/python/cpython/pull/148170
- https://github.com/python/cpython/commit/c5767a72838a8dda9d6dc5d3558075b055c56bca
- https://github.com/python/cpython/commit/d22922c8a7958353689dc4763dd72da2dea03fff
- https://github.com/python/cpython/commit/f4654824ae0850ac87227fb270f9057477946769
- https://github.com/python/cpython/commit/28b4ad38067bbdad34edfcd03ad2de5f06387e53
- https://github.com/python/cpython/commit/d6d68494be70bdbda20f89f83801ba52ec37daa4
- https://github.com/python/cpython/commit/a4d3edf3a6ecfde504d02126410d2a65a859b744
FAQ
Is CVE-2026-4786 being exploited?
There is no confirmed exploitation: CVE-2026-4786 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.50% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-4786?
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-4786?
Python Software Foundation CPython < 3.10.21; >= 3.11.0, < 3.11.16; >= 3.12.0, < 3.12.14; >= 3.13.0, < 3.13.14; >= 3.14.0a1, < 3.14.5rc1; >= 3.15.0a1, < 3.15.0b1.
Is there a fix for CVE-2026-4786?
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.14, Python Software Foundation CPython 3.14.5rc1, Python Software Foundation CPython 3.15.0b1. Upgrade CPython to 3.15.0b1 or later.
How do I check if I'm affected by CVE-2026-4786?
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.