Skip to main content

Masterminds HTML5-PHP EUVDEUVD-2026-144254

| CVE-2026-144959 LOW
Collapse of Data into Unsafe Value (CWE-182)
2026-12-04 VulnCheck GHSA-465w-m6hr-c933
2.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft HTML with 0xFF-split script tag
  2. Delivery
    Submit through app's pre-parse byte filter
  3. Exploit
    Filter misses mangled `<scr\xFFipt>` token
  4. Execution
    html5-php deletes invalid byte, reforms `<script>`
  5. Persist
    Victim renders sanitized output
  6. Impact
    Injected JavaScript executes in browser

Vulnerability Assessment

Weakness
CWE
Exploitation Conditions

Exploitation requires a specific, non-default architecture: the application must (1) accept untrusted HTML, (2) rely on a RAW-BYTE / pre-parse tag filter (e.g. a regex blocking <script>) placed in FRONT of html5-php, and (3) render the parser's output to a victim. The advisory explicitly states that applications using post-parse DOM sanitizers are NOT affected, which is the primary factor limiting real-world impact. Additional limiting factors reflected in the CVSS vector: AC:H and AT:P indicate the attack depends on that particular upstream-filter configuration, and UI:P requires a victim to load the rendered output. If no such byte-level pre-filter exists, this issue is not exploitable as an XSS.

Impact

This is a low-severity filter-bypass XSS, and every available signal agrees it is low priority rather than a high-CVSS-but-overrated issue - the rare case where the signals do not conflict. The vendor CVSS 4.0 score is 2.3 (Low): AV:N but AC:H, AT:P and UI:P, with only Low confidentiality/integrity impacts and no availability impact. There is no CISA KEV listing and no EPSS score was supplied, so there is no evidence of active or probabilistic exploitation; the vuln.today Decision label is 'monitor', the lowest urgency tier, consistent with these signals. Exploitation status is best described as no public working exploit identified at time of analysis: the GHSA advisory and the VulnCheck advisory describe the technique concretely (splitting <scr\xFFipt> with byte 0xFF), but the input lists no PoC/exploit-code reference, so this should be treated as a documented technique rather than published weaponized code. The real limiting factor, confirmed by the advisory, is that this only matters when an application places a raw-byte tag filter in FRONT of the parser; post-parse DOM sanitizers are explicitly unaffected. The only notable cross-source wrinkle is the CWE: NVD assigns CWE-182 (Collapse of Data into Unsafe Value) while the GHSA assigns CWE-79/176/248/407 across its four bundled issues - this CVE corresponds specifically to the GHSA's issue #4, so the CWE-79 XSS framing is a downstream consequence of the CWE-182 byte-collapse root cause, not a contradiction.

Exploit ScenarioDerived

An application sanitizes untrusted HTML by running a raw-byte regex/string filter to strip <script> and similar tags before handing the markup to masterminds/html5-php for parsing and rendering. An attacker submits <scr\xFFipt>... ; the upstream byte filter does not match the mangled tag, but html5-php silently deletes the invalid 0xFF byte (instead of substituting U+FFFD) and reassembles a valid <script> element that executes when the output is rendered in a victim's browser. No public working exploit code is referenced in the input; the technique is described in the GHSA and VulnCheck advisories.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Dec 04, 2026

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.

RemediationAI

Vendor-released patch: 2.12.0. Upgrade masterminds/html5 to 2.12.0 or later via Composer (composer require masterminds/html5:^2.12.0) and refresh the lock file so nested dependencies also resolve to the fixed release; the fix is commit c99252152ca8b1bdc821181d17a1f2c98e9fba1b, which replaces invalid UTF-8 sequences with U+FFFD rather than deleting them, and details are in https://github.com/Masterminds/html5-php/security/advisories/GHSA-pj59-fvjc-74pp and https://github.com/Masterminds/html5-php/releases/tag/2.12.0. Where upgrading is not immediately possible, the exposure is conditional rather than universal: the advisory states that this issue defeats a raw-byte tag filter placed in front of the parser, while applications that sanitize by walking the parsed DOM are not affected, so the actionable interim step is to stop relying on pre-parse byte matching (regex or WAF rules such as blocking '<script>') as the only defense on HTML that will be fed to html5-php, and to enforce sanitization on the parsed DOM tree instead - trading the low cost of a regex for the need to keep an HTML-aware sanitizer in the pipeline. Note that the same 2.12.0 release also fixes the accompanying quadratic parse-error CPU cost, unescaped xmlns:* serialization and the xmlNamespaces TypeError, so a single upgrade closes all four issues; for denial-of-service concerns in the interim, the advisory suggests capping input size before parsing.

Affected VersionsENISA

html5-php 0 <2.12.0

Affected Packages

euvd html5_php fix: 2.12.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

HTML5-PHP is a pure-PHP HTML5 parser and serializer used to build DOM trees from untrusted markup; the flaw class is CWE-182 (collapsing of data elements), a normalization mismatch between the library and the HTML specification. UTF8Utils::convertToUTF8 uses mb_substitute_character('none'), which drops malformed byte sequences such as 0xFF, 0xC0 and 0xFE rather than replacing them with the U+FFFD replacement character the HTML spec requires; the parser therefore reassembles <scr\xFFipt> as <script>. The security consequence exists only at the boundary with an upstream byte-level filter: a regex or WAF rule scanning the raw request body for the literal '<script>' sees the obfuscated form and passes it through, after which html5-php emits a genuine script element. Post-parse DOM sanitizers operate on the already-normalized tree and are therefore unaffected. This is one of four defects published together in GHSA-pj59-fvjc-74pp (the others being quadratic parse-error bookkeeping in Scanner::currentLine/columnOffset, unescaped xmlns:* serialization in OutputRules, and an uncaught TypeError with xmlNamespaces=true); the single commit c99252152ca8b1bdc821181d17a1f2c98e9fba1b addresses all of them, changing mb_substitute_character('none') to mb_substitute_character(0xFFFD) in src/HTML5/Parser/UTF8Utils.php. The published CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:N/UI:P) matches the independent CVSS 3.1 assessment: AC:H and AT:P encode dependence on that specific upstream-filter deployment, UI:P/UI:R reflects that a victim must load the rendered output, and there is no authentication requirement.

Know when PHP gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 2.3 LOW
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
vuln.today AI 4.7 MEDIUM

AC:H because exploitation depends on a specific upstream raw-byte filter being present; UI:R as a victim must render output; S:C and C:L/I:L for stored/reflected XSS in the browser context.

3.1 AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

DescriptionCVE.org

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 <scr\xFFipt> with bytes such as 0xFF to evade raw-byte tag filters and inject script elements into rendered output.

Threat Intelligence Overview

Prevalence
Medium
popular PHP HTML5 parsing library, but not a universal dependency
Social Media
1
Sightings
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS N/A
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

12
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +12
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy