CVE-2026-132277
CVE-2026-132277 · Inscriptis: Quadratic memory growth from sibling <table> elements in get_text()
CVSS 5.3 · Medium · EPSS 0.6% · Public exploit · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- inscriptisNo fix published
- inscriptis PyPIUpdate to 2.7.6
Check the installed version:
pip show inscriptisAssess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
- Published
- Updated
Stack: python
Affected products and versions
inscriptis
- Versions
- >= 2.0.0, < 2.7.6: Affected
No fix published
inscriptis PyPI
- Versions
- 2.0.0
- 2.1.1
- 2.2.0
- 2.3.0
- 2.3.1
- 2.3.2
All versions (19)
- 2.4.0
- 2.4.0.1
- 2.5.0
- 2.5.1
- 2.5.2
- 2.5.3
- 2.6.0
- 2.7.0
- 2.7.1
- 2.7.2
- 2.7.3
- 2.7.4
- 2.7.5
- Affected ranges
- ECOSYSTEM: ≥ 2.0.0, < 2.7.6
Update to 2.7.6