PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-97698 lepture CVE debrief

A vulnerability in the mistune library can cause a denial-of-service (DoS) due to an unbounded parenthesis-balancing scan in the `parse_link_href` function. This issue can be triggered by a small document with an empty label and a large number of unmatched open parentheses, leading to quadratic time complexity and high CPU usage. The vulnerability was reported and reproduced against mistune version 3.3.3. The fix was verified to scale approximately linearly against the 3.3.4 release tag. Developers and administrators using the mistune library should assess their exposure and upgrade to version 3.3.4 or later to prevent potential DoS attacks. The `parse_link_href` function in mistun

Vendor
lepture
Product
mistune
CVSS
HIGH 7.5
CISA KEV
Not listed in stored evidence
Original CVE published
2026-11-19
Original CVE updated
2026-11-19
Advisory published
2026-11-19
Advisory updated
2026-11-19

Who should care

Developers and administrators using the mistune library should assess their exposure and upgrade to version 3.3.4 or later to prevent potential DoS attacks. Affected operators include those using the mistune library in their applications. Platforms and systems that use the mistune library are also affected. Vulnerability management and security teams should review the issue and plan for remediation.

Why it matters

The vulnerability can cause a denial-of-service (DoS) due to an unbounded parenthesis-balancing scan in the `parse_link_href` function, leading to high CPU usage and potential service disruption.

  • Denial of service (DoS) due to high CPU usage
  • Potential for service disruption or degradation

Technical summary

The `parse_link_href` function in mistune performs an unbounded parenthesis-balancing scan that runs to end-of-document on each unmatched `(`. This can cause a small document of the form `[ ] ( * N` to drive O(N) openers, each driving an O(N) scan, producing O(N²) CPU on the default `mistune.html()` renderer with no plugins. The vulnerability can be triggered by a small document with an empty label and a large number of unmatched open parentheses, leading to quadratic time complexity and high CPU usage. The fix for the vulnerability was verified to scale approximately linearly against the 3.3.4 release tag.

Defensive priority

Upgrade to mistune version 3.3.4 or later to fix the vulnerability.

Recommended defensive actions

  • Upgrade to mistune version 3.3.4 or later
  • Review and update affected versions of mistune
  • Monitor for potential DoS attacks
  • Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up.
  • Review compensating controls for exposed systems while remediation is scheduled and verified.
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review.
  • Track exceptions, retest remediated assets, and close the item only after evidence is documented.

Evidence notes

The vulnerability was reported and reproduced against mistune version 3.3.3. The fix was verified to scale approximately linearly against the 3.3.4 release tag. Evidence of the vulnerability includes the reported payload that was used to reproduce the issue. The payload was verified to cause O(N) openers, each driving an O(N) scan, producing O(N²) CPU on the default `mistune.html()` renderer with no plugins.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-97698 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-97698

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-97698 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-97698

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.