Cross-site scripting in Masterminds html5-php via UTF-8 byte removal
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- High
- Attack requirements
- Present
- Impact type
- —
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA.
Summary
Masterminds html5-php before 2.12.0 contains a cross-site scripting flaw in UTF8Utils::convertToUTF8, which deletes invalid UTF-8 bytes instead of replacing them with U+FFFD (CWE-182). A remote attacker without privileges can split tags with bytes such as 0xFF to evade raw-byte tag filters and inject script elements into rendered output.
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 because UTF8Utils::convertToUTF8 deletes invalid UTF-8 bytes instead of replacing them with U+FFFD. Attackers can split tokens like <scr\xFFipt> with bytes such as 0xFF to evade raw-byte tag filters and inject script elements into rendered output.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
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, which fixes the flaw.
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-104166 Cross-site scripting in Masterminds html5-php xmlns attributesPriority LOW 27
Vendor assessments
Timeline
- 2026-12-04 Threatist record created from CVE-2026-144959
- 2026-12-04 Alias added: GHSA-465w-m6hr-c933
- 2026-12-04 CISA SSVC decision points changed
- 2026-12-04 Affected versions changed · Red Hat
- 2026-12-04 CVSS score added · Red Hat
References
More Masterminds vulnerabilities
- TI-2026-104165 Denial of service in Masterminds html5-php parse-error tracking CVSS 4.0MEDIUM 6.9
- TI-2026-104166 Cross-site scripting in Masterminds html5-php xmlns attributes CVSS 4.0LOW 2.3
Sources
- CVE-2026-144959 · CVE Program
- CVE-2026-144959 · NVD
- GHSA-465w-m6hr-c933 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-144959 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences