Read the docs

Quadratic memory growth in Inscriptis get_text() from sibling table elements

Priority MEDIUM 63CWE-400Published · Updated

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

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00597 42nd percentileScored 2026-11-30
Fix Fixed inscriptis (weblyzard): 2.7.6inscriptis (PyPI): 2.7.6

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

VendorProductAffected versionsFixed inStatusSource
weblyzardinscriptis2.0.0 to before 2.7.62.7.6Patch availableCNA
—inscriptis (PyPI)2.0.0 to before 2.7.62.7.6Patch availableGHSA-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

  1. 2026-11-20 Threatist record created from CVE-2026-132277
  2. 2026-11-21 Alias added: GHSA-q87h-c5m7-659j
  3. 2026-11-21 Fix available: PyPI/[email protected] · GHSA-q87h-c5m7-659j
  4. 2026-11-21 CVSS score added · GHSA-q87h-c5m7-659j
  5. 2026-11-21 Weakness changed · GHSA-q87h-c5m7-659j
  6. 2026-11-21 5 new references · GHSA-q87h-c5m7-659j
  7. 2026-11-25 EPSS moved to the below the 50th percentile
  8. 2026-11-25 CISA SSVC decision points changed

References

Sources