# CVE-2026-132277: Inscriptis: Quadratic memory growth from sibling <table> elements in get_text()

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.91%, higher than 61% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-11-20T17:08:11.051Z
- Modified: 2026-11-25T05:18:30.770Z
- Also known as: GHSA-q87h-c5m7-659j
- Weaknesses: CWE-400, CWE-407
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- weblyzard inscriptis: >= 2.0.0, < 2.7.6
- inscriptis (PyPI): from 2.0.0 before 2.7.6

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://github.com/weblyzard/inscriptis/security/advisories/GHSA-q87h-c5m7-659j> (exploit, web)
- <https://github.com/weblyzard/inscriptis/commit/dc122894cd671a0227f8fdad60464acddaf40fc8> (web)
- <https://github.com/weblyzard/inscriptis/releases/tag/2.7.6> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-132277> (advisory)
- <https://github.com/weblyzard/inscriptis> (package)

## Sources

- CVE List: [CVE-2026-132277](https://www.cve.org/CVERecord?id=CVE-2026-132277), CVE Terms of Use, modified 2026-11-25
- GitHub Advisory Database: [GHSA-q87h-c5m7-659j](https://github.com/advisories/GHSA-q87h-c5m7-659j), CC-BY-4.0, modified 2026-11-21
- NVD: [CVE-2026-132277](https://nvd.nist.gov/vuln/detail/CVE-2026-132277), Public domain, modified 2026-11-25

---

Page: https://cve.day/CVE-2026-132277 · Whole record: https://cve.day/CVE-2026-132277.json · Rebuilt by cve.day 2026-11-25T23:17:31.902Z
