CVE-2026-132277
Inscriptis: Quadratic memory growth from sibling <table> elements in get_text()
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.
Fixes and workarounds
Fix
inscriptis (pip): GitHub reports patched versions 2.7.6. Check the advisory for the affected release branch.
Source: GitHub GHSA-q87h-c5m7-659jFix
inscriptis (PyPI): OSV reports a fixed version 2.7.6. Check the advisory for supported release branches.
Source: OSV GHSA-q87h-c5m7-659jAffected products and versions
| Product | Versions | Authority |
|---|---|---|
| inscriptis weblyzard |
>= 2.0.0, < 2.7.6 (affected) | CNA: GitHub_M |
inscriptisinscriptis
pip |
>= 2.0.0, <= 2.7.5 (affected, GitHub advisory range) | GitHub GHSA-q87h-c5m7-659j |
inscriptisinscriptis
PyPI |
2.0.0 (affected, PyPI) 2.1.1 (affected, PyPI) 2.2.0 (affected, PyPI) 2.3.0 (affected, PyPI) 2.3.1 (affected, PyPI) 2.3.2 (affected, PyPI) 2.4.0 (affected, PyPI) 2.4.0.1 (affected, PyPI) 2.5.0 (affected, PyPI) 2.5.1 (affected, PyPI) 2.5.2 (affected, PyPI) 2.5.3 (affected, PyPI) 2.6.0 (affected, PyPI) 2.7.0 (affected, PyPI) 2.7.1 (affected, PyPI) 2.7.2 (affected, PyPI) 2.7.3 (affected, PyPI) 2.7.4 (affected, PyPI) 2.7.5 (affected, PyPI) Ecosystem version events: introduced 2.0.0; fixed 2.7.6 Source events (ECOSYSTEM)
Other versions: unaffected |
OSV GHSA-q87h-c5m7-659j |
Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.
CVSS assessments
| Version / score | Vector | Authority |
|---|---|---|
| 3.1 / 5.3 medium |
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L | CNA: GitHub_M |
| 3.1 / 5.3 medium |
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L | NVD: [email protected] |
Exploit evidence
- https://github.com/weblyzard/inscriptis/security/advisories/GHSA-q87h-c5m7-659j
exploit · ADP: CISA-ADP
References
- https://github.com/weblyzard/inscriptis/security/advisories/GHSA-q87h-c5m7-659jCNA: GitHub_M · x_refsource_CONFIRM
- https://github.com/weblyzard/inscriptis/commit/dc122894cd671a0227f8fdad60464acddaf40fc8CNA: GitHub_M · x_refsource_MISC
- https://github.com/weblyzard/inscriptis/releases/tag/2.7.6CNA: GitHub_M · x_refsource_MISC
- https://github.com/weblyzard/inscriptis/security/advisories/GHSA-q87h-c5m7-659jADP: CISA-ADP · exploit
- https://github.com/weblyzard/inscriptis/commit/dc122894cd671a0227f8fdad60464acddaf40fc8[email protected]
- https://github.com/weblyzard/inscriptis/releases/tag/2.7.6[email protected]
- https://github.com/weblyzard/inscriptis/security/advisories/GHSA-q87h-c5m7-659j[email protected]
- https://github.com/weblyzard/inscriptis/security/advisories/GHSA-q87h-c5m7-659j134c704f-9b21-4f2e-91b3-4a467353bcc0
- https://github.com/weblyzard/inscriptis/security/advisories/GHSA-q87h-c5m7-659jGitHub Security Advisories · advisory
- https://github.com/advisories/GHSA-q87h-c5m7-659jOSV / GitHub Security Advisories · advisory
- https://osv.dev/vulnerability/GHSA-q87h-c5m7-659jOSV / GitHub Security Advisories · osv
For agents and automation
Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.
Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.
Endpoints and access details
https://api.y2.dev/api/v2/cyber/cveshttps://api.y2.dev/api/v2/cyber/cves/{cveId}
A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.
For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.