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 CVE-2026-4519 affects CPython's webbrowser.open() API, which previously accepted URLs starting with leading dashes. Such URLs could be misinterpreted as command line options by some web browsers, creating a risk of command-line option injection. The Python Software Foundation has updated the behavior to reject URLs with leading dashes to mitigate this risk. The vulnerability is classified under CWE-20 (Improper Input Validation) and CWE-88 (Argument Injection or Modification). Red Hat has issued security advisories and patches addressing this issue in their Extended Life Cycle Support for Python packages. The vulnerability has a CVSS 4.0 base score of 7.0, indicating high severity. No known exploits in the wild have been reported.
Potential Impact
If exploited, this vulnerability could allow an attacker to inject command-line options into web browsers launched via the webbrowser.open() API by passing crafted URLs with leading dashes. This could potentially alter browser behavior or cause unintended command execution. The impact is rated high due to the possibility of partial control over browser invocation parameters. However, there are no reports of active exploitation in the wild.
Mitigation Recommendations
A fix is available and has been incorporated in updated Python packages distributed by vendors such as Red Hat. Users should apply the official patches provided by their operating system or Python distribution vendors. Additionally, users are recommended to sanitize URLs to ensure they do not start with leading dashes before passing them to webbrowser.open(). Refer to the Red Hat advisory RHSA-2026:10102 for patch details and update instructions. Patch status is confirmed by vendor advisories.
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
Run 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 CVE-2026-4519 affects CPython's webbrowser.open() API, which previously accepted URLs starting with leading dashes. Such URLs could be misinterpreted as command line options by some web browsers, creating a risk of command-line option injection. The Python Software Foundation has updated the behavior to reject URLs with leading dashes to mitigate this risk. The vulnerability is classified under CWE-20 (Improper Input Validation) and CWE-88 (Argument Injection or Modification). Red Hat has issued security advisories and patches addressing this issue in their Extended Life Cycle Support for Python packages. The vulnerability has a CVSS 4.0 base score of 7.0, indicating high severity. No known exploits in the wild have been reported.
Potential Impact
If exploited, this vulnerability could allow an attacker to inject command-line options into web browsers launched via the webbrowser.open() API by passing crafted URLs with leading dashes. This could potentially alter browser behavior or cause unintended command execution. The impact is rated high due to the possibility of partial control over browser invocation parameters. However, there are no reports of active exploitation in the wild.
Mitigation Recommendations
A fix is available and has been incorporated in updated Python packages distributed by vendors such as Red Hat. Users should apply the official patches provided by their operating system or Python distribution vendors. Additionally, users are recommended to sanitize URLs to ensure they do not start with leading dashes before passing them to webbrowser.open(). Refer to the Red Hat advisory RHSA-2026:10102 for patch details and update instructions. Patch status is confirmed by vendor advisories.
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: 07/15/2026, 09:25:56 UTC
Last updated: 08/01/2026, 19:18:00 UTC
Views: 233
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.