parse5-html-rewriting-stream 7.0.0 before 8.1.1 XSS via RewritingStream#emitText
- State
- Published
- Severity
- 5.3 Medium
- Published
- Nov 19, 2026
- Updated
- Nov 24, 2026
- Reserved
- Nov 19, 2026
Description
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.
| Product | Versions |
|---|---|
| parse5 inikulin | 7.0.0 to before 8.1.1 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 5.3 Medium | VulnCheck | |
| 3.1 | 6.1 Medium | VulnCheck |
Weaknesses
- CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
- parse5 v8.1.1 Release NotesRelease Notes
- https://github.com/inikulin/parse5/pull/1921Issue TrackerPatch
- https://github.com/inikulin/parse5/commit/e02abba4aa177b70a3a26cf90f6d62cd3ef8c44aPatch
- https://github.com/inikulin/parse5/blob/v8.1.0/packages/parse5-html-rewriting-stream/lib/index.ts#L137-L145Technical Details
- https://github.com/inikulin/parse5Product Page
- VulnCheck Advisory: parse5-html-rewriting-stream 7.0.0 before 8.1.1 XSS via RewritingStream#emitTextThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.