Intel

AIKIDO-2026-10552

rhukster/dom-sanitizer is vulnerable to XML External Entity (XXE)

XML External Entity (XXE)GHSA-3446-6mgw-f79p Published Apr 24, 2026

75

High Risk

This Affects:

PHPrhukster/dom-sanitizer
1.0.0 - 1.0.10
Fixed in 1.0.11
Are you affected? Scan for Free

TL;DR

The sanitizer loads untrusted SVG, HTML, or MathML with loadDocument through loadXML or loadHTML. Before the change, the parser could process document types and entity declarations and resolve external entities where the platform allows it, which can lead to local file or network fetches and to entity expansion that exhausts memory. The update strips doctype and entity declaration syntax from the string before parsing, passes LIBXML_NONET so the load path cannot open remote DTDs or resources, and on older PHP runtime versions temporarily disables Libxml’s external entity loader around the parse.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

rhukster/dom-sanitizer is vulnerable to XML External Entity (XXE) in versions 1.0.0 - 1.0.10.

How to fix this

Upgrade the rhukster/dom-sanitizer library to the patch version.