CVE-2022-34749
Mistune vulnerable to catastrophic backtracking
Reported by mitre · Published July 25, 2022
mistune is fixed in 2.0.3 (PyPI)
In mistune through 2.0.2, support of inline markup is implemented by using regular expressions that can involve a high amount of backtracking on certain edge cases. This behavior is commonly named catastrophic backtracking.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| mistune | PyPI | 2.0.3 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| n/a | n/a | * |
| PyPI | mistune | 2.0.0a1 |
| alpine | py3-mistune | 0 |
Timeline
- Jul 25, 2022 CVE Published
- Jul 26, 2022 EPSS Score (30 in total, the first dated here)
- Mar 9, 2026 Security Advisory (2 in total, the first dated here)
- Jun 21, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-34749
vulnetix vdb fixes CVE-2022-34749
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-34749/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- FEDORA-2022-e4f5866111 vendor-advisory
- https://nvd.nist.gov/vuln/detail/CVE-2022-34749 advisory
- https://github.com/advisories/GHSA-fw3v-x4f2-v673 advisory
- https://github.com/lepture/mistune/issues/314#issuecomment-1223972386 url
- https://github.com/lepture/mistune/commit/ca1e7b506850f4e488823fc7338b49a8f9852718 patch
- https://github.com/lepture/mistune url
- https://github.com/pypa/advisory-database/tree/main/vulns/mistune/PYSEC-2022-237.yaml advisory
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TQHXITQ2DSBYOILKHXBSBB7PFBPZHF63 url