Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-44898: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in lepture mistune

0
Medium
VulnerabilityCVE-2026-44898cvecve-2026-44898cwe-79
Published: Tue May 26 2026 (05/26/2026, 20:41:53 UTC)
Source: CVE Database V5
Vendor/Project: lepture
Product: mistune

Description

CVE-2026-44898 is a cross-site scripting (XSS) vulnerability in the Python Markdown parser 'mistune' versions prior to 3. 2. 1. The vulnerability arises in the render_toc_ul() function, which generates a table-of-contents as an unordered list from heading data. Both the heading ID and text are inserted into anchor tags without HTML escaping, allowing attackers to inject arbitrary HTML, including script tags, when heading IDs are derived from user-supplied text. This issue is fixed in version 3. 2. 1.

CVSS v3.1

Score 6.1medium

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/27/2026, 18:48:43 UTC

Technical Analysis

Mistune, a Python Markdown parser, had an XSS vulnerability (CWE-79) in versions before 3.2.1. The render_toc_ul() function builds a <ul> table-of-contents from tuples containing heading level, id, and text. The id and text values are inserted into <a> tags using plain Python string formatting without HTML escaping. When heading IDs are generated from user input, an attacker can craft headings that break out of the href attribute context and inject arbitrary HTML or script code into the rendered TOC. This vulnerability allows injection of malicious scripts in the generated HTML. The issue is resolved in version 3.2.1.

Potential Impact

Exploitation of this vulnerability can lead to injection of arbitrary HTML and script code in the rendered table-of-contents, potentially enabling cross-site scripting attacks. The CVSS score of 6.1 indicates a medium severity with network attack vector, low attack complexity, no privileges required, user interaction required, and partial impact on confidentiality and integrity but no impact on availability. There are no known exploits in the wild at this time.

Mitigation Recommendations

This vulnerability is fixed in mistune version 3.2.1. Users should upgrade to version 3.2.1 or later to remediate this issue. No other official remediation level or temporary fix is indicated. Patch status is confirmed by the vendor's versioning and description. Until upgrading, avoid processing untrusted user input as heading text that generates IDs in the table-of-contents.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-05-07T21:50:33.546Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 6a173900e29bf47b50dc2e38

Added to database: 5/27/2026, 6:33:36 PM

Last enriched: 5/27/2026, 6:48:43 PM

Last updated: 5/27/2026, 7:37:50 PM

Views: 3

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses