CVE-2026-132277

GHSA-q87h-c5m7-659j · published 20 Nov 2026 · updated 21 Nov 2026

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

5.3MediumCVSS 5.3EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in inscriptis 2.7.6.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
weblyzard>=2.0.0 <2.7.6
pypi: inscriptis>=2.0.0 <2.7.6, >=2.0.0 <=2.7.52.7.6

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-132277 severity on Zeptric[![CVE-2026-132277](https://zeptric.io/badge/cve/CVE-2026-132277.svg)](https://zeptric.io/cve/CVE-2026-132277)