CVE-2026-4519: Vulnerability in Python Software Foundation CPython
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().
AI Analysis
Technical Summary
The vulnerability in CPython's webbrowser.open() API arises because it does not sanitize URLs that begin with leading dashes. When such URLs are passed to certain web browsers, these dashes can be interpreted as command-line options, potentially allowing an attacker to execute unintended commands or code, read or modify application data, or cause other unintended behavior. This is classified under CWE-20 (Improper Input Validation) and CWE-88 (Argument Injection). The issue affects Python versions 3.11.0, 3.12.0, 3.13.0, 3.14.0, and 3.15.0a1. Red Hat has released security advisories and patches for their affected products, including Red Hat Enterprise Linux 6 Extended Lifecycle Support. The vulnerability has a CVSS v3 base score of 7.0 (high severity) with network attack vector, low attack complexity, no privileges required, and user interaction required.
Potential Impact
An attacker can craft a malicious URL containing leading dashes that, when opened via the webbrowser.open() API, may be interpreted by certain web browsers as command-line options. This can lead to unexpected behavior such as information disclosure, arbitrary code execution, or modification of application data, impacting system integrity and confidentiality. The vulnerability does not require privileges but does require user interaction. There are no known exploits in the wild at this time.
Mitigation Recommendations
A security update fixing this vulnerability is available from the Python Software Foundation and has been packaged by Red Hat for affected products. Users are advised to apply the vendor-provided patches promptly. Currently, no alternative mitigations meet Red Hat's criteria for ease of use and applicability. Users should sanitize URLs before passing them to webbrowser.open() as a precaution. For Red Hat Enterprise Linux 6 Extended Lifecycle Support users, updated python packages are available as per RHSA-2026:10102. Check the vendor advisory for detailed update instructions.
CVE-2026-4519: Vulnerability in Python Software Foundation CPython
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().
CVSS v4.0
Score 7.0high
Affected software
Python Software Foundation
CPython
pkg:github/CPythonRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in CPython's webbrowser.open() API arises because it does not sanitize URLs that begin with leading dashes. When such URLs are passed to certain web browsers, these dashes can be interpreted as command-line options, potentially allowing an attacker to execute unintended commands or code, read or modify application data, or cause other unintended behavior. This is classified under CWE-20 (Improper Input Validation) and CWE-88 (Argument Injection). The issue affects Python versions 3.11.0, 3.12.0, 3.13.0, 3.14.0, and 3.15.0a1. Red Hat has released security advisories and patches for their affected products, including Red Hat Enterprise Linux 6 Extended Lifecycle Support. The vulnerability has a CVSS v3 base score of 7.0 (high severity) with network attack vector, low attack complexity, no privileges required, and user interaction required.
Potential Impact
An attacker can craft a malicious URL containing leading dashes that, when opened via the webbrowser.open() API, may be interpreted by certain web browsers as command-line options. This can lead to unexpected behavior such as information disclosure, arbitrary code execution, or modification of application data, impacting system integrity and confidentiality. The vulnerability does not require privileges but does require user interaction. There are no known exploits in the wild at this time.
Mitigation Recommendations
A security update fixing this vulnerability is available from the Python Software Foundation and has been packaged by Red Hat for affected products. Users are advised to apply the vendor-provided patches promptly. Currently, no alternative mitigations meet Red Hat's criteria for ease of use and applicability. Users should sanitize URLs before passing them to webbrowser.open() as a precaution. For Red Hat Enterprise Linux 6 Extended Lifecycle Support users, updated python packages are available as per RHSA-2026:10102. Check the vendor advisory for detailed update instructions.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- PSF
- Date Reserved
- 2026-03-20T15:01:11.126Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-4519","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:10102","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:9614","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:9745","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:13812","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:7244","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:6256","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:19064","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:19019","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:6473","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:6281","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:6283","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:9387","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:9621","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:9386","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:9289","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:9591","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:9261","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:9262","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:9260","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:10101","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:9042","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:10111","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:9354","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:9705","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:7010","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:6766","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:6286","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:6285","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:19216","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:19175","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:19177","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:19176","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:25096","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:7335","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:19724","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:19725","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:16008","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:8748","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:8746","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:16030","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:8747","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:16009","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:16174","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:7329","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:10140","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:10141","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:6016","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:6035","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:7443","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:7661","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:21275","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:10065","vendor":"Red Hat"}]
Threat ID: 69bd66a5e32a4fbe5fa5cd32
Added to database: 03/20/2026, 15:24:21 UTC
Last enriched: 08/13/2026, 13:10:23 UTC
Last updated: 09/17/2026, 10:01:31 UTC
Views: 266
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.
External Links
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.