Read the docs

Denial of service in Masterminds html5-php parse-error tracking

Priority LOW 34CWE-407Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · Low
Fix status
Fixed

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

Summary

Masterminds html5-php before 2.12.0 is affected. Its parse-error position tracking in Tokenizer::parseError uses an inefficient algorithm (CWE-407) that repeatedly rescans the full input buffer. A remote attacker can submit small HTML documents that consume seconds of CPU per document.

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 denial of service vulnerability that allows remote attackers to exhaust CPU through quadratic parse-error position tracking in Tokenizer::parseError. Attackers can submit small HTML documents with repeated '&;' sequences that trigger full-buffer rescans in Scanner::currentLine and Scanner::columnOffset, consuming seconds of CPU per document.

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
Yes
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 this 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-104166 Cross-site scripting in Masterminds html5-php xmlns attributesPriority LOW 27
    • TI-2026-104167 Cross-site scripting in Masterminds html5-php via UTF-8 byte removalPriority LOW 9

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-144957
  2. 2026-12-04 CISA SSVC decision points changed
  3. 2026-12-04 Alias added: GHSA-q235-vh3c-vxg7
  4. 2026-12-04 Affected versions changed · Red Hat
  5. 2026-12-04 CVSS score added · Red Hat

References

  • TI-2026-104166 Cross-site scripting in Masterminds html5-php xmlns attributes CVSS 4.0LOW 2.3
  • TI-2026-104167 Cross-site scripting in Masterminds html5-php via UTF-8 byte removal CVSS 4.0LOW 2.3

Sources