Read the docs
TI-2026-32773 Aliases CVE-2026-44898GHSA-6269-cqxg-mhhv

Mistune TOC Anchor Injection XSS

Priority MEDIUM 60CWE-79Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
Cross-site scripting
Confidentiality · integrity · availability
Low · Low · None
Fix status
Partial Red Hat: 3 without a fix

Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-79.

Summary

Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.2.1, render_toc_ul() builds a <ul> table-of-contents tree from a list of (level, id, text) tuples. Both the id value (used as href="#<id>") and the text value (used as the visible link label) are inserted into <a> tags via a plain Python format string — with no HTML escaping applied to either value. When heading IDs are derived from user-supplied heading text (the standard use-case for readable slug anchors), an attacker can craft a heading whose text breaks out of the href="#..." attribute context, injecting arbitrary HTML tags including <script> blocks directly into the rendered TOC. This vulnerability is fixed in 3.2.1.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00228 13th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Partial mistune (lepture): 3.2.1mistune (PyPI): 3.2.1Red Hat: 3 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
lepturemistunebefore 3.2.13.2.1Patch availableCNA
—mistune (PyPI)3.2.0 to before 3.2.13.2.1Patch availableGHSA-6269-cqxg-mhhv
  • mistune Vendorlepture Affected before 3.2.1 Fixed in 3.2.1 Patch available CNA
  • mistune (PyPI) Vendor— Affected 3.2.0 to before 3.2.1 Fixed in 3.2.1 Patch available GHSA-6269-cqxg-mhhv

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:mistune_project:mistune:*:*:*:*:*:*:*:*before 3.2.1Vulnerablelepture
  • cpe:2.3:a:mistune_project:mistune:*:*:*:*:*:*:*:* Versions before 3.2.1 Vulnerable ·lepture

Remediation

  • Fix · CNA mistune (lepture) Fixed in 3.2.1
  • Fix · GHSA-6269-cqxg-mhhv mistune (PyPI) Fixed in 3.2.1 Advisory →

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
Migration Toolkit for Applications 8AffectedNo fix yet: Fix deferred
Red Hat OpenShift AI (RHOAI)AffectedNo fix yet: Fix deferred
Red Hat Satellite 6AffectedNo fix yet: Fix deferred

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-44898
  2. 2026-10-03 Alias added: GHSA-6269-cqxg-mhhv

References

  • TI-2026-42736 Mistune block_parser: quadratic-time parsing on long lists of repeated reference-link definitions CVSS 3.1HIGH 7.5
  • TI-2026-42730 Regular expression denial of service in lepture mistune CVSS 3.1HIGH 7.5
  • TI-2026-42731 Mistune: XSS via percent-encoded javascript URI bypass in safe_url() CVSS 3.1MEDIUM 6.1
  • TI-2026-32774 Mistune Image Directive CSS Injection Vulnerability CVSS 3.1MEDIUM 6.1
  • TI-2026-32595 Mistune Math Plugin XSS Escape Bypass CVSS 3.1MEDIUM 6.1
  • TI-2026-42738 Insufficient verification of data authenticity in lepture mistune CVSS 3.1MEDIUM 4.3
See all 16 →

Sources