Mistune before 3.3.0 Stored XSS via Include Directive HTML Files
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 3.3.0
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: no
- Technical impact: partial
Summary
Mistune, a Python Markdown parser, is affected when its Include directive loads HTML files without escaping them, which can allow attacker-controlled scripts to run in a victim's browser. The impact is cross-site scripting, and it applies when the renderer is configured with escape=False and an attacker can place or reference an HTML file the renderer can read.
Summarized by anthropic/claude-haiku-5.5. Verify details against the original sources.
Read the original description
Mistune before 3.3.0 contains a cross-site scripting vulnerability in the Include directive that emits included .html, .xhtml, or .htm file content as raw block_html tokens. Attackers who can plant an HTML file readable by the renderer can reference it via an include directive, combined with path traversal, to execute stored scripts when escape=False is set.
Timeline
- CVE published
- First seen by cve.now
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: partial
- Record last updated
Affected versions
- lepture mistune
fixed in 3.3.0