CVE-2025-15646CWE-125CWE-843

CVE-2025-15646

Critical · published July 1, 2026

CVSS v3.1
9.8
EPSS
1%
Percentile
51.4
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00671 · 51.4th percentile
Weaknesses
CWE-125 · Out-of-bounds Read; CWE-843 · Access of Resource Using Incompatible Type ('Type Confusion')
Published
2026-07-01T20:16Z
References (4)
EPSS history
Timeline
  • 01 JUL 14:38Z
    HTML::Gumbo versions before 0.19 for Perl disclose heap memory via type confusion
    cvelistv5