HIGH 8.6 PyPI
Mistune vulnerable to catastrophic backtracking
GHSA-fw3v-x4f2-v673 · CVE-2022-34749 · PYSEC-2022-237
Published · Modified
AI SAST
Find this class of vulnerability in your own code
Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.
Description
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.
References
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2022-34749
- WEB https://github.com/lepture/mistune/issues/314#issuecomment-1223972386
- WEB https://github.com/lepture/mistune/commit/a6d43215132fe4f3d93f8d7e90ba83b16a0838b2
- WEB https://github.com/lepture/mistune/commit/ca1e7b506850f4e488823fc7338b49a8f9852718
- PACKAGE https://github.com/lepture/mistune
- WEB https://github.com/lepture/mistune/releases
- WEB https://github.com/pypa/advisory-database/tree/main/vulns/mistune/PYSEC-2022-237.yaml
- WEB https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TQHXITQ2DSBYOILKHXBSBB7PFBPZHF63
Ready to move
Start Securing
Free, no credit card | First findings in minutes