GHSA-q235-vh3c-vxg7MediumCVSS 5.3
Masterminds html5-php before 2.12.0 contains a denial of service vulnerability that allows remote...
🔗 CVE IDs covered (1)
📋 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.
🔗 References (8)
- https://github.com/Masterminds/html5-php/security/advisories/GHSA-pj59-fvjc-74pp
- https://nvd.nist.gov/vuln/detail/CVE-2026-144957
- https://github.com/Masterminds/html5-php/commit/c99252152ca8b1bdc821181d17a1f2c98e9fba1b
- https://github.com/Masterminds/html5-php/blob/2.11.0/src/HTML5/Parser/Scanner.php#L241-L250
- https://github.com/Masterminds/html5-php/blob/2.11.0/src/HTML5/Parser/Tokenizer.php#L1077-L1088
- https://github.com/Masterminds/html5-php/releases/tag/2.12.0
- https://www.vulncheck.com/advisories/masterminds-html5-php-before-2.12.0-cpu-exhaustion-via-parse-error-position-tracking
- https://github.com/advisories/GHSA-q235-vh3c-vxg7