Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach HTML parsing endpoint
-
DeliverySubmit HTML with <template> element
-
ExploitType confusion misroutes template node
-
Executionstrlen() over-reads heap block
-
PersistLeaked bytes serialized into output
-
ImpactAttacker reads disclosed heap memory
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Type safety enforcement
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The concrete prerequisite is that a caller invokes HTML::Gumbo parse() with the default format => 'string' (or format => 'tree') on input the attacker can influence, and that input contains an HTML <template> element - the presence of that element is the trigger. Limiting factors: parse() called with format => 'callback' is NOT affected because it croaks on the unhandled node type, so only the string/tree serialization paths are exploitable; the disclosure is bounded (over-read of the heap block adjacent to the pointer, not arbitrary memory), and the attacker must be able to observe the serialized output to recover the leaked bytes. Only HTML::Gumbo versions before 0.19 are affected. Authentication is not required (CVSS PR:N). |
| Impact | The signals conflict and warrant a downgrade from the headline 9.8. The published CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/C:H/I:H/A:H) claims full confidentiality, integrity, and availability impact, but the described behavior is a bounded, read-only heap disclosure - integrity and availability impact are not supported by the description, so the I:H/A:H metrics appear overstated and the realistic severity is closer to 7.5 (confidentiality-only). Reinforcing a moderate real-world priority: EPSS is only 0.66% (47th percentile), the CVE is not on CISA KEV, SSVC records Exploitation as 'none', and no POC is published. Counterbalancing toward attention: SSVC marks the issue Automatable=yes with Technical Impact=total, and the trigger (an HTML string containing <template>) is effortless to deliver to any web-facing Perl service that parses untrusted markup. Net assessment: a genuine, easily triggered information-disclosure bug that is a real but not emergency priority - patch promptly, but the 9.8 rating overstates impact and there is no evidence of active exploitation. |
| Exploit ScenarioDerived | An attacker submits HTML containing a <template> element to a public endpoint of a Perl web application that uses HTML::Gumbo to parse and reserialize user content (for example a comment sanitizer or feed renderer using the default format => 'string'). The type confusion causes strlen() to over-read the heap, and the leaked bytes - potentially containing adjacent secrets such as session data or key material - are returned in the serialized output the attacker receives. No POC is published, but the network attack vector and low complexity (AC:L, no authentication) make delivery trivial. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 22, 2026
Heap memory disclosure in the Perl HTML::Gumbo module before 0.19 lets remote attackers leak bounded chunks of process heap by submitting HTML containing a <template> element. The XS binding's walk_tree function misclassifies the template node as a text node and runs strlen() past the intended buffer, serializing the over-read bytes into parse() output. No public exploit is identified at time of analysis, and EPSS is low (0.66%), but exploitation is automatable and the flaw is trivially triggerable against any service that parses untrusted HTML with the default settings.
RemediationAI
Vendor-released patch: 0.19 - upgrade HTML::Gumbo to 0.19 or later (e.g. cpan HTML::Gumbo / cpanm HTML::Gumbo@0.19), which adds GUMBO_NODE_TEMPLATE handling to walk_tree per commit 15c0598909d4a64f47ef0a1abc5051f4e113c186 (https://github.com/bestpractical/HTML-Gumbo/commit/15c0598909d4a64f47ef0a1abc5051f4e113c186.patch); Debian users should track https://bugs.debian.org/1104789 for the distribution package. If immediate upgrade is impossible, a targeted workaround is to switch callers to format => 'callback', which croaks on the unhandled template node type and is not affected - with the trade-off that callers must implement their own node-walking logic and lose the convenience of the 'string'/'tree' serializers. Alternatively, pre-strip or reject <template> elements from untrusted input before parsing, accepting that this changes parser semantics and may drop legitimate markup. Advisory details are in the oss-security post at https://seclists.org/oss-sec/2026/q3/6 and http://www.openwall.com/lists/oss-security/2026/07/01/7.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
HTML::Gumbo is a Perl XS wrapper around Google's libgumbo HTML5 parsing library. libgumbo 0.10.0 (2015) introduced a dedicated GUMBO_NODE_TEMPLATE node type for the HTML <template> element, but the wrapper's walk_tree function in lib/HTML/Gumbo.xs only recognized GUMBO_NODE_DOCUMENT and GUMBO_NODE_ELEMENT, so template nodes fell through to the text-node handling path. That path calls strlen() on a pointer that does not address a NUL-terminated text buffer, causing a heap over-read. This is the classic CWE-843 (Type Confusion / Access of Resource Using Incompatible Type) pattern: an object of one type is interpreted with the semantics of another, and the resulting length mis-computation leaks adjacent heap contents. The single affected component is cpe:2.3:a:bps:html::gumbo, the Best Practical Solutions (BPS) Perl distribution.
Know when Html 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:H/I:H/A:H
Unauthenticated attacker-controlled HTML triggers the over-read (AV:N/AC:L/PR:N/UI:N), but the effect is a bounded read-only heap disclosure, so C:H with no integrity or availability impact.
Primary rating from Vendor (CPANSec).
CVSS VectorVendor: CPANSec
Lifecycle Timeline
2DescriptionCVE.org
HTML::Gumbo versions before 0.19 for Perl disclose heap memory via type confusion.
Support for the <template> element was added to libgumbo 0.10.0 in 2015, but the walk_tree function in lib/HTML/Gumbo.xs was not updated to support it. The element was treated as a text-node, where strlen() over-reads the heap block that the pointer addresses.
Any caller that runs parse() with the default format => 'string', or with format => 'tree', on input containing a <template> element serializes the over-read bytes into the returned result, disclosing bounded heap contents. format => 'callback' reaches a croak on the unhandled node type and is unaffected.
Executive ViewAI
The Perl HTML::Gumbo module contains a critical vulnerability (CVE-2025-15646, CVSS 9.8) that allows remote attackers to extract sensitive data from application memory when processing HTML content. Organizations operating web platforms, content management systems, web crawlers, or any service that processes untrusted HTML face immediate risk of data breach and potential exposure of credentials, session tokens, or database contents. A vendor patch is available and exploitation is trivially achievable with no user interaction required.
Apply vendor patch.
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
Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
The html.Parse function in golang.org/x/net/html has an infinite parsing loop when processing certain inputs, which can
Out-of-bounds read in the HTML::Bare Perl parsing module (versions through 0.04) lets an attacker who supplies truncated
Session::Cookie in the HTML::EP module 0.2011 for Perl does not properly use the Storable::thaw function, which allows r
Denial of service in HTML::Bare through version 0.04, a Perl XML/HTML parsing module, allows remote unauthenticated atta
Heap information disclosure in HTML::Entities for Perl (versions before 3.84) allows remote attackers to leak adjacent h
Cross-site scripting in SWC's HTML minifier allows attacker-controlled JSON data embedded in application/json and applic
Html contains a vulnerability that allows attackers to denial of service (DoS) if an attacker provides specially crafted
EUVD-2025-210396
GHSA-754r-h5mg-r795
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB