mistune
PyPI20 known CVEs affecting this package
Aggregated from OSV, GitHub Security Advisories, NVD, and vendor advisories. Each CVE links to its full detail page with vendor advisories, patches, fixed versions, and remediation guidance.
CVEs affecting mistunepage 1 of 1
- CVE-2017-15612MEDIUMCVSS 6.1EG 6.1fixed in 0.82017-10-19
vulnerable: 0.1.0 ... 0.7.4 (14 versions)
mistune.py in Mistune 0.7.4 allows XSS via an unexpected newline (such as in java\nscript:) or a crafted email address, related to the escape and autolink functions.
- CVE-2017-16876MEDIUMCVSS 6.1EG 6.1fixed in 0.8.12017-12-29
vulnerable: 0.1.0 ... 0.8 (15 versions)
Cross-site scripting (XSS) vulnerability in the _keyify function in mistune.py in Mistune before 0.8.1 allows remote attackers to inject arbitrary web script or HTML by leveraging failure to escape the "key" argument.
- CVE-2022-34749HIGHCVSS 7.5EG 7.5fixed in 2.0.32022-07-25
vulnerable: 2.0.0 ... 2.0.2 (10 versions)
In mistune through 2.0.2, support of inline markup is implemented by using regular expressions that can involve a high amount of backtracking on certain edge cases. This behavior is commonly named catastrophic backtracking.
- CVE-2026-33079HIGHCVSS 7.5EG 7.5fixed in 3.2.12026-05-06
vulnerable: 3.0.0 ... 3.2.0 (17 versions)
In versions 3.0.0a1 through 3.2.0 of Mistune, there is a ReDoS (Regular Expression Denial of Service) vulnerability in `LINK_TITLE_RE` that allows an attacker who can supply Markdown for parsing to cause denial of service. The regular expr…
- CVE-2026-44708MEDIUMCVSS 6.1EG 6.1fixed in 3.2.12026-05-08
vulnerable: 0.1.0 ... 3.2.0 (50 versions)
Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.2.1, the mistune math plugin renders inline math ($...$) and block math ($$...$$) by concatenating the raw user-supplied content directly into the HTML output witho…
- CVE-2026-44896MEDIUMCVSS 6.1EG 6.1fixed in 3.2.12026-05-26
vulnerable: 0.1.0 ... 3.2.0 (49 versions)
Mistune is a Python Markdown parser with renderers and plugins. In 3.2.0 and earlier, in src/mistune/directives/image.py, the render_figure() function concatenates figclass and figwidth options directly into HTML attributes without escapin…
- CVE-2026-44897MEDIUMCVSS 6.1EG 6.1fixed in 3.2.12026-05-09
vulnerable: 0.1.0 ... 3.2.0 (50 versions)
Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.2.1, HTMLRenderer.heading() builds the opening <hN> tag by string-concatenating the id attribute value directly into the HTML — with no call to escape(), safe_ent…
- CVE-2026-44898MEDIUMCVSS 6.1EG 6.1fixed in 3.2.12026-05-14
vulnerable: 0.1.0 ... 3.2.0 (50 versions)
Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.2.1, render_toc_ul() builds a <ul> table-of-contents tree from a list of (level, id, text) tuples. Both the id value (used as href="#<id>") and the text value (used…
- CVE-2026-44899MEDIUMCVSS 6.1EG 6.1fixed in 3.2.12026-05-14
vulnerable: 0.1.0 ... 3.2.0 (50 versions)
Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.2.1, the Image directive plugin validates the :width: and :height: options with a regex compiled as _num_re = re.compile(r"^\d+(?:\.\d*)?"). When the validated valu…
- CVE-2026-49851HIGHCVSS 7.5EG 7.5fixed in 3.3.02026-06-24
vulnerable: 0.1.0 ... 3.2.1 (51 versions)
Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.3.0, Mistune is vulnerable to a CPU exhaustion DoS due to superlinear (approximately O(n²)) behavior in parse_link_text. When parsing Markdown containing many cons…
- CVE-2026-59922HIGHCVSS 7.5EG 7.5fixed in 3.3.02026-07-08
vulnerable: 0.1.0 ... 3.2.1 (51 versions)
Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.3.0, a run of closed tilde, equals-sign, or caret marker pairs around a character causes quadratic work in src/mistune/plugins/formatting.py when the strikethrough,…
- CVE-2026-59923MEDIUMCVSS 6.1EG 6.1fixed in 3.3.02026-07-08
vulnerable: 0.1.0 ... 3.2.1 (51 versions)
Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.3.0, HTMLRenderer.safe_url() does not block percent-encoded javascript URIs, allowing attacker-supplied Markdown links or images to bypass URL protections and execu…
- CVE-2026-59924MEDIUMCVSS 5.9EG 5.9fixed in 3.3.02026-07-08
vulnerable: 0.1.0 ... 3.2.1 (51 versions)
Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.3.0, Include.parse() joins and normalizes user-supplied include paths without verifying that the result remains within the intended markdown directory, allowing cra…
- CVE-2026-59925HIGHCVSS 7.5EG 7.5fixed in 3.3.02026-07-08
vulnerable: 0.1.0 ... 3.2.1 (51 versions)
Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.3.0, long sequences of well-formed double-asterisk or triple-asterisk emphasis pairs around a character cause quadratic work in src/mistune/inline_parser.py because…
- CVE-2026-59926MEDIUMCVSS 6.1EG 6.1fixed in 3.3.02026-07-08
vulnerable: 0.1.0 ... 3.2.1 (51 versions)
Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.2.1, render_admonition() in src/mistune/directives/admonition.py concatenates the Admonition directive :class: option into the HTML class attribute without escaping…
- CVE-2026-59927MEDIUMCVSS 5.3EG 5.3fixed in 3.3.02026-07-08
vulnerable: 0.1.0 ... 3.2.1 (51 versions)
Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.3.0, the Include directive in src/mistune/directives/include.py detects only direct self-includes and not indirect cycles, allowing two markdown files that include …
- CVE-2026-59928HIGHCVSS 7.5EG 7.5fixed in 3.3.02026-07-08
vulnerable: 0.1.0 ... 3.2.1 (51 versions)
Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.3.0, a Markdown document containing many repeated or distinct reference-link definitions causes quadratic work in src/mistune/block_parser.py and the ref_links envi…
- CVE-2026-59929MEDIUMCVSS 6.1EG 6.1fixed in 3.3.02026-07-08
vulnerable: 0.1.0 ... 3.2.1 (51 versions)
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 f…
- CVE-2026-59930MEDIUMCVSS 4.3EG 4.3fixed in 3.3.02026-07-08
vulnerable: 0.1.0 ... 3.2.1 (51 versions)
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…
- CVE-2026-76098HIGHCVSS 7.5EG 7.5fixed in 3.3.32026-08-24
vulnerable: 3.3.0, 3.3.1, 3.3.2
Mistune is a Python Markdown parser with renderers and plugins. Versions 3.3.0 through 3.3.2 are vulnerable to DoS through deeply nested tokens. HTML rendering creates deeply nested emphasis tokens from consecutive asterisk characters, and…
Check whether mistune is used in your infrastructure
EchelonGraph scans your cloud and SBOMs to map every package to your actual deployments. See blast radius for mistune CVEs against the assets you own.
Book a Demo →