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

- **Severity:** MEDIUM 5.3
- **CVSS:** 5.3 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.60% (percentile 43, 2026-11-28)
- **CWE:** CWE-400, CWE-407
- **Aliases:** GHSA-q87h-c5m7-659j
- **Published:** 2026-11-20T17:08:11.051Z
- **Modified:** 2026-11-25T05:18:30.770Z

## Who should check

- Projects that depend on PyPI package inscriptis (\>= 2.0.0, \<= 2.7.5)
- Anyone running weblyzard inscriptis \>= 2.0.0, \< 2.7.6

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

## Affected and fixed versions

- PyPI `inscriptis`: affected \>= 2.0.0, \<= 2.7.5; fixed 2.7.6 (ghsa)
- weblyzard inscriptis: \>= 2.0.0, \< 2.7.6 (cvelist)

## Technologies

PyPI packages

## Mitigation

- Upgrade inscriptis to 2.7.6 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-132277. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-132277.md
Affected: inscriptis >= 2.0.0, <= 2.7.5
Fixed in: 2.7.6

Steps:
1. Search this machine and project for inscriptis (PyPI), weblyzard inscriptis: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-132277 being exploited?

There is no confirmed exploitation: CVE-2026-132277 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.60% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-132277?

Medium: CVSS 5.3 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-132277?

inscriptis \>= 2.0.0, \<= 2.7.5.

### Is there a fix for CVE-2026-132277?

Yes. Fixed in 2.7.6. Upgrade inscriptis to 2.7.6 or later.

### How do I check if I'm affected by CVE-2026-132277?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/weblyzard/inscriptis/security/advisories/GHSA-q87h-c5m7-659j>
- patch: <https://github.com/weblyzard/inscriptis/commit/dc122894cd671a0227f8fdad60464acddaf40fc8>
- other: <https://github.com/weblyzard/inscriptis/releases/tag/2.7.6>
- other: <https://nvd.nist.gov/vuln/detail/CVE-2026-132277>
- other: <https://github.com/advisories/GHSA-q87h-c5m7-659j>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-132277>
- GitHub Advisory Database: CC-BY 4.0 <https://github.com/advisories/GHSA-q87h-c5m7-659j> (license: <https://creativecommons.org/licenses/by/4.0/>)
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-132277> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-132277>
