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.
{
"cna_assigner": "VulnCheck",
"cwe_ids": [
"CWE-79"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/144xxx/CVE-2026-144958.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "2.12.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"fixed": "c99252152ca8b1bdc821181d17a1f2c98e9fba1b"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "2.12.0",
"range": [
{
"fixed": "15e16663bd6f512352209d0e3a789c0a691c0d9b"
}
],
"source": "REFERENCES_TAG"
}
]
}