Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify service converting untrusted HTML
-
DeliveryCraft HTML with thousands of sibling tables
-
ExploitSubmit document to conversion endpoint
-
ExecutionQuadratic indentation growth in get_text()
-
ImpactMemory 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
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.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
1DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
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
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
EUVD-2026-131680
GHSA-q87h-c5m7-659j
NVD
CVE.org
EPSS
Exploit-DB