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.
History

Sat, 21 Nov 2026 22:15:00 +0000

Type Values Removed Values Added
First Time appeared Weblyzard
Weblyzard inscriptis
Vendors & Products Weblyzard
Weblyzard inscriptis

Fri, 20 Nov 2026 17:15:00 +0000

Type Values Removed Values Added
Description 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.
Title Inscriptis: Quadratic memory growth from sibling <table> elements in get_text()
Weaknesses CWE-400
CWE-407
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published: 2026-11-20T17:08:11.051Z

Updated: 2026-11-20T17:08:11.051Z

Reserved: 2026-11-18T16:45:23.253Z

Link: CVE-2026-132277

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-20T17:18:12.893

Modified: 2026-11-20T17:18:12.893

Link: CVE-2026-132277

cve-icon Redhat

No data.