<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://db.gcve.eu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-10-03T12:59:31.491207+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@gcve.eu</email>
  </author>
  <link href="https://db.gcve.eu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://db.gcve.eu/vuln/cve-2026-49851</id>
    <title>CVE-2026-49851 — Mistune: Potential DoS via quadratic-time parsing in parse_link_text</title>
    <updated>2026-10-03T12:59:31.492861+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> lepture mistune, Red Hat OpenShift AI 3.4, Red Hat Migration Toolkit for Applications 8, Red Hat OpenShift AI (RHOAI), Red Hat OpenShift Container Platform 4, Red Hat Satellite 6</p>
<p>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 consecutive [ characters, parse_link_text repeatedly scans the input using a regex search inside a loop. Each iteration re-scans a large portion of the remaining string, resulting in quadratic-time behavior. An attacker-controlled Markdown input can therefore trigger excessive CPU usage with a very small payload. This vulnerability is fixed in 3.3.0.</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/cve-2026-49851"/>
  </entry>
  <entry>
    <id>https://db.gcve.eu/vuln/ghsa-qcq2-496w-v96p</id>
    <title>GHSA-qcq2-496w-v96p — Mistune: Potential DoS via quadratic-time parsing in parse_link_text</title>
    <updated>2026-10-03T12:59:31.492955+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> PyPI: mistune</p>
<p>### Summary
Mistune is vulnerable to a CPU exhaustion DoS due to superlinear (approximately O(n²)) behavior in parse_link_text. A relatively small input consisting of repeated [ characters causes significant parsing slowdown.</p>
<p>### Affected component
mistune/inline_parser.py → **parse_link_text**</p>
<p>### Description
When parsing Markdown containing many consecutive [ characters, parse_link_text repeatedly scans the input using a regex search inside a loop. Each iteration re-scans a large portion of the remaining string, resulting in quadratic-time behavior.
An attacker-controlled Markdown input can therefore trigger excessive CPU usage with a very small payload.</p>
<p>### Root cause
The vulnerability stems from a two-loop interaction:
- The outer loop in `InlineParser.parse()` (inline_parser.py) advances 
  only 1 character at a time when parse_link() returns None
- Each failed attempt calls `parse_link_text()` which performs an O(n) 
  scan to the end of the string looking for a closing `]`
- With n consecutive `[` characters, this results in O(n) × O(n) = O(n²) 
  total work</p>
<p>### PoC
Run below python script
```
import mistune
import time</p>
<p>md = mistune.create_markdown()</p>
<p>s = "[" * 6400</p>
<p>t = time.perf_counter()
md(s)
print(time.perf_counter() - t)
```
&lt;img width="2028" height="1277" alt="image" src="https://github.com/user-attachments/assets/15d5bc0b-35f8-4a15-85e0-cbc314a45b06" /&gt;</p>
<p>**Benmark poc**
Run below code for benchmark
```
import mistune
import time</p>
<p>md = mistune.create_markd…</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/ghsa-qcq2-496w-v96p"/>
  </entry>
  <entry>
    <id>https://db.gcve.eu/vuln/pysec-2026-2652</id>
    <title>PYSEC-2026-2652 — Mistune: Potential DoS via quadratic-time parsing in parse_link_text</title>
    <updated>2026-10-03T12:59:31.493020+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> PyPI: mistune</p>
<p>### Summary
Mistune is vulnerable to a CPU exhaustion DoS due to superlinear (approximately O(n²)) behavior in parse_link_text. A relatively small input consisting of repeated [ characters causes significant parsing slowdown.</p>
<p>### Affected component
mistune/inline_parser.py → **parse_link_text**</p>
<p>### Description
When parsing Markdown containing many consecutive [ characters, parse_link_text repeatedly scans the input using a regex search inside a loop. Each iteration re-scans a large portion of the remaining string, resulting in quadratic-time behavior.
An attacker-controlled Markdown input can therefore trigger excessive CPU usage with a very small payload.</p>
<p>### Root cause
The vulnerability stems from a two-loop interaction:
- The outer loop in `InlineParser.parse()` (inline_parser.py) advances 
  only 1 character at a time when parse_link() returns None
- Each failed attempt calls `parse_link_text()` which performs an O(n) 
  scan to the end of the string looking for a closing `]`
- With n consecutive `[` characters, this results in O(n) × O(n) = O(n²) 
  total work</p>
<p>### PoC
Run below python script
```
import mistune
import time</p>
<p>md = mistune.create_markdown()</p>
<p>s = "[" * 6400</p>
<p>t = time.perf_counter()
md(s)
print(time.perf_counter() - t)
```
&lt;img width="2028" height="1277" alt="image" src="https://github.com/user-attachments/assets/15d5bc0b-35f8-4a15-85e0-cbc314a45b06" /&gt;</p>
<p>**Benmark poc**
Run below code for benchmark
```
import mistune
import time</p>
<p>md = mistune.create_markd…</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/pysec-2026-2652"/>
  </entry>
</feed>
