Html5 Php
Monthly
Parsing attacker-supplied HTML with masterminds/html5-php 2.11.0 or earlier can burn seconds of CPU per small document, because every recorded parse error re-derives the line and column by rescanning the buffer from the start, making position bookkeeping quadratic in input length. The trigger is input that generates many parse errors per byte - repeated '&;' sequences being the documented example - and no configuration option disables the behavior, so default deployments that expose an HTML-parsing endpoint to untrusted input are exposed to unauthenticated remote attackers (CVSS 4.0 6.9, PR:N). Availability impact per request is bounded by PHP's max_execution_time, so meaningful denial of service depends on request volume; no public exploit code was identified at time of analysis, and the vendor shipped 2.12.0 with incremental line/column tracking.
Cross-site scripting in Masterminds html5-php through 2.11.0 allows an unauthenticated remote attacker to break out of an xmlns:* attribute during DOM re-serialization, but only inside a host application that parses untrusted markup, sanitizes it by walking DOMElement::attributes, and then re-serializes with saveHTML(). Because namespace declarations are not exposed in DOMElement::attributes, a crafted value such as xmlns:x='a"><img src=x onerror=alert(1)>' passes attribute-walking sanitizers and is emitted unescaped by OutputRules::namespaceAttrs, so the injected script executes when a victim later renders the saved output. The vendor fixed this in 2.12.0; no public exploit code was identified at time of analysis and the assessed priority is monitor, with the vulnerability inert in applications that do not re-serialize sanitized untrusted markup or that apply a final HTML-aware sanitizer pass after serialization.
Cross-site scripting in Masterminds HTML5-PHP up to and including 2.11.0 lets unauthenticated remote attackers slip script markup past byte-level tag filters, because UTF8Utils::convertToUTF8 deletes invalid UTF-8 sequences instead of substituting U+FFFD, so a token such as <scr\xFFipt> is silently collapsed into a real <script> element by the parser. Real-world exposure is narrow: the application must accept untrusted HTML, rely on a raw-byte pre-parse filter placed in front of the parser, and render the resulting markup to a victim, while applications that sanitize the DOM after parsing are explicitly unaffected. No public exploit identified at time of analysis, and the aggregated decision signals (vuln.today label 'monitor', low assessed severity) place this at low priority.
Parsing attacker-supplied HTML with masterminds/html5-php 2.11.0 or earlier can burn seconds of CPU per small document, because every recorded parse error re-derives the line and column by rescanning the buffer from the start, making position bookkeeping quadratic in input length. The trigger is input that generates many parse errors per byte - repeated '&;' sequences being the documented example - and no configuration option disables the behavior, so default deployments that expose an HTML-parsing endpoint to untrusted input are exposed to unauthenticated remote attackers (CVSS 4.0 6.9, PR:N). Availability impact per request is bounded by PHP's max_execution_time, so meaningful denial of service depends on request volume; no public exploit code was identified at time of analysis, and the vendor shipped 2.12.0 with incremental line/column tracking.
Cross-site scripting in Masterminds html5-php through 2.11.0 allows an unauthenticated remote attacker to break out of an xmlns:* attribute during DOM re-serialization, but only inside a host application that parses untrusted markup, sanitizes it by walking DOMElement::attributes, and then re-serializes with saveHTML(). Because namespace declarations are not exposed in DOMElement::attributes, a crafted value such as xmlns:x='a"><img src=x onerror=alert(1)>' passes attribute-walking sanitizers and is emitted unescaped by OutputRules::namespaceAttrs, so the injected script executes when a victim later renders the saved output. The vendor fixed this in 2.12.0; no public exploit code was identified at time of analysis and the assessed priority is monitor, with the vulnerability inert in applications that do not re-serialize sanitized untrusted markup or that apply a final HTML-aware sanitizer pass after serialization.
Cross-site scripting in Masterminds HTML5-PHP up to and including 2.11.0 lets unauthenticated remote attackers slip script markup past byte-level tag filters, because UTF8Utils::convertToUTF8 deletes invalid UTF-8 sequences instead of substituting U+FFFD, so a token such as <scr\xFFipt> is silently collapsed into a real <script> element by the parser. Real-world exposure is narrow: the application must accept untrusted HTML, rely on a raw-byte pre-parse filter placed in front of the parser, and render the resulting markup to a victim, while applications that sanitize the DOM after parsing are explicitly unaffected. No public exploit identified at time of analysis, and the aggregated decision signals (vuln.today label 'monitor', low assessed severity) place this at low priority.