Cross-site scripting in Masterminds html5-php xmlns attributes
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- High
- Attack requirements
- Present
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-79.
Summary
Masterminds html5-php before 2.12.0 writes xmlns:* namespace declaration values into double-quoted attributes without escaping, which enables cross-site scripting (CWE-79). A remote attacker who supplies HTML with a double quote in an xmlns:x value can bypass DOM-walking sanitizers and inject script into output re-serialized with saveHTML. The attack is rated high complexity and requires user interaction.
Written with Claude Haiku 5.5 from the sources below · 2026-12-04
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Masterminds | html5-php | before 2.12.0 | 2.12.0 | Patch available | CNA |
- html5-php VendorMasterminds Affected before 2.12.0 Fixed in 2.12.0 Patch available CNA
Remediation
Upgrade Masterminds html5-php to version 2.12.0 or later.
Written with Claude Haiku 5.5 from the sources below · 2026-12-04
- Fix · CNA html5-php (Masterminds) Fixed in 2.12.0
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Advisory ·
Masterminds html5-php — GitHub Security Advisory (GHSA-pj59-fvjc-74pp)
3 records Highest priority Priority LOW 3 LOW
Other records, highest priority first
- TI-2026-104165 Denial of service in Masterminds html5-php parse-error trackingPriority LOW 34
- TI-2026-104167 Cross-site scripting in Masterminds html5-php via UTF-8 byte removalPriority LOW 9
Timeline
- 2026-12-04 Threatist record created from CVE-2026-144958
- 2026-12-04 Alias added: GHSA-jr98-39q2-935f
References
More Masterminds vulnerabilities
- TI-2026-104165 Denial of service in Masterminds html5-php parse-error tracking CVSS 4.0MEDIUM 6.9
- TI-2026-104167 Cross-site scripting in Masterminds html5-php via UTF-8 byte removal CVSS 4.0LOW 2.3
Sources
- CVE-2026-144958 · CVE Program
- CVE-2026-144958 · NVD
- GHSA-jr98-39q2-935f · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences