CVE-2026-144958
Masterminds html5- php before 2. 12. 0 XSS via Unescaped xmlns Attribute Serialization
- Severity
- 2.3LowNetwork attack, no privileges, needs user interactionCVSS 4.0, CVE List
- Exploitation
- UnknownNo source reports exploitation yet.
- Exploit chance
- UnknownNo source reports an EPSS score yet.
- Listed fix
- None listedNo source lists a fixed version in its version data.Check the description and references.
Overview
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.
CVSS 4.0 vector
Exploitability
- Attack vector
- Network
- Complexity
- High
- Attack requirements
- Present
- Privileges needed
- None
- User interaction
- Passive
Impact on the vulnerable system
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
Impact on subsequent systems
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:NAffected
Products 1
Sources
CVE List Score usedCVSS 4.02.3
Masterminds html5-php before 2.12.0 XSS via Unescaped xmlns Attribute Serialization
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.
- Record
CVE-2026-144958- CVSS 4.0
- 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 - CVSS 3.1
- 4.7 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N - Weakness
- CWE-79
- Updated
- 2026-12-04
EUVDEUVD-2026-144255CVSS 4.02.3
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.
- Record
EUVD-2026-144255- CVSS 4.0
- 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 - Updated
- 2026-12-04
GitHub AdvisoriesGHSA-jr98-39q2-935fCVSS 4.02.3
Masterminds html5-php before 2.12.0 contains a cross-site scripting vulnerability in OutputRules:...
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.
- Record
GHSA-jr98-39q2-935f- CVSS 4.0
- 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/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 - CVSS 3.1
- 4.7 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N - Weakness
- CWE-79
- Updated
- 2026-12-04
NVDCVSS 4.02.3
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.
- Record
CVE-2026-144958- CVSS 4.0
- 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/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 - CVSS 3.1
- 4.7 Medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N - Weakness
- CWE-79
- Updated
- 2026-12-04
OSVCVE-2026-144957CVSS 4.06.9
Masterminds html5-php before 2.12.0 CPU Exhaustion via Parse-Error Position Tracking
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.
- Record
CVE-2026-144957- CVSS 4.0
- 6.9 Medium
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 - Weakness
- CWE-407
- Updated
- 2026-12-04
OSVCVSS 4.02.3
Masterminds html5-php before 2.12.0 XSS via Unescaped xmlns Attribute Serialization
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.
- Record
CVE-2026-144958- CVSS 4.0
- 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 - Weakness
- CWE-79
- Updated
- 2026-12-04
OSVCVE-2026-144959CVSS 4.02.3
Masterminds html5-php before 2.12.0 Filter Bypass XSS via Invalid UTF-8 Removal
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.
- Record
CVE-2026-144959- CVSS 4.0
- 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 - Weakness
- CWE-182
- Updated
- 2026-12-04
History
Recorded by Every CVE
| Day | Changed | Sources |
|---|---|---|
| Weaknesses, published date, references | OSV | |
| Other IDs, published date | EUVD | |
| References | OSV | |
| Other IDs, references, severity | GitHub Advisories | |
| Severity | NVD | |
| First indexed | CVE List |
Upstream dates may differ.
References
github.com/Masterminds/html5-php/security/advisories/GHSA-pj59-fvjc-74pp
github.com/Masterminds/html5-php/commit/c99252152ca8b1bdc821181d17a1f2c98e9fba1b
github.com/Masterminds/html5-php/releases/tag/2.12.0
github.com/Masterminds/html5-php/blob/2.11.0/src/HTML5/Serializer/OutputRules.php
vulncheck.com/advisories/masterminds-html5-php-before-2.12.0-xss-via-unescaped-xmlns-attribute-serialization
nvd.nist.gov/vuln/detail/CVE-2026-144958
github.com/advisories/GHSA-jr98-39q2-935f
github.com/CVEProject/cvelistV5/tree/main/cves/2026/144xxx/CVE-2026-144957.json
Show 10 more referencesShow less
github.com/Masterminds/html5-php
github.com/Masterminds/html5-php/blob/2.11.0/src/HTML5/Parser/Scanner.php
github.com/Masterminds/html5-php/blob/2.11.0/src/HTML5/Parser/Tokenizer.php
nvd.nist.gov/vuln/detail/CVE-2026-144957
vulncheck.com/advisories/masterminds-html5-php-before-2.12.0-cpu-exhaustion-via-parse-error-position-tracking
github.com/CVEProject/cvelistV5/tree/main/cves/2026/144xxx/CVE-2026-144958.json
github.com/CVEProject/cvelistV5/tree/main/cves/2026/144xxx/CVE-2026-144959.json
github.com/Masterminds/html5-php/blob/2.11.0/src/HTML5/Parser/UTF8Utils.php
nvd.nist.gov/vuln/detail/CVE-2026-144959
vulncheck.com/advisories/masterminds-html5-php-before-2.12.0-filter-bypass-xss-via-invalid-utf-8-removal