CVE-2025-15646: HTML::Gumbo versions before 0.19 for Perl disclose heap memory via type confusion

Published Jul 1, 2026
·
Updated

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 walktree 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.

Affected Software

1 affected component
HTML::Gumbo<0.19

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade HTML::Gumbo (Perl) to a version that resolves this vulnerability.

    Fixed in 0.19Patch CVE-2025-15646

Event History

Jul 1, 2026
CVE Published
via MITRE·02:38 PM
Data Sourced
via MITRE·02:38 PM
RemedyDescriptionWeakness
Data Sourced
via NVD·04:16 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2025-15646?

CVE-2025-15646 has a severity rating of critical with a CVSS score of 9.8.

2

How do I fix CVE-2025-15646?

To mitigate CVE-2025-15646, upgrade HTML::Gumbo to version 0.19 or later.

3

What versions of HTML::Gumbo are affected by CVE-2025-15646?

HTML::Gumbo versions prior to 0.19 are vulnerable to CVE-2025-15646.

4

What type of vulnerability is CVE-2025-15646?

CVE-2025-15646 is a heap memory disclosure vulnerability caused by type confusion.

5

What impact does CVE-2025-15646 have on systems?

CVE-2025-15646 can lead to sensitive data exposure due to the improper handling of the <template> element.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203