CVE-2026-144957
Awaiting Analysis Awaiting Analysis - Queue

HTML5-PHP Denial of Service via Tokenizer Parse Error

Vulnerability report for CVE-2026-144957, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-12-04

Last updated on: 2026-12-04

Assigner: VulnCheck

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-12-04
Last Modified
2026-12-04
Generated
2026-12-04
AI Q&A
2026-12-04
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
Masterminds html5-php From 0 (inc) to 2.12.0 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-407 An algorithm in a product has an inefficient worst-case computational complexity that may be detrimental to system performance and can be triggered by an attacker, typically using crafted manipulations that ensure that the worst case is being reached.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2026-144957 is a denial-of-service vulnerability in the Masterminds html5-php library before version 2.12.0. It occurs due to inefficient CPU usage during parse-error position tracking in the Tokenizer::parseError function. Attackers can exploit this by submitting small HTML documents with repeated '&;' sequences, which trigger repeated full-buffer rescans in Scanner::currentLine and Scanner::columnOffset, consuming significant CPU time per document.

Detection Guidance

To detect this vulnerability, monitor CPU usage spikes when processing HTML content. Check if your system uses html5-php version 2.11.0 or earlier. Test with small HTML documents containing repeated '&;' sequences to observe CPU exhaustion.

Impact Analysis

This vulnerability can lead to denial-of-service conditions by consuming excessive CPU resources. Attackers can submit specially crafted HTML documents to slow down or crash systems running vulnerable versions of the html5-php library, potentially disrupting services that rely on HTML parsing.

Compliance Impact

This vulnerability primarily causes CPU exhaustion through inefficient parse-error handling, which could lead to denial-of-service conditions. While not directly violating GDPR or HIPAA, such disruptions may impact availability of systems processing personal or health data, potentially violating requirements for timely access or processing under these regulations.

Mitigation Strategies

Immediately upgrade to html5-php version 2.12.0 or later. If upgrading is not possible, limit input size before parsing, avoid re-serialization of untrusted markup, and disable the xmlNamespaces option on untrusted input.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-144957. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...