{"id":"CVE-2026-144957","aliases":["EUVD-2026-144256","GHSA-q235-vh3c-vxg7"],"status":"published","title":"Masterminds html5-php before 2.12.0 CPU Exhaustion via Parse-Error Position Tracking","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 '\u0026;' sequences that trigger full-buffer rescans in Scanner::currentLine and Scanner::columnOffset, consuming seconds of CPU per document.","severity":{"version":"4.0","score":6.9,"vector":"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","level":"medium","assessor":"cna","from":"cve","others":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium","assessor":"cna","from":"cve"},{"version":"4.0","score":6.9,"vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"medium","from":"ghsa"}]},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-182","CWE-407","CWE-79"],"published":"2026-12-04T14:42:15.763Z","modified":"2026-12-04T16:46:24Z","products":[{"vendor":"masterminds","product":"html5-php"}],"references":[{"url":"https://github.com/Masterminds/html5-php/security/advisories/GHSA-pj59-fvjc-74pp","tags":["vendor-advisory","advisory"]},{"url":"https://github.com/Masterminds/html5-php/commit/c99252152ca8b1bdc821181d17a1f2c98e9fba1b","tags":["patch","fix"]},{"url":"https://github.com/Masterminds/html5-php/releases/tag/2.12.0","tags":["release-notes","advisory"]},{"url":"https://github.com/Masterminds/html5-php/blob/2.11.0/src/HTML5/Parser/Scanner.php#L241-L250","tags":["technical-description","article"]},{"url":"https://github.com/Masterminds/html5-php/blob/2.11.0/src/HTML5/Parser/Tokenizer.php#L1077-L1088","tags":["technical-description","article"]},{"url":"https://www.vulncheck.com/advisories/masterminds-html5-php-before-2.12.0-cpu-exhaustion-via-parse-error-position-tracking","tags":["third-party-advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-144957","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-q235-vh3c-vxg7"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/144xxx/CVE-2026-144957.json","tags":["advisory"]},{"url":"https://github.com/Masterminds/html5-php","tags":["package"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/144xxx/CVE-2026-144958.json","tags":["advisory"]},{"url":"https://github.com/Masterminds/html5-php/blob/2.11.0/src/HTML5/Serializer/OutputRules.php#L295-L306","tags":["article"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-144958","tags":["advisory"]},{"url":"https://www.vulncheck.com/advisories/masterminds-html5-php-before-2.12.0-xss-via-unescaped-xmlns-attribute-serialization","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/144xxx/CVE-2026-144959.json","tags":["advisory"]},{"url":"https://github.com/Masterminds/html5-php/blob/2.11.0/src/HTML5/Parser/UTF8Utils.php#L90-L105","tags":["article"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-144959","tags":["advisory"]},{"url":"https://www.vulncheck.com/advisories/masterminds-html5-php-before-2.12.0-filter-bypass-xss-via-invalid-utf-8-removal","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2026-144957","title":"Masterminds html5-php before 2.12.0 CPU Exhaustion via Parse-Error Position Tracking","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 '\u0026;' sequences that trigger full-buffer rescans in Scanner::currentLine and Scanner::columnOffset, consuming seconds of CPU per document.","status":"published","published":"2026-12-04T14:42:18.252Z","modified":"2026-12-04T15:04:27.647Z","cvss":[{"version":"4.0","score":6.9,"vector":"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","level":"medium","assessor":"cna"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium","assessor":"cna"}],"cwes":["CWE-407"],"ssvc":{"exploitation":"none","automatable":"yes","technical_impact":"partial","date":"2026-12-04"},"updated_at":"2026-12-04T15:06:27.843119Z"}],"euvd":[{"id":"EUVD-2026-144256","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 '\u0026;' sequences that trigger full-buffer rescans in Scanner::currentLine and Scanner::columnOffset, consuming seconds of CPU per document.","status":"published","published":"2026-12-04T14:42:18Z","modified":"2026-12-04T15:04:27Z","cvss":[{"version":"4.0","score":6.9,"vector":"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","level":"medium"}],"updated_at":"2026-12-04T18:41:49.532348Z"}],"ghsa":[{"id":"GHSA-q235-vh3c-vxg7","title":"Masterminds html5-php before 2.12.0 contains a denial of service vulnerability that allows remote...","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 '\u0026;' sequences that trigger full-buffer rescans in Scanner::currentLine and Scanner::columnOffset, consuming seconds of CPU per document.","status":"published","published":"2026-12-04T15:31:43Z","modified":"2026-12-04T15:31:52Z","cvss":[{"version":"4.0","score":6.9,"vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"medium"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium"}],"cwes":["CWE-407"],"updated_at":"2026-12-04T15:57:11.387566Z"}],"nvd":[{"id":"CVE-2026-144957","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 '\u0026;' sequences that trigger full-buffer rescans in Scanner::currentLine and Scanner::columnOffset, consuming seconds of CPU per document.","status":"published","published":"2026-12-04T15:17:34.78Z","modified":"2026-12-04T16:12:31.02Z","cvss":[{"version":"4.0","score":6.9,"vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"medium","assessor":"secondary"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium","assessor":"primary"}],"cwes":["CWE-407"],"ssvc":{"exploitation":"none","automatable":"yes","technical_impact":"partial","date":"2026-12-04"},"updated_at":"2026-12-04T15:25:18.511352Z"}],"osv":[{"id":"CVE-2026-144957","title":"Masterminds html5-php before 2.12.0 CPU Exhaustion via Parse-Error Position Tracking","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 '\u0026;' sequences that trigger full-buffer rescans in Scanner::currentLine and Scanner::columnOffset, consuming seconds of CPU per document.","status":"published","published":"2026-12-04T14:42:18.252Z","modified":"2026-12-04T16:46:24.77170843Z","cvss":[{"version":"4.0","score":6.9,"vector":"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","level":"medium"}],"cwes":["CWE-407"],"updated_at":"2026-12-04T16:47:54.354282Z"},{"id":"CVE-2026-144958","title":"Masterminds html5-php before 2.12.0 XSS via Unescaped xmlns Attribute Serialization","description":"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.","status":"published","published":"2026-12-04T14:42:17.056Z","modified":"2026-12-04T16:11:14.939886784Z","cvss":[{"version":"4.0","score":2.3,"vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N","level":"low"}],"cwes":["CWE-79"],"updated_at":"2026-12-04T16:47:54.354282Z"},{"id":"CVE-2026-144959","title":"Masterminds html5-php before 2.12.0 Filter Bypass XSS via Invalid UTF-8 Removal","description":"Masterminds html5-php before 2.12.0 contains a cross-site scripting vulnerability because UTF8Utils::convertToUTF8 deletes invalid UTF-8 bytes instead of replacing them with U+FFFD. Attackers can split tokens like \u003cscr\\xFFipt\u003e with bytes such as 0xFF to evade raw-byte tag filters and inject script elements into rendered output.","status":"published","published":"2026-12-04T14:42:15.763Z","modified":"2026-12-04T16:11:14.939886784Z","cvss":[{"version":"4.0","score":2.3,"vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N","level":"low"}],"cwes":["CWE-182"],"updated_at":"2026-12-04T16:47:54.354282Z"}]}}
