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
Ubuntu24.04:LTS/mistune
- Affected versions
- * || =2.0.4-2 || =3.0.2-1
- Fixed version
- Not reported
Ubuntu25.10/mistune
- Affected versions
- * || =3.0.2-2 || =3.1.3-1
- Fixed version
- Not reported
Ubuntu26.04:LTS/mistune
- Affected versions
- * || =3.1.3-1 || =3.1.4-1
- 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.3.0, the toc plugin and TableOfContents directive generate heading IDs as predictable toc_N values without slugifying the heading text, allowing attacker-controlled id="toc_N" content to collide with generated anchors and redirect same-page navigation, CSS selectors, or JavaScript handlers. This issue is fixed in version 3.3.0.

