CVE-2026-144959
DESCRIPTION
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.
CVSS
LOW 2.3 · v4.0
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:XWEAKNESSES
REFERENCES
- https://github.com/Masterminds/html5-php/blob/2.11.0/src/HTML5/Parser/UTF8Utils.php#L90-L105
- https://github.com/Masterminds/html5-php/commit/c99252152ca8b1bdc821181d17a1f2c98e9fba1b
- https://github.com/Masterminds/html5-php/releases/tag/2.12.0
- https://github.com/Masterminds/html5-php/security/advisories/GHSA-pj59-fvjc-74pp
- https://www.vulncheck.com/advisories/masterminds-html5-php-before-2.12.0-filter-bypass-xss-via-invalid-utf-8-removal
This record is mirrored from the NIST National Vulnerability Database and republished unchanged. It may have been revised or withdrawn since we last synced it; check the record at NVD before relying on it.