CVE-2026-4786: CWE-77 in Python Software Foundation CPython
CVE-2026-4786 is a command injection vulnerability in the Python Software Foundation's CPython implementation. It arises because the mitigation for a previous vulnerability (CVE-2026-4519) was incomplete. Specifically, if a URL contained the string "%action", certain browser types could bypass the mitigation, allowing the webbrowser. open() API to inject commands into the underlying shell. This vulnerability has a high severity rating and a CVSS score of 7. No official patch or remediation guidance is currently available from the vendor.
AI Analysis
Technical Summary
This vulnerability (CVE-2026-4786) affects CPython and is related to an incomplete mitigation of CVE-2026-4519. When the URL passed to the webbrowser.open() API contains "%action", it can bypass the previous mitigation for certain browsers, leading to command injection in the underlying shell. The issue is classified under CWE-77 (Improper Neutralization of Special Elements used in a Command). The CVSS 4.0 vector indicates local attack vector, low attack complexity, partial attack type, no privileges required, user interaction required, and high impact on confidentiality and integrity.
Potential Impact
Successful exploitation could allow an attacker to inject arbitrary commands into the shell via the webbrowser.open() API when certain URL patterns are used. This could lead to unauthorized command execution on the affected system. The vulnerability is rated high severity with a CVSS score of 7, indicating significant risk if exploited. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no official patch or remediation level is provided by the Python Software Foundation, users should monitor the vendor's advisories closely. Until a fix is available, avoid passing URLs containing "%action" to the webbrowser.open() API, especially in environments where untrusted input might be used. No other specific mitigations are documented.
CVE-2026-4786: CWE-77 in Python Software Foundation CPython
Description
CVE-2026-4786 is a command injection vulnerability in the Python Software Foundation's CPython implementation. It arises because the mitigation for a previous vulnerability (CVE-2026-4519) was incomplete. Specifically, if a URL contained the string "%action", certain browser types could bypass the mitigation, allowing the webbrowser. open() API to inject commands into the underlying shell. This vulnerability has a high severity rating and a CVSS score of 7. No official patch or remediation guidance is currently available from the vendor.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability (CVE-2026-4786) affects CPython and is related to an incomplete mitigation of CVE-2026-4519. When the URL passed to the webbrowser.open() API contains "%action", it can bypass the previous mitigation for certain browsers, leading to command injection in the underlying shell. The issue is classified under CWE-77 (Improper Neutralization of Special Elements used in a Command). The CVSS 4.0 vector indicates local attack vector, low attack complexity, partial attack type, no privileges required, user interaction required, and high impact on confidentiality and integrity.
Potential Impact
Successful exploitation could allow an attacker to inject arbitrary commands into the shell via the webbrowser.open() API when certain URL patterns are used. This could lead to unauthorized command execution on the affected system. The vulnerability is rated high severity with a CVSS score of 7, indicating significant risk if exploited. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no official patch or remediation level is provided by the Python Software Foundation, users should monitor the vendor's advisories closely. Until a fix is available, avoid passing URLs containing "%action" to the webbrowser.open() API, especially in environments where untrusted input might be used. No other specific mitigations are documented.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- PSF
- Date Reserved
- 2026-03-24T19:25:48.269Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69dd67d182d89c981f6a0138
Added to database: 4/13/2026, 10:01:53 PM
Last enriched: 4/13/2026, 10:16:49 PM
Last updated: 4/14/2026, 10:32:57 AM
Views: 14
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.