PyPI
CVE-2026-132277
Inscriptis: Quadratic memory growth from sibling <table> elements in get_text()
- Severity
- Medium 5.3
- Published
- 20 Nov 2026
- Last changed
- 21 Nov 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 2.7.6
- Exploit chance
- 0.9% in the next 30 daysHigher than 60% of CVEs. EPSS by FIRST, 24 Nov 2026
- Attack
- Over the network · No login needed · No user action needed
- Attacker can
- Slow it down
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L- Also known as
- GHSA-q87h-c5m7-659j
- Sources
- OSV.dev and GitHub
Description
Every sibling `
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.
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.
This has been present since 2.0 (commit 84ec720).
Any application that converts untrusted HTML with inscriptis can be made to exhaust memory with a small document. This includes crawlers, RAG and LLM ingestion pipelines, and inscriptis-api.
Affected software
| Software | Affected versions |
|---|---|
inscriptisPyPI · osv:PyPI:inscriptis |
|
About inscriptis
- Weekly downloads (PyPI)
- 399,680PyPI Stats, 24 Nov 2026
This is the only vulnerability in inscriptis in our list.
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-132277
- GitHub Advisory Database https://github.com/advisories/GHSA-q87h-c5m7-659j