CVE-2021-26813
HIGH7.5EPSS 0.50%markdown2 Regular Expression Denial of Service
Published: 6/2/2021Modified: 4/28/2026
Description
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.
Affected packages (3)
- Debian/python-markdown2from 0, < 2.3.10-1.1
- PyPI/markdown2>= 1.0.1.18, < 2.4.0
- PyPI/markdown2>= 1.0.1.18, < 2.4.0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
| osv | CVSS 3.1 | HIGH7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
References (13)
- ADVISORYhttps://github.com/advisories/GHSA-jr9p-r423-9m2r
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2021-26813
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2021-26813
- PATCHhttps://github.com/trentm/python-markdown2
- WEBhttps://github.com/pypa/advisory-database/tree/main/vulns/markdown2/PYSEC-2021-20.yaml
- WEBhttps://github.com/trentm/python-markdown2/commit/7b651260739647de5198323e0445b1618750c374
- WEBhttps://github.com/trentm/python-markdown2/pull/387
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/BRP5RN35JZTSJ3JT4722F447ZDK7LZS5
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/BRP5RN35JZTSJ3JT4722F447ZDK7LZS5/
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/J752422YELXLMLZJPVJVKD2KKHHQRVEH
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/J752422YELXLMLZJPVJVKD2KKHHQRVEH/
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/JTIX5UXRDJZJ57DO4V33ZNJTNKWGBQLY
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/JTIX5UXRDJZJ57DO4V33ZNJTNKWGBQLY/