CVE-2026-4519

webbrowser.open() allows leading dashes in URLs

At a glance

Severity
HIGH 7.0
EPSS
EPSS 0.31 % · percentile 24 (2026-10-27)
State
PUBLISHED
Published
Updated
Assigner
PSF
NVD status
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().

Scores

VersionScoreVectorScored by
CVSS 4.0HIGH 7.0CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:NPSF
CVSS 3.1HIGH 7.1CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:Lredhat-SADP
CVSS 4.0HIGH 7.0CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:XNVD · cna@python.org (Secondary)
CVSS 3.1LOW 3.3CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:NNVD · nvd@nist.gov (Primary)
CVSS 3.1HIGH 7.1CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:LNVD · 0b0ca135-0b70-47e7-9f44-1890c2a1c46c (Secondary)

Weaknesses (CWE)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Python Software Foundation · CPythonaffected 0 < 3.10.21 ; affected 3.11.0 < 3.11.16 ; affected 3.12.0 < 3.12.14 ; affected 3.13.0 < 3.13.13 ; affected 3.14.0 < 3.14.4 ; affected 3.15.0a1 < 3.15.0a8

References

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD