AploSec / Disclosures / CVE-2026-144958

Low 2.3ReportedFixed in 2.12.0CWE-79Packagist

Masterminds html5-php before 2.12.0 XSS via Unescaped xmlns Attribute Serialization

CVE-2026-144958 · published 2026-12-04

In plain words: this type of bug lets someone run scripts in another person's browser (cross-site scripting, XSS). A fixed release is listed.

Summary

CVE-2026-144958 affects html5-php (Packagist) < 2.12.0: XSS via Unescaped xmlns Attribute Serialization (CWE-79). Fixed in 2.12.0. CVSS 4.0 base score 2.3 (Low), assigned by VulnCheck. Published 2026-12-04 by VulnCheck. Credit: Zachariah Mithani (AploSec).

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.

Evidence

Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.

Remediation

Upgrade html5-php to 2.12.0 or later. Releases in the affected range (< 2.12.0) are vulnerable. See the linked advisory for details on affected release lines.

Timeline

  • 2026-12-04 CVE published

References

Severity
Low 2.3CVSS 4.0, scored by VulnCheck in the CVE record
Package
html5-php
Ecosystem
Packagist
Affected
< 2.12.0
Fixed
2.12.0
Weakness
CWE-79
CNA
VulnCheck
Credit
Zachariah Mithani (AploSec)finder