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

CVE-2026-49851: Mistune: Potential DoS via quadratic-time parsing in parse_link_text

July 9, 2026

Mistune is vulnerable to a CPU exhaustion DoS due to superlinear (approximately O(n²)) behavior in parse_link_text. A relatively small input consisting of repeated [ characters causes significant parsing slowdown.

References

  • access.redhat.com/security/cve/CVE-2026-49851
  • bugzilla.redhat.com/show_bug.cgi?id=2492304
  • github.com/advisories/GHSA-qcq2-496w-v96p
  • github.com/lepture/mistune/security/advisories/GHSA-qcq2-496w-v96p
  • nvd.nist.gov/vuln/detail/CVE-2026-49851
  • security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-49851.json

Code Behaviors & Features

Detect and mitigate CVE-2026-49851 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 before 3.3.0

Fixed versions

  • 3.3.0

Solution

Upgrade to version 3.3.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
  • CWE-400: Uncontrolled Resource Consumption

Source file

pypi/mistune/CVE-2026-49851.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sat, 08 Aug 2026 00:17:18 +0000.