Masterminds html5-php before 2.12.0 CPU Exhaustion via Parse-Error Position Tracking
- CVE-2026-144957
- EUVD-2026-144256
Summary
Masterminds html5-php versions before 2.12.0 are affected by a denial of service flaw in which remote attackers can exhaust CPU time. The problem lies in quadratic parse-error position tracking in Tokenizer::parseError, where the Scanner::currentLine and Scanner::columnOffset methods rescan the full input buffer. An attacker can submit a small HTML document containing repeated '&;' sequences to trigger these full-buffer rescans, consuming seconds of CPU per document. The record carries a CVSS score of 5.3, and it is not listed in the CISA known exploited vulnerabilities catalog. Engineers running html5-php should consider upgrading to version 2.12.0 or later.
AI summary · verify against the vendor advisory
Description
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.
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 versions Fixed in before 2.12.0 2.12.0
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.