Quadratic memory growth in Inscriptis get_text() from sibling table elements
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · Low
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-400.
Summary
Inscriptis, a Python library for converting HTML to text, is affected from 2.0.0 before 2.7.6. When the parent element is block-level, sibling table elements carry forward accumulated indentation, which is a case of inefficient algorithmic complexity (CWE-407). Output from get_text() grows quadratically, so a small HTML document from an attacker can exhaust memory in applications that convert it without authentication or user interaction.
Written with Claude Haiku 5.5 from the sources below · 2026-11-25
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| weblyzard | inscriptis | 2.0.0 to before 2.7.6 | 2.7.6 | Patch available | CNA |
| — | inscriptis (PyPI) | 2.0.0 to before 2.7.6 | 2.7.6 | Patch available | GHSA-q87h-c5m7-659j |
- inscriptis Vendorweblyzard Affected 2.0.0 to before 2.7.6 Fixed in 2.7.6 Patch available CNA
- inscriptis (PyPI) Vendor— Affected 2.0.0 to before 2.7.6 Fixed in 2.7.6 Patch available GHSA-q87h-c5m7-659j
Remediation
Upgrade Inscriptis on PyPI to version 2.7.6, which fixes the issue. The sources list no fixed version for other products.
Written with Claude Haiku 5.5 from the sources below · 2026-11-25
- Fix · CNA inscriptis (weblyzard) Fixed in 2.7.6
- Fix · GHSA-q87h-c5m7-659j inscriptis (PyPI) Fixed in 2.7.6 Advisory →
Timeline
- 2026-11-20 Threatist record created from CVE-2026-132277
- 2026-11-21 Alias added: GHSA-q87h-c5m7-659j
- 2026-11-21 Fix available: PyPI/[email protected] · GHSA-q87h-c5m7-659j
- 2026-11-21 CVSS score added · GHSA-q87h-c5m7-659j
- 2026-11-21 Weakness changed · GHSA-q87h-c5m7-659j
- 2026-11-21 5 new references · GHSA-q87h-c5m7-659j
- 2026-11-25 EPSS moved to the below the 50th percentile
- 2026-11-25 CISA SSVC decision points changed
References
Sources
- CVE-2026-132277 · CVE Program
- CVE-2026-132277 · NVD
- FIRST EPSS
- GHSA-q87h-c5m7-659j · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences