<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://vulnerability.circl.lu</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Thu, 01 Oct 2026 02:56:59 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-44708 — Mistune Math Plugin XSS Escape Bypass</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2026-44708</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; lepture mistune&lt;/p&gt;
&lt;p&gt;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 without any HTML escaping. This occurs even when the parser is explicitly created with escape=True, which is supposed to guarantee that all user-controlled text is sanitised before reaching the DOM. This vulnerability is fixed in 3.2.1.&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; lepture mistune&lt;/p&gt;
&lt;p&gt;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 without any HTML escaping. This occurs even when the parser is explicitly created with escape=True, which is supposed to guarantee that all user-controlled text is sanitised before reaching the DOM. This vulnerability is fixed in 3.2.1.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2026-44708</guid>
    </item>
    <item>
      <title>GHSA-8g87-j6q8-g93x — Mistune Math Plugin has an XSS Escape Bypass</title>
      <link>https://vulnerability.circl.lu/vuln/ghsa-8g87-j6q8-g93x</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; PyPI: mistune&lt;/p&gt;
&lt;p&gt;## Summary
The mistune math plugin renders inline math (`$...$`) and block math (`$$...$$`) by concatenating the raw user-supplied content directly into the HTML output **without any HTML escaping**. This occurs even when the parser is explicitly created with `escape=True`, which is supposed to guarantee that all user-controlled text is sanitised before reaching the DOM.&lt;/p&gt;
&lt;p&gt;The result is a silent contract violation: a developer who enables `escape=True` reasonably expects complete XSS protection, but the math plugin operates as an independent render path that ignores the renderer&amp;#39;s `_escape` flag entirely.&lt;/p&gt;
&lt;p&gt;## Details
**File:** `src/mistune/plugins/math.py`&lt;/p&gt;
&lt;p&gt;```python
def render_inline_math(renderer, text):
    # `text` is raw user input — no escape() call anywhere
    return r&amp;#39;&amp;lt;span class=&amp;#34;math&amp;#34;&amp;gt;\(&amp;#39; + text + r&amp;#34;\)&amp;lt;/span&amp;gt;&amp;#34;&lt;/p&gt;
&lt;p&gt;def render_block_math(renderer, text):
    # same issue for block-level $$...$$
    return &amp;#39;&amp;lt;div class=&amp;#34;math&amp;#34;&amp;gt;$$\n&amp;#39; + text + &amp;#34;\n$$&amp;lt;/div&amp;gt;\n&amp;#34;
```&lt;/p&gt;
&lt;p&gt;Both functions take `text` directly from the parsed token and concatenate it into the output string. Neither function:
- calls `escape(text)` from `mistune.util`
- checks `renderer._escape`
- calls `safe_entity(text)` or any other sanitisation helper&lt;/p&gt;
&lt;p&gt;The `escape=True` flag only influences the main `HTMLRenderer` methods (`paragraph`, `heading`, `codespan`, etc.). Plugin render functions registered via `md.renderer.register()` receive the `renderer` instance but have no mechanism that enforces the escape contract -…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; PyPI: mistune&lt;/p&gt;
&lt;p&gt;## Summary
The mistune math plugin renders inline math (`$...$`) and block math (`$$...$$`) by concatenating the raw user-supplied content directly into the HTML output **without any HTML escaping**. This occurs even when the parser is explicitly created with `escape=True`, which is supposed to guarantee that all user-controlled text is sanitised before reaching the DOM.&lt;/p&gt;
&lt;p&gt;The result is a silent contract violation: a developer who enables `escape=True` reasonably expects complete XSS protection, but the math plugin operates as an independent render path that ignores the renderer&amp;#39;s `_escape` flag entirely.&lt;/p&gt;
&lt;p&gt;## Details
**File:** `src/mistune/plugins/math.py`&lt;/p&gt;
&lt;p&gt;```python
def render_inline_math(renderer, text):
    # `text` is raw user input — no escape() call anywhere
    return r&amp;#39;&amp;lt;span class=&amp;#34;math&amp;#34;&amp;gt;\(&amp;#39; + text + r&amp;#34;\)&amp;lt;/span&amp;gt;&amp;#34;&lt;/p&gt;
&lt;p&gt;def render_block_math(renderer, text):
    # same issue for block-level $$...$$
    return &amp;#39;&amp;lt;div class=&amp;#34;math&amp;#34;&amp;gt;$$\n&amp;#39; + text + &amp;#34;\n$$&amp;lt;/div&amp;gt;\n&amp;#34;
```&lt;/p&gt;
&lt;p&gt;Both functions take `text` directly from the parsed token and concatenate it into the output string. Neither function:
- calls `escape(text)` from `mistune.util`
- checks `renderer._escape`
- calls `safe_entity(text)` or any other sanitisation helper&lt;/p&gt;
&lt;p&gt;The `escape=True` flag only influences the main `HTMLRenderer` methods (`paragraph`, `heading`, `codespan`, etc.). Plugin render functions registered via `md.renderer.register()` receive the `renderer` instance but have no mechanism that enforces the escape contract -…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/ghsa-8g87-j6q8-g93x</guid>
    </item>
    <item>
      <title>PYSEC-2026-2206</title>
      <link>https://vulnerability.circl.lu/vuln/pysec-2026-2206</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; PyPI: mistune&lt;/p&gt;
&lt;p&gt;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 without any HTML escaping. This occurs even when the parser is explicitly created with escape=True, which is supposed to guarantee that all user-controlled text is sanitised before reaching the DOM. This vulnerability is fixed in 3.2.1.&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; PyPI: mistune&lt;/p&gt;
&lt;p&gt;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 without any HTML escaping. This occurs even when the parser is explicitly created with escape=True, which is supposed to guarantee that all user-controlled text is sanitised before reaching the DOM. This vulnerability is fixed in 3.2.1.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/pysec-2026-2206</guid>
    </item>
  </channel>
</rss>
