Read the docs

Cross-site scripting in Masterminds html5-php via UTF-8 byte removal

Priority LOW 9CWE-182Published · Updated

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

Exploitation None reported CISA SSVC · not in CISA KEV
Fix Fixed html5-php (Masterminds): 2.12.0

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

VendorProductAffected versionsFixed inStatusSource
Mastermindshtml5-phpbefore 2.12.02.12.0Patch availableCNA
  • 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

Red Hat

Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat

Timeline

  1. 2026-12-04 Threatist record created from CVE-2026-144959
  2. 2026-12-04 Alias added: GHSA-465w-m6hr-c933
  3. 2026-12-04 CISA SSVC decision points changed
  4. 2026-12-04 Affected versions changed · Red Hat
  5. 2026-12-04 CVSS score added · Red Hat

References

  • 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