CVE-2025-15646 Details
Description
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.
A type confusion vulnerability has been identified in HTML::Gumbo versions prior to 0.19 for Perl. This vulnerability allows for the unintentional disclosure of heap memory. The issue arises because support for the <template> element was added to the Gumbo library in version 0.10.0, but the HTML::Gumbo Perl module was not updated to handle it correctly. As a result, <template> elements are misinterpreted as text nodes, leading to an out-of-bounds read of heap memory. When the parse() method is called with the default 'string' format or the 'tree' format on input containing a <template> element, the over-read bytes are serialized into the output, disclosing limited heap contents. The 'callback' format is not affected, as it encounters an error with the unhandled node type.
Users are advised to upgrade to HTML::Gumbo version 0.19 or later, which includes the necessary support for <template> elements and addresses the vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 1, 2026CISA-ADP
Assessed Jul 1, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://bugs.debian.org/1104789 | CPANSec | ExploitIssue TrackingTechnical DescriptionVendor |
| https://github.com/bestpractical/HTML-Gumbo/commit/15c0598909d4a64f47ef0a1abc5051f4e113c186.patch | CPANSec | Source CodeVendor |
| https://metacpan.org/release/BPS/HTML-Gumbo-0.19/changes | CPANSec | Release NotesVendor |
| http://www.openwall.com/lists/oss-security/2026/07/01/7 | CVE | AdvisoryMailing ListRemedy |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-125 | Out-of-bounds Read | CPANSec |
| CWE-843 | Access of Resource Using Incompatible Type ('Type Confusion') | CPANSec |
Affected Products
| Product | Versions |
|---|---|
| HTML::Gumbo | < 0.19 |
CPE
Remediation
| |
| Debian | All versions |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 6, 2026 | CVE Translated | [email protected] |
| Sep 30, 2026 | CVE Translated | [email protected] |
| Jul 1, 2026 | CVE Modified | CISA-ADP |
| Jul 1, 2026 | CVE Modified | CVE |
| Jul 1, 2026 | New CVE Received | CPANSec |
Volerion