{"id":"CVE-2026-144957","summary":"Masterminds html5-php before 2.12.0 CPU Exhaustion via Parse-Error Position Tracking","details":"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.","aliases":["CVE-2026-144958","CVE-2026-144959","GHSA-pj59-fvjc-74pp"],"modified":"2026-12-04T16:46:24.771708430Z","published":"2026-12-04T14:42:18.252Z","database_specific":{"cwe_ids":["CWE-407"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/144xxx/CVE-2026-144957.json","cna_assigner":"VulnCheck"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/144xxx/CVE-2026-144957.json"},{"type":"PACKAGE","url":"https://github.com/Masterminds/html5-php"},{"type":"ARTICLE","url":"https://github.com/Masterminds/html5-php/blob/2.11.0/src/HTML5/Parser/Scanner.php#L241-L250"},{"type":"ARTICLE","url":"https://github.com/Masterminds/html5-php/blob/2.11.0/src/HTML5/Parser/Tokenizer.php#L1077-L1088"},{"type":"FIX","url":"https://github.com/Masterminds/html5-php/commit/c99252152ca8b1bdc821181d17a1f2c98e9fba1b"},{"type":"ADVISORY","url":"https://github.com/Masterminds/html5-php/releases/tag/2.12.0"},{"type":"ADVISORY","url":"https://github.com/Masterminds/html5-php/security/advisories/GHSA-pj59-fvjc-74pp"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-144957"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/masterminds-html5-php-before-2.12.0-cpu-exhaustion-via-parse-error-position-tracking"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/masterminds/html5-php","events":[{"introduced":"0"},{"fixed":"15e16663bd6f512352209d0e3a789c0a691c0d9b"},{"fixed":"c99252152ca8b1bdc821181d17a1f2c98e9fba1b"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0"},{"fixed":"2.12.0"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"},{"range":[{"fixed":"c99252152ca8b1bdc821181d17a1f2c98e9fba1b"}],"source":"REFERENCES_COMMIT"},{"original_tag":"2.12.0","range":[{"fixed":"15e16663bd6f512352209d0e3a789c0a691c0d9b"}],"source":"REFERENCES_TAG"}]}}],"versions":["2.11.0","2.10.1","2.10.0","2.9.0","2.8.1","2.2.2","2.8.0","2.7.6","2.7.5","2.7.4","2.7.3","2.7.2","2.7.1","2.7.0","2.6.0","2.5.0","2.4.0","2.3.1","2.3.0","2.2.1","2.2.0","2.1.2","2.1.1","2.1.0","1.0.5","2.0.2","2.0.1","2.0.0","1.0.4","1.0.3","1.0.2","1.0.0","1.0.0-beta1","1.0.0-alpha2","1.0.0-alpha1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-144957.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N"}]}