Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. markdown2
  4. ›
  5. CVE-2020-11888

CVE-2020-11888: XSS in python-markdown2

April 22, 2020 (updated September 24, 2024)

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.

References

  • github.com/advisories/GHSA-fv3h-8x5j-pvgq
  • github.com/pypa/advisory-database/tree/main/vulns/markdown2/PYSEC-2020-65.yaml
  • github.com/trentm/python-markdown2
  • github.com/trentm/python-markdown2/issues/348
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6XOAIRJJCZNJUALXDHSIGH5PS2H63A3J
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/AQLRBGRVRRZK7P5SFL2MNGXFX37YHJAV
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PN6QSHRFZXRQAYZJQ4MOW5MKIXBYOMED
  • nvd.nist.gov/vuln/detail/CVE-2020-11888

Code Behaviors & Features

Detect and mitigate CVE-2020-11888 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.3.9

Fixed versions

  • 2.3.9

Solution

Upgrade to version 2.3.9 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

pypi/markdown2/CVE-2020-11888.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:36 +0000.