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-44897: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in lepture mistune

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

Description

CVE-2026-44897 is a cross-site scripting (XSS) vulnerability in the Python Markdown parser Mistune prior to version 3. 2. 1. The issue arises because the HTMLRenderer. heading() method constructs the opening <hN> tag by directly concatenating the id attribute value without sanitization. This allows an attacker to inject arbitrary attributes by including a double-quote character in the id, potentially leading to script execution. The vulnerability has a CVSS score of 6. 1 (medium severity) and is fixed in Mistune 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, 19:53:12 UTC

Technical Analysis

Mistune versions before 3.2.1 contain a CWE-79 improper neutralization of input vulnerability in the HTMLRenderer.heading() function. The function builds the heading tag's id attribute by string concatenation without escaping or sanitizing the input. If the id contains a double-quote character, it can break out of the attribute context and inject additional HTML attributes, such as event handlers, enabling cross-site scripting attacks. This vulnerability is addressed in version 3.2.1 of Mistune.

Potential Impact

Successful exploitation allows an attacker to inject arbitrary HTML attributes into heading elements, potentially enabling cross-site scripting attacks that can lead to limited confidentiality and integrity impacts in affected applications using vulnerable Mistune versions. There is no impact on availability. No known exploits are reported in the wild at this time.

Mitigation Recommendations

Upgrade Mistune to version 3.2.1 or later, where this vulnerability is fixed. Since no official patch links or vendor advisory are provided, users should verify the version upgrade from the official Mistune repository or package sources. Patch status is not yet confirmed via vendor advisory; check the vendor's official channels for the latest remediation guidance.

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: 6a174b8ce29bf47b50e4a24b

Added to database: 5/27/2026, 7:52:44 PM

Last enriched: 5/27/2026, 7:53:12 PM

Last updated: 5/27/2026, 7:53:18 PM

Views: 1

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