CVE-2026-132277
Medium 5.3No known exploitationFix availableInscriptis: Quadratic memory growth from sibling <table> elements in get_text()
Vendor advisory: GHSA-q87h-c5m7-659j
Record last updated
CVSS score
Medium on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
No EPSS score available
CISA remediation deadline
Not in the KEV catalog
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.
Weakness: CWE-400, CWE-407
Patching and mitigation
- Patch status
- Fix available (source: GitHub Advisory Database)
- Fix documented (source date)
- Mitigation
- None documented
- Vendor guidance
- github.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| pip | inscriptis | from 2.0.0 up to and including 2.7.5 | 2.7.6 | GitHub Advisory Database |
| weblyzard | inscriptis | >= 2.0.0, < 2.7.6 | Not documented | CVE Program |
Timeline
Disclosure
CVE record published by GitHub_M
Source: CVE Program (opens in a new tab)
Patch
Fix documented by GitHub Advisory Database
Vendor guidance and references
- GitHub Advisory GHSA-q87h-c5m7-659j (opens in a new tab)github-advisory
- https://github.com/weblyzard/inscriptis/commit/dc122894cd671a0227f8fdad60464acddaf40fc8 (opens in a new tab)x_refsource_misc
- https://github.com/weblyzard/inscriptis/releases/tag/2.7.6 (opens in a new tab)x_refsource_misc
- https://github.com/weblyzard/inscriptis/security/advisories/GHSA-q87h-c5m7-659j (opens in a new tab)x_refsource_confirm