CVE-2025-15646
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.
- Score
- 9.8 critical
- Published
- 2026-07-01
- Links
- NVD · cve.org · Report wrong data
Matched ports (1)
| Port | Package | Version | Status | Maintainer |
|---|---|---|---|---|
| www/p5-HTML-Gumbo | p5-HTML-Gumbo | 0.18_1 | unaddressed | perl@FreeBSD.org |
Template for a VuXML entry
Check the version numbers before you commit this entry. Some ports share an entry in the CVE database with another port, such as sqlite2 and sqlite3. The version shown here may then be one that never existed for this port.
Ranges per package from the CVE rows that match this port, in pkg notation with the port's epoch and revision, every bound checked with pkg; one range per epoch the port actually had. make newentry in security/vuxml creates the vid.
www/p5-HTML-Gumbo (CPE matched by the package name) has no USES=cpe. The CVE was matched through a CPE from another source, so the package and the version range may belong to a different product. Check the CVE record before using this entry.
<vuln vid="FIXME (make newentry)">
<topic>p5-HTML-Gumbo -- FIXME</topic>
<affects>
<package>
<name>p5-HTML-Gumbo</name>
<range><lt>0.19</lt></range>
</package>
</affects>
<description>
<body xmlns="http://www.w3.org/1999/xhtml">
<p>CVE-2025-15646: 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.</p>
</body>
</description>
<references>
<cvename>CVE-2025-15646</cvename>
<url>https://nvd.nist.gov/vuln/detail/CVE-2025-15646</url>
</references>
<dates>
<discovery>2026-07-01</discovery>
<entry>2026-11-04</entry>
</dates>
</vuln>