Read the docs

Cross-site scripting in Masterminds html5-php xmlns attributes

Priority LOW 27CWE-79Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Passive
Attack complexity
High
Attack requirements
Present
Impact type
Cross-site scripting
Confidentiality · integrity · availability
Low · Low · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-79.

Summary

Masterminds html5-php before 2.12.0 writes xmlns:* namespace declaration values into double-quoted attributes without escaping, which enables cross-site scripting (CWE-79). A remote attacker who supplies HTML with a double quote in an xmlns:x value can bypass DOM-walking sanitizers and inject script into output re-serialized with saveHTML. The attack is rated high complexity and requires user interaction.

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 in OutputRules::namespaceAttrs, which writes xmlns:* namespace declaration values into double-quoted attributes without escaping. Attackers can supply HTML with an xmlns:x value containing a double quote to bypass DOM-walking sanitizers and inject script into output re-serialized with saveHTML.

Why it matters now

Fix Fixed html5-php (Masterminds): 2.12.0

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

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 or later.

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-104167 Cross-site scripting in Masterminds html5-php via UTF-8 byte removalPriority LOW 9

Timeline

  1. 2026-12-04 Threatist record created from CVE-2026-144958
  2. 2026-12-04 Alias added: GHSA-jr98-39q2-935f

References

  • TI-2026-104165 Denial of service in Masterminds html5-php parse-error tracking CVSS 4.0MEDIUM 6.9
  • TI-2026-104167 Cross-site scripting in Masterminds html5-php via UTF-8 byte removal CVSS 4.0LOW 2.3

Sources