CVE-2026-132277
Inscriptis: Quadratic memory growth from sibling <table> elements in get_text()
- CVSS
- 5.3
- EPSS
- 0.60% (p43)
- Published
- 2026-11-20
- Age
- 11d old
- Modified
- 2026-11-25
- Product
- weblyzard inscriptis
- Aliases
- GHSA-q87h-c5m7-659j
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
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.
Fixed in
2.7.6
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| PyPI | inscriptis | >= 2.0.0, <= 2.7.5 | 2.7.6 |
| PyPI | inscriptis | >=2.0.0, <2.7.6 | 2.7.6 |
Sources
- NVD · first seen 11d ago · NVD terms of use
- OSV · first seen 11d ago · CC-BY 4.0
- GitHub Advisory Database · first seen 11d ago · CC-BY 4.0
- CVE List · first seen 11d ago · CVE Terms of Use
References
- https://github.com/weblyzard/inscriptis/security/advisories/GHSA-q87h-c5m7-659j x_refsource_CONFIRM
- https://github.com/weblyzard/inscriptis/commit/dc122894cd671a0227f8fdad60464acddaf40fc8 x_refsource_MISC
- https://github.com/weblyzard/inscriptis/releases/tag/2.7.6 x_refsource_MISC
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/132xxx/CVE-2026-132277.json advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-132277 advisory
- https://github.com/advisories/GHSA-q87h-c5m7-659j other
- https://github.com/weblyzard/inscriptis package