GHSA-jr98-39q2-935fLowCVSS 4.7
Masterminds html5-php before 2.12.0 contains a cross-site scripting vulnerability in OutputRules:...
🔗 CVE IDs covered (1)
📋 Description
Masterminds html5-php before 2.12.0 contains a cross-site scripting vulnerability in OutputRules::namespaceAttrs, which writes xmlns:* namespace declaration values into double-quoted attributes without escaping. Attackers can supply HTML with an xmlns:x value containing a double quote to bypass DOM-walking sanitizers and inject script into output re-serialized with saveHTML.
🔗 References (7)
- https://github.com/Masterminds/html5-php/security/advisories/GHSA-pj59-fvjc-74pp
- https://nvd.nist.gov/vuln/detail/CVE-2026-144958
- https://github.com/Masterminds/html5-php/commit/c99252152ca8b1bdc821181d17a1f2c98e9fba1b
- https://github.com/Masterminds/html5-php/blob/2.11.0/src/HTML5/Serializer/OutputRules.php#L295-L306
- https://github.com/Masterminds/html5-php/releases/tag/2.12.0
- https://www.vulncheck.com/advisories/masterminds-html5-php-before-2.12.0-xss-via-unescaped-xmlns-attribute-serialization
- https://github.com/advisories/GHSA-jr98-39q2-935f