Affected versions
Ubuntu16.04:LTS/mistune
- Affected versions
- * || =0.6-2 || =0.7.1-1
- Fixed version
- Not reported
Ubuntu18.04:LTS/mistune
- Affected versions
- * || =0.7.4-1 || =0.8-1 || =0.8.1-1 || =0.8.3-2
- Fixed version
- Not reported
Ubuntu20.04:LTS/mistune
- Affected versions
- * || =0.8.4-1 || =0.8.4-2
- Fixed version
- Not reported
Ubuntu22.04:LTS/mistune0
- Affected versions
- * || =0.8.4-1 || =0.8.4-2
- Fixed version
- Not reported
Ubuntu22.04:LTS/mistune
- Affected versions
- * || =0.8.4-4 || =0.8.4-5 || =2.0.0-1+really0.8.4-1
- Fixed version
- Not reported
Ubuntu24.04:LTS/mistune0
- Affected versions
- * || =0.8.4-2
- Fixed version
- Not reported
Ubuntu24.04:LTS/mistune
- Affected versions
- * || =2.0.4-2 || =3.0.2-1
- Fixed version
- Not reported
Ubuntu25.10/mistune0
- Affected versions
- * || =0.8.4-4
- Fixed version
- Not reported
Ubuntu25.10/mistune
- Affected versions
- * || =3.0.2-2 || =3.1.3-1
- Fixed version
- Not reported
Ubuntu26.04:LTS/mistune0
- Affected versions
- * || =0.8.4-4 || =0.8.4-5 || =0.8.4-6
- Fixed version
- Not reported
Ubuntu26.04:LTS/mistune
- Affected versions
- * || =3.1.3-1 || =3.1.4-1
- Fixed version
- Not reported
Ubuntu26.10/mistune0
- Affected versions
- * || =0.8.4-6
- Fixed version
- Not reported
Ubuntu26.10/mistune
- Affected versions
- * || =3.1.4-1
- Fixed version
- Not reported
Description
Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.2.1, render_toc_ul() builds a table-of-contents tree from a list of (level, id, text) tuples. Both the id value (used as href="#") and the text value (used as the visible link label) are inserted into 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 blocks directly into the rendered TOC. This vulnerability is fixed in 3.2.1.

