CVE-2026-59929: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in lepture mistune
Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.3.0, the safe_url filter in src/mistune/renderers/html.py blocks only javascript:, vbscript:, file:, and data: schemes, allowing legacy or chained schemes such as feed:, view-source:, jar:, livescript:, mocha:, ms-its:, mk:, and res: to reach rendered href and src attributes and potentially execute script in affected user agents. This issue is fixed in version 3.3.0.
AI Analysis
Technical Summary
CVE-2026-59929 is a cross-site scripting (XSS) vulnerability in the Mistune Markdown parser before version 3.3.0. The safe_url filter in src/mistune/renderers/html.py blocked only javascript:, vbscript:, file:, and data: schemes, but allowed other legacy or chained schemes like feed:, view-source:, jar:, livescript:, mocha:, ms-its:, mk:, and res: to pass through. This improper neutralization of input during web page generation could enable script execution in user agents that process these schemes. The vulnerability is addressed by updating to Mistune version 3.3.0 where the filter is corrected.
Potential Impact
The vulnerability allows injection of unsafe URL schemes into rendered HTML attributes, potentially leading to cross-site scripting attacks that can compromise confidentiality and integrity of user data in affected applications. 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. There is no indication of availability impact or known exploits in the wild.
Mitigation Recommendations
Upgrade Mistune to version 3.3.0 or later, where the safe_url filter properly blocks unsafe URL schemes. No other mitigation is indicated or required as the issue is fixed in this official release.
CVE-2026-59929: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in lepture mistune
Description
Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.3.0, the safe_url filter in src/mistune/renderers/html.py blocks only javascript:, vbscript:, file:, and data: schemes, allowing legacy or chained schemes such as feed:, view-source:, jar:, livescript:, mocha:, ms-its:, mk:, and res: to reach rendered href and src attributes and potentially execute script in affected user agents. This issue is fixed in version 3.3.0.
CVSS v3.1
Score 6.1medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-59929 is a cross-site scripting (XSS) vulnerability in the Mistune Markdown parser before version 3.3.0. The safe_url filter in src/mistune/renderers/html.py blocked only javascript:, vbscript:, file:, and data: schemes, but allowed other legacy or chained schemes like feed:, view-source:, jar:, livescript:, mocha:, ms-its:, mk:, and res: to pass through. This improper neutralization of input during web page generation could enable script execution in user agents that process these schemes. The vulnerability is addressed by updating to Mistune version 3.3.0 where the filter is corrected.
Potential Impact
The vulnerability allows injection of unsafe URL schemes into rendered HTML attributes, potentially leading to cross-site scripting attacks that can compromise confidentiality and integrity of user data in affected applications. 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. There is no indication of availability impact or known exploits in the wild.
Mitigation Recommendations
Upgrade Mistune to version 3.3.0 or later, where the safe_url filter properly blocks unsafe URL schemes. No other mitigation is indicated or required as the issue is fixed in this official release.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-07-07T18:20:06.126Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a4e7ad5c9d9e3dbe36a7dfd
Added to database: 07/08/2026, 16:29:09 UTC
Last enriched: 07/16/2026, 10:07:15 UTC
Last updated: 08/22/2026, 10:52:10 UTC
Views: 83
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.