mistune vulnerabilities
A sane and fast Markdown parser with useful plugins and renderers
- Registry
- PyPI
- Latest
- 3.4.0
- License
- BSD-3-Clause
21 known advisories
The latest version, 3.4.0, is not affected by any of them. Projects on older versions may be.
pip install 'mistune>=3.4.0'Is your project on an affected mistune?
Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Security advisories for mistune
Mistune: Path Traversal and XSS in Include directive
- Affected
- <3.3.0
- Fixed in
- 3.3.0
Mistune: Denial of Service — RecursionError via Excessive Emphasis Markers in Markdown
- Affected
- >=3.3.0 <3.3.3
- Fixed in
- 3.3.3
Mistune renderers/html.safe_url: HARMFUL_PROTOCOLS list misses legacy and chained schemes that historically chain to `javascript:` execution
- Affected
- <3.3.0
- Fixed in
- 3.3.0
Mistune toc / TableOfContents directive: heading IDs use predictable `toc_N` numbering with no slugification, allowing collision with attacker-controlled `id="toc_N"` content
- Affected
- <3.3.0
- Fixed in
- 3.3.0
Mistune: Arbitrary File Read via Include directive path traversal
- Affected
- <3.3.0
- Fixed in
- 3.3.0
Mistune plugins/formatting: quadratic-time parsing on long runs of `~~x~~`, `==x==`, and `^^x^^` markers (strikethrough / mark / insert)
- Affected
- <3.3.0
- Fixed in
- 3.3.0
Mistune: XSS via unescaped class option in Admonition directive
- Affected
- <3.3.0
- Fixed in
- 3.3.0
Mistune: XSS via percent-encoded javascript URI bypass in safe_url()
- Affected
- <3.3.0
- Fixed in
- 3.3.0
Mistune inline_parser: quadratic-time parsing on long runs of `**x**` and `***x***` emphasis pairs
- Affected
- <3.3.0
- Fixed in
- 3.3.0
Mistune directives/include: mutual `.. include::` recursion crashes the renderer with `RecursionError`, denial of service via two attacker-controlled markdown files
- Affected
- <3.3.0
- Fixed in
- 3.3.0
Mistune block_parser: quadratic-time parsing on long lists of repeated reference-link definitions
- Affected
- <3.3.0
- Fixed in
- 3.3.0
Mistune: Potential DoS via quadratic-time parsing in parse_link_text
- Affected
- <3.3.0
- Fixed in
- 3.3.0
Mistune Image Directive CSS Injection Vulnerability
- Affected
- >=3.2.0 <3.2.1
- Fixed in
- 3.2.1
Mistune TOC Anchor Injection XSS
- Affected
- >=3.2.0 <3.2.1
- Fixed in
- 3.2.1
Mistune Heading ID Attribute has Injection XSS
- Affected
- <3.2.1
- Fixed in
- 3.2.1
Mistune has XSS via unescaped figclass/figwidth in Figure directive
- Affected
- <3.2.1
- Fixed in
- 3.2.1
Mistune Math Plugin has an XSS Escape Bypass
- Affected
- <=3.2.0
- Fixed in
- No fix released
Mistune has a ReDoS in LINK_TITLE_RE that allows denial of service via crafted Markdown input
- Affected
- >=3.0.0a1 <3.2.1
- Fixed in
- 3.2.1
Mistune vulnerable to catastrophic backtracking
- Affected
- >=2.0.0a1 <2.0.3
- Fixed in
- 2.0.3
Cross-site Scripting in Mistune
- Affected
- <0.8
- Fixed in
- 0.8
mistune Cross-site scripting (XSS) vulnerability
- Affected
- <0.8.1
- Fixed in
- 0.8.1
Is your mistune version vulnerable?
- mistune 3.4No known advisories in 3.4.0
- mistune 3.3No known advisories in 3.3.4
- mistune 3.211 advisories in 3.2.1
- mistune 3.115 advisories in 3.1.4
- mistune 3.015 advisories in 3.0.2
- mistune 2.114 advisories in 2.1.0
- mistune 2.014 advisories in 2.0.5
- mistune 0.814 advisories in 0.8.4
- mistune 0.716 advisories in 0.7.4
- mistune 0.616 advisories in 0.6.0
- mistune 0.516 advisories in 0.5.1
- mistune 0.416 advisories in 0.4.1
- mistune 0.316 advisories in 0.3.1
Which of your client projects still run an old mistune?
NPMscan reads the requirements.txt, poetry.lock, uv.lock and Pipfile.lock in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.
Other PyPI packages
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the PyPI registry.