Public vulnerability disclosure

CVE-2026-132277

Inscriptis: Quadratic memory growth from sibling <table> elements in get_text()

publishedCWE-400CWE-407

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.

Technical severity5.3 mediumCVSS 3.1 · CNA: GitHub_M
Published2026-11-20Source updated 2026-11-25
Collected2026-11-255 attributed sources

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-659j

Fix

inscriptis (PyPI): OSV reports a fixed version 2.7.6. Check the advisory for supported release branches.

Source: OSV GHSA-q87h-c5m7-659j

Affected products and versions

Affected products, source version ranges and reporting authorities
ProductVersionsAuthority
inscriptis
weblyzard
>= 2.0.0, < 2.7.6 (affected) CNA: GitHub_M
inscriptis

inscriptis
pip
>= 2.0.0, <= 2.7.5 (affected, GitHub advisory range) GitHub GHSA-q87h-c5m7-659j
inscriptis

inscriptis
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)
[
  {
    "introduced": "2.0.0"
  },
  {
    "fixed": "2.7.6"
  }
]

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

CVSS scores, vectors and reporting authorities
Version / scoreVectorAuthority
3.1 / 5.3
medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LCNA: 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:LNVD: [email protected]

Exploit evidence

References

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/cves
https://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.

Agent access JSON · OpenAPI · CVE API guide