{
  "id": "CVE-2025-15646",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-15646",
  "published_at": "2026-07-01T14:38:03.727Z",
  "title": "HTML::Gumbo versions before 0.19 for Perl disclose heap memory via type confusion",
  "vendor": "BPS",
  "product": "HTML::Gumbo",
  "cvss": {
    "score": 9.8,
    "source": "cisa-adp",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "HTML::Gumbo versions before 0.19 for Perl disclose heap memory via type confusion.\n\nSupport for the \u003ctemplate\u003e 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.\n\nAny caller that runs parse() with the default format =\u003e 'string', or with format =\u003e 'tree', on input containing a \u003ctemplate\u003e element serializes the over-read bytes into the returned result, disclosing bounded heap contents. format =\u003e 'callback' reaches a croak on the unhandled node type and is unaffected.",
  "cwe": "CWE-843",
  "cvss_by_source": {
    "cisa-adp": 9.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "BPS",
        "product": "HTML::Gumbo",
        "ranges": [
          "\u003c 0.19"
        ],
        "fixed_in": [
          "0.19"
        ]
      }
    ],
    "solutions": [
      "Upgrade to HTML-Gumbo 0.19 or later, which adds GUMBO_NODE_TEMPLATE to the container node types handled by walk_tree."
    ],
    "upgrade": [
      "Upgrade HTML::Gumbo to 0.19 or later."
    ],
    "references": [
      {
        "kind": "Patch",
        "url": "https://github.com/bestpractical/HTML-Gumbo/commit/15c0598909d4a64f47ef0a1abc5051f4e113c186.patch"
      },
      {
        "kind": "Release notes",
        "url": "https://metacpan.org/release/BPS/HTML-Gumbo-0.19/changes"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
