CVE-2026-132277 Inscriptis: Quadratic memory growth from sibling <table> elements in get_text()
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
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.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| pypi inscriptis(PyPI) | = 2.0.0; = 2.1.1; = 2.2.0; = 2.3.0 +17 more | 2.7.6 | Fixed |
| weblyzard inscriptis | = >= 2.0.0, < 2.7.6 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi inscriptis(PyPI) | >= 2.0.0, <= 2.7.5 | No fix listed |
| pypi inscriptis(PyPI) | >= 2.0.0, < 2.7.6 | 2.7.6 |
| pypi inscriptis(PyPI) | = 2.0.0 | No fix listed |
| pypi inscriptis(PyPI) | = 2.1.1 | No fix listed |
| pypi inscriptis(PyPI) | = 2.2.0 | No fix listed |
| pypi inscriptis(PyPI) | = 2.3.0 | No fix listed |
| pypi inscriptis(PyPI) | = 2.3.1 | No fix listed |
| pypi inscriptis(PyPI) | = 2.3.2 | No fix listed |
| pypi inscriptis(PyPI) | = 2.4.0 | No fix listed |
| pypi inscriptis(PyPI) | = 2.4.0.1 | No fix listed |
| pypi inscriptis(PyPI) | = 2.5.0 | No fix listed |
| pypi inscriptis(PyPI) | = 2.5.1 | No fix listed |
| pypi inscriptis(PyPI) | = 2.5.2 | No fix listed |
| pypi inscriptis(PyPI) | = 2.5.3 | No fix listed |
| pypi inscriptis(PyPI) | = 2.6.0 | No fix listed |
| pypi inscriptis(PyPI) | = 2.7.0 | No fix listed |
| pypi inscriptis(PyPI) | = 2.7.1 | No fix listed |
| pypi inscriptis(PyPI) | = 2.7.2 | No fix listed |
| pypi inscriptis(PyPI) | = 2.7.3 | No fix listed |
| pypi inscriptis(PyPI) | = 2.7.4 | No fix listed |
| pypi inscriptis(PyPI) | = 2.7.5 | No fix listed |
| weblyzard inscriptis | = >= 2.0.0, < 2.7.6 | No fix listed |
References
- https://github.com/weblyzard/inscriptis/security/advisories/GHSA-q87h-c5m7-659j exploit vendor-advisory
- https://github.com/weblyzard/inscriptis/commit/dc122894cd671a0227f8fdad60464acddaf40fc8 patch
- https://github.com/weblyzard/inscriptis/releases/tag/2.7.6
- ENISA EUVD EUVD-2026-131680 third-party-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product