CVE-2026-144958
LOW 2.3CVSS 4.0Masterminds html5-php before 2.12.0 XSS via Unescaped xmlns Attribute Serialization
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.
- Published
- 4 Dec 2026
- Last modified
- 4 Dec 2026
- Assigned by
- disclosure@vulncheck.com
- NVD status
- Awaiting Analysis
- Weakness
- CWE-79
- Sources
- NVDJSONCVE ListJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 4.0 | LOW 2.3 | CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| CVE List | VulnCheck | CVSS 4.0 | LOW 2.3 | CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N |
| NVD | disclosure@vulncheck.com (Primary) | CVSS 3.1 | MEDIUM 4.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N |
| CVE List | VulnCheck | CVSS 3.1 | MEDIUM 4.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| CVE List | Masterminds | html5-php | < 2.12.0 | 2.12.0 |
References
- https://github.com/Masterminds/html5-php/blob/2.11.0/src/HTML5/Serializer/OutputRules.php#L295-L306 · technical-description
- https://github.com/Masterminds/html5-php/commit/c99252152ca8b1bdc821181d17a1f2c98e9fba1b · patch
- https://github.com/Masterminds/html5-php/releases/tag/2.12.0 · release-notes
- https://github.com/Masterminds/html5-php/security/advisories/GHSA-pj59-fvjc-74pp · vendor-advisory
- https://www.vulncheck.com/advisories/masterminds-html5-php-before-2.12.0-xss-via-unescaped-xmlns-attribute-serialization · third-party-advisory
History
- 4 Dec 2026 17:09 UTC · NVD: first stored (published 4 Dec 2026)
- 4 Dec 2026 15:09 UTC · CVE List: first stored (published 4 Dec 2026)