Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. mistune
  4. ›
  5. CVE-2022-34749

CVE-2022-34749: Mistune vulnerable to catastrophic backtracking

July 26, 2022 (updated September 25, 2024)

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

  • github.com/advisories/GHSA-fw3v-x4f2-v673
  • github.com/lepture/mistune
  • github.com/lepture/mistune/commit/a6d43215132fe4f3d93f8d7e90ba83b16a0838b2
  • github.com/lepture/mistune/commit/ca1e7b506850f4e488823fc7338b49a8f9852718
  • github.com/lepture/mistune/issues/314
  • github.com/lepture/mistune/releases
  • github.com/pypa/advisory-database/tree/main/vulns/mistune/PYSEC-2022-237.yaml
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TQHXITQ2DSBYOILKHXBSBB7PFBPZHF63
  • nvd.nist.gov/vuln/detail/CVE-2022-34749

Code Behaviors & Features

Detect and mitigate CVE-2022-34749 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 2.0.0a1 before 2.0.3

Fixed versions

  • 2.0.3

Solution

Upgrade to version 2.0.3 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/mistune/CVE-2022-34749.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:16:52 +0000.