Skip to main content

Inscriptis EUVDEUVD-2026-131680

| CVE-2026-132277 MEDIUM
Uncontrolled Resource Consumption (CWE-400)
2026-11-20 security-advisories@github.com GHSA-q87h-c5m7-659j
5.3
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify service converting untrusted HTML
  2. Delivery
    Craft HTML with thousands of sibling tables
  3. Exploit
    Submit document to conversion endpoint
  4. Execution
    Quadratic indentation growth in get_text()
  5. Impact
    Memory exhaustion / denial of service

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

No authentication and no user interaction are required (CVSS PR:N/UI:N): the only prerequisite is that the application passes attacker-controlled HTML to inscriptis's get_text() (or get_annotated_text()) in a vulnerable version (>= 2.0.0, <= 2.7.5). The specific trigger is HTML containing many sibling <table> elements whose parent is block-level (e.g. <ul> or <div>), which accumulates padding_inline prefixes and drives quadratic output growth. Limiting factors: the deployment must actually convert untrusted/remote HTML (crawlers, RAG/LLM ingestion, inscriptis-api) and must lack input-size or output-size limits; services that only process trusted HTML, cap document/output size, or run 2.7.6+ are not exposed.

Impact

This is a genuine but moderate-severity resource-exhaustion (CWE-400/CWE-407) denial-of-service issue, and the signals are internally consistent rather than conflicting. The provided CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L, base 5.3) correctly reflects that exploitation is remote, low-complexity, unauthenticated, requires no user interaction, and affects only availability - there is no confidentiality or integrity impact, which caps real severity. The vuln.today decision label is 'this_month' (not act_now/emergency), aligning with a medium-impact availability bug. No EPSS score and no CISA KEV status were supplied, so there is no evidence of widespread or active exploitation; absence of these is not an error but does mean predicted exploitation probability is unknown. The GitHub Security Advisory includes working reproduction/PoC code and a measured amplification table (240 KB of HTML → ~1 GB RAM, ~1 billion output characters), so the quadratic blow-up is well characterized and easily reproduced. The practical risk is therefore real for any service that feeds untrusted HTML into inscriptis (crawlers, RAG/LLM ingestion pipelines, inscriptis-api), but it is a memory/CPU exhaustion bug, not code execution or data exposure - prioritize patching where untrusted HTML is processed, but it is not a drop-everything emergency based on the supplied signals.

Exploit ScenarioDerived

An attacker submits a small crafted HTML document (around 240 KB) containing thousands of sibling <table> elements nested inside a block-level parent such as <ul> or <div> to any service that converts untrusted HTML to text with inscriptis. Because each sibling table carries forward accumulated indentation, get_text() output grows quadratically, producing roughly a billion characters and exhausting memory on the server with no authentication or user interaction. A public PoC reference exists in the GHSA advisory (including measurements); it is not verified as a packaged working exploit, but the reproduction code is straightforward.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.9% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 20, 2026

Quadratic memory exhaustion in Inscriptis 2.0.0 through 2.7.5 lets unauthenticated remote attackers force an application that converts attacker-supplied HTML to consume unbounded memory, because each sibling <table> under a block-level parent adds another copy of the parent's indentation to the rendered output. In the upstream measurements a 240 KB document with 16,000 sibling tables expands to roughly 1 billion characters and about 1 GB of resident memory, and doubling the input roughly quadruples both runtime and memory. The flaw is not listed in CISA KEV and no independently confirmed working exploit is reported, but the GitHub security advisory publishes a reproduction script, and the realistic exposure is any pipeline (crawlers, RAG/LLM ingestion, inscriptis-api) that passes untrusted HTML to get_text() without document or output size limits. Severity is moderate: it is a pure availability impact (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L) with no confidentiality or integrity loss.

RemediationAI

Upgrade inscriptis to 2.7.6 or later (for example pip install --upgrade "inscriptis>=2.7.6"), which is the vendor-released fix; the upstream commit dc122894cd671a0227f8fdad60464acddaf40fc8 adds a prefix.remove_last_prefix() call in table_end_handler() when the parent tag's display mode is block, so sibling tables no longer inherit the accumulated padding_inline prefix, and the advisory's benchmarks show the 240 KB sample dropping from about 1 GB and 5.6 s to 27 MiB and 0.14 s. Details are in the advisory at https://github.com/weblyzard/inscriptis/security/advisories/GHSA-q87h-c5m7-659j and the release notes at https://github.com/weblyzard/inscriptis/releases/tag/2.7.6. Where the upgrade cannot be applied immediately, because the growth is quadratic in the number of sibling tables, imposing a hard cap on accepted input size and on rendered output length sharply limits the worst case - but a modest byte cap still permits several hundred megabytes of expansion, so the cap must be paired with a memory- and time-limited worker process (or container) that kills conversion once a memory or CPU ceiling is reached; the trade-offs are rejected or truncated legitimate large documents and the operational overhead of sandboxed conversion. Restricting get_text() to HTML from trusted sources removes the exposure entirely but is usually not viable for crawler or ingestion workloads, and patching to 2.7.6 remains the only complete fix.

Affected VersionsENISA

inscriptis 2.0.0, < 2.7.6

Affected Packages

pypi inscriptis fix: 2.7.6

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Inscriptis is a Python HTML-to-text conversion library built around a Canvas that renders elements into blocks while tracking inline indentation in a prefix stack. When a table ends, table_end_handler() in model/tag/table_tag.py writes the rendered table back into its parent element via HtmlElement.write_verbatim_text() in model/html_element.py; for a block-level parent that call invokes Canvas.open_block(), which pushes the parent's padding_inline value onto the prefix stack. Canvas.close_block() never pops that entry, and only Canvas.close_tag() calls prefix.remove_last_prefix(), so every additional sibling table leaves one more stale indentation entry behind. The consequence is that the emitted text of each successive sibling table carries the accumulated padding of all previous ones, producing quadratic output growth relative to the number of sibling tables. This maps to CWE-400 (uncontrolled resource consumption) and, per the upstream advisory, CWE-407 (inefficient algorithmic complexity); the behaviour has existed since release 2.0 (upstream commit 84ec720). The trigger requires a block-level parent element (for example <ul> or <div>) wrapping multiple sibling <table> elements - this is confirmed both by the advisory and by the regression tests added in upstream commit dc122894cd671a0227f8fdad60464acddaf40fc8, which also cover tables inside padded blocks used with get_annotated_text() so that annotation offsets are not shifted by the padding bookkeeping. Applications that only convert trusted, well-formed HTML, or that run 2.7.6 or later, do not exhibit the accumulation.

Know when Python gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (github) PRIMARY 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
vuln.today AI 5.3 MEDIUM

Remote, low-complexity, unauthenticated conversion of attacker HTML with no user interaction; only availability is affected via memory exhaustion, so C:N/I:N and A:L.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low

Lifecycle Timeline

1
Patch available
Nov 20, 2026 - 19:19 EUVD

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.9%
Top 39% exploitable
Prevalence
Low
niche Python HTML-to-text library, limited but real NLP/ingestion footprint
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.9%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

47
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +26
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy