cvelo
P3 · MediumCVSS 4.7

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

  • CVE-2026-144959
  • EUVD-2026-144254

Summary

Masterminds html5-php versions before 2.12.0 contain a cross-site scripting flaw in UTF8Utils::convertToUTF8, which deletes invalid UTF-8 bytes rather than replacing them with U+FFFD. An attacker can insert bytes such as 0xFF inside a tag name, splitting a token like script so that raw-byte tag filters fail to recognize it, while the parser still reconstructs and injects a script element into rendered output. The record gives a CVSS score of 4.7 and states the issue is not on the CISA known exploited list. Engineers relying on html5-php to sanitize untrusted HTML should plan to upgrade to 2.12.0 or later.

AI summary · verify against the vendor advisory

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.

Text from the CVE.org record.

Recommendation

  • Masterminds html5-php

    • If you run a version before 2.12.0update to 2.12.0 or later

Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • Masterminds html5-php

    Affected versionsFixed in
    before 2.12.02.12.0

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.