Live threats

All CVEs / Python-markdown2 Project

CVE-2020-11888Python-markdown2 Project Python-markdown2

Medium 6.1 No auth needed

Priority
52
CVSS 3.1
6.1
EPSS
1.9%
probability of exploitation in 30 days · percentile 81
Auth required
No
Published
Apr 20, 2020
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What happens

python-markdown2 through 2.3.8 allows XSS because element names are mishandled unless a \w+ match succeeds. For example, an attack might use elementname@ or elementname- with an onclick attribute.

Original NVD text.

What to do

  1. Apply the vendor's security update for Python-markdown2.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI markdown2 < 2.3.9 2.3.9 pip install "markdown2>=2.3.9"
PyPI markdown2 < 2.3.9 2.3.9 pip install "markdown2>=2.3.9"

Per OSV / GitHub Advisories (GHSA-fv3h-8x5j-pvgq, PYSEC-2020-65). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
python-markdown2_projectpython-markdown2≤ 2.3.8

Official sources

References

Links published by the sources. Open them with care.