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

CVE-2021-26813: markdown2 Regular Expression Denial of Service

June 2, 2021 (updated September 30, 2024)

markdown2 >=1.0.1.18, fixed in 2.4.0, is affected by a regular expression denial of service vulnerability. If an attacker provides a malicious string, it can make markdown2 processing difficult or delayed for an extended period of time.

References

  • github.com/advisories/GHSA-jr9p-r423-9m2r
  • github.com/pypa/advisory-database/tree/main/vulns/markdown2/PYSEC-2021-20.yaml
  • github.com/trentm/python-markdown2
  • github.com/trentm/python-markdown2/commit/7b651260739647de5198323e0445b1618750c374
  • github.com/trentm/python-markdown2/pull/387
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BRP5RN35JZTSJ3JT4722F447ZDK7LZS5
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/J752422YELXLMLZJPVJVKD2KKHHQRVEH
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JTIX5UXRDJZJ57DO4V33ZNJTNKWGBQLY
  • nvd.nist.gov/vuln/detail/CVE-2021-26813

Code Behaviors & Features

Detect and mitigate CVE-2021-26813 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 starting from 1.0.1.18 before 2.4.0

Fixed versions

  • 2.4.0

Solution

Upgrade to version 2.4.0 or above.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-1333: Inefficient Regular Expression Complexity

Source file

pypi/markdown2/CVE-2021-26813.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:59 +0000.