CVE-2026-132277: Inscriptis: Quadratic memory growth from sibling <table> elements in get_text()
Published 2026-11-20 · Updated 2026-11-21 · Also known as GHSA-q87h-c5m7-659j
Summary
A memory leak in Inscriptis's `get_text()` function causes quadratic memory growth when processing sibling `<table>` elements. Developers using Inscriptis to convert untrusted HTML should update their dependencies.
Who is affected
Applications that convert untrusted HTML-such as crawlers, LLM ingestion pipelines, and `inscriptis-api`-are vulnerable. An attacker can provide a small HTML document that exhausts system memory, leading to a denial of service.
Exploitability
The vulnerability is exploitable remotely without authentication or user interaction (AV:N/AC:L/PR:N/UI:N). CISA KEV indicates it is not known to be actively exploited, and EPSS data is not yet available.
Remediation
- Update inscriptis to version 2.7.6 or later.
How to check your project
- Check if the project uses PyPI package 'inscriptis' in a version range starting from 2.0.0 up to (but not including) 2.7.6.
Automated analysis of the published advisory data, generated 2026-11-21. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| PyPI | inscriptis |
>= 2.0.0, < 2.7.6 | 2.7.6 | python -m pip install 'inscriptis>=2.7.6' |
CVSS 3.1 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
| Attack vector | Network |
|---|---|
| Attack complexity | Low |
| Privileges required | None |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality | None |
| Integrity | None |
| Availability | Low |
FAQ
What is the root cause of the vulnerability?
The `table_end_handler()` fails to pop the parent's padding from the prefix stack after calling `canvas.open_block()`, causing each sibling table to add an extra level of indentation.
What are the technical consequences of this flaw?
The size of the output grows quadratically; for example, a 240 KB HTML document can produce approximately 1 billion characters and consume about 1 GB of memory.
Which CWEs are associated with this record?
The vulnerability is associated with CWE-400 (Uncontrolled Resource Consumption) and CWE-407 (Improper Resource Shutdown or Release).
Original advisory description
References
- WEB https://github.com/weblyzard/inscriptis/security/advisories/GHSA-q87h-c5m7-659j
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-132277
- WEB https://github.com/weblyzard/inscriptis/commit/dc122894cd671a0227f8fdad60464acddaf40fc8
- PACKAGE https://github.com/weblyzard/inscriptis
- WEB https://github.com/weblyzard/inscriptis/releases/tag/2.7.6
Source records: GHSA-q87h-c5m7-659j (OSV.dev) · EPSS by FIRST, 2026-11-26.