{"id":"CVE-2026-133244","summary":"parse5-html-rewriting-stream 7.0.0 before 8.1.1 XSS via RewritingStream#emitText","details":"parse5-html-rewriting-stream 7.0.0 before 8.1.1 contains a cross-site scripting vulnerability in RewritingStream#emitText, which skips escaping based on a stale lastStartTagName. Attackers can place entity-encoded markup after a closed script or style element to bypass RewritingStream-based filters and execute script in users' browsers.","modified":"2026-11-19T17:00:40.950528797Z","published":"2026-11-19T15:52:13.673Z","database_specific":{"cna_assigner":"VulnCheck","cwe_ids":["CWE-79"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/133xxx/CVE-2026-133244.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/133xxx/CVE-2026-133244.json"},{"type":"PACKAGE","url":"https://github.com/inikulin/parse5"},{"type":"ARTICLE","url":"https://github.com/inikulin/parse5/blob/v8.1.0/packages/parse5-html-rewriting-stream/lib/index.ts#L137-L145"},{"type":"FIX","url":"https://github.com/inikulin/parse5/commit/e02abba4aa177b70a3a26cf90f6d62cd3ef8c44a"},{"type":"FIX","url":"https://github.com/inikulin/parse5/pull/1921"},{"type":"ADVISORY","url":"https://github.com/inikulin/parse5/releases/tag/v8.1.1"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-133244"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/parse5-html-rewriting-stream-7.0.0-before-8.1.1-xss-via-rewritingstream-emittext"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/inikulin/parse5","events":[{"introduced":"abec4c2be40f09dc4e3d0fd6a64eb10bbb24cca0"},{"fixed":"8eea616557e806822fea140df955f269fb0c51a1"},{"fixed":"e02abba4aa177b70a3a26cf90f6d62cd3ef8c44a"}],"database_specific":{"extracted_events":[{"strategy":"StandardRange","range":[{"introduced":"7.0.0"},{"fixed":"8.1.1"}],"source":"AFFECTED_FIELD"},{"original_tag":"v8.1.1","range":[{"fixed":"8eea616557e806822fea140df955f269fb0c51a1"}],"source":"REFERENCES_TAG"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"e02abba4aa177b70a3a26cf90f6d62cd3ef8c44a"}]}]}}],"versions":["v8.1.0","v8.0.1","v8.0.0","v7.3.0","v7.2.1","v7.2.0","v7.1.2","v7.1.0","v7.0.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-133244.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N"}]}