{"id":"CVE-2026-142223","summary":"AngleSharp before 1.8.6 Mutation XSS via HtmlMarkupFormatter Attribute Serialization","details":"AngleSharp before 1.8.6 contains a mutation cross-site scripting vulnerability in HtmlMarkupFormatter.WriteAttributeValue, which writes less-than and greater-than characters unescaped in serialized attribute values. Attackers can embed \u003c/noscript\u003e followed by an img element with an onerror handler in a noscript child attribute, executing script when browsers parse the re-serialized output.","modified":"2026-12-02T18:00:49.208322281Z","published":"2026-12-02T16:50:22.038Z","database_specific":{"cwe_ids":["CWE-79"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142223.json","cna_assigner":"VulnCheck"},"references":[{"type":"PACKAGE","url":"https://github.com/AngleSharp/AngleSharp"},{"type":"ARTICLE","url":"https://github.com/AngleSharp/AngleSharp/blob/v1.8.5/src/AngleSharp/Html/HtmlMarkupFormatter.cs#L130-L144"},{"type":"FIX","url":"https://github.com/AngleSharp/AngleSharp/commit/86d09cdc7fa45f8739fc5892bbca4c1a04be6dae"},{"type":"ADVISORY","url":"https://github.com/AngleSharp/AngleSharp/releases/tag/v1.8.6"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142223.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142223"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/anglesharp-before-1.8.6-mutation-xss-via-htmlmarkupformatter-attribute-serialization"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/anglesharp/anglesharp","events":[{"introduced":"0"},{"fixed":"9253950e551f9ed95294f775675de9aa249894a2"},{"fixed":"86d09cdc7fa45f8739fc5892bbca4c1a04be6dae"}],"database_specific":{"extracted_events":[{"strategy":"StandardRange","range":[{"introduced":"0"},{"fixed":"1.8.6"}],"source":"AFFECTED_FIELD"},{"range":[{"fixed":"86d09cdc7fa45f8739fc5892bbca4c1a04be6dae"}],"source":"REFERENCES_COMMIT"},{"range":[{"fixed":"9253950e551f9ed95294f775675de9aa249894a2"}],"source":"REFERENCES_TAG","original_tag":"v1.8.6"}]}}],"versions":["v1.8.5","v1.8.4","v1.8.3","v1.8.2","v1.8.1","v1.8.0","v1.7.3","v1.7.2","v1.7.1","1.7.0","1.7.0-beta.585","1.6.0","1.5.2-beta.548","1.5.2-beta.547","1.5.2","1.6.0-beta.569","1.6.0-beta.568","1.5.3-beta.553","1.5.1-beta.545","1.5.1-beta.543","1.5.1-beta.542","1.5.0-beta.526","1.5.0","1.4.1-beta.525","1.4.1-beta.508","v1.4.0","1.4.0-beta.496","1.4.0-beta.493","1.3.1","1.2.0","1.1.2","1.1.0","1.0.7","v1.0.6","v1.0.5","v1.0.4","1.0.4-alpha-289","1.0.3","v1.0.2","v1.0.1","1.0.0-alpha-229","v0.17.1","v0.17.0","v0.16.0","v0.12.0","v0.11.0","v0.10.1","v0.10.0","v0.9.9","v0.9.8.1","v0.9.8","v0.9.7","v0.9","v0.8","v0.7","v0.6","v0.5","v0.4","v0.3","v0.2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142223.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}