CVE-2026-144959 PUBLISHED

Masterminds html5-php before 2.12.0 Filter Bypass XSS via Invalid UTF-8 Removal

Assigner: VulnCheck
Reserved: 04.12.2026 Published: 04.12.2026 Updated: 04.12.2026

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.

Metrics

CVSS Vector: 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
CVSS Score: 2.3

Product Status

Vendor Masterminds
Product html5-php
Versions Default: unaffected
  • affected from 0 to 2.12.0 (excl.)

Credits

  • Zachariah Mithani (AploSec) finder

References

Problem Types

  • Collapse of Data into Unsafe Value CWE