CVE-2026-133244
parse5-html-rewriting-stream 7.0.0 before 8.1.1 XSS via RewritingStream#emitText
Medium · 5.3Fix available
- CVSS
- 5.3
- EPSS
- 0.29% (p23)
- Published
- 2026-11-19
- Age
- 15d old
- Modified
- 2026-11-24
- Product
- inikulin parse5
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
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.
Fixed in
8.1.1
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| vendor | parse5 | >=7.0.0, <8.1.1 | 8.1.1 |
Sources
References
- https://github.com/inikulin/parse5/releases/tag/v8.1.1 release-notes
- https://github.com/inikulin/parse5/pull/1921 issue-tracking
- https://github.com/inikulin/parse5/commit/e02abba4aa177b70a3a26cf90f6d62cd3ef8c44a patch
- https://github.com/inikulin/parse5/blob/v8.1.0/packages/parse5-html-rewriting-stream/lib/index.ts#L137-L145 technical-description
- https://github.com/inikulin/parse5 product
- https://www.vulncheck.com/advisories/parse5-html-rewriting-stream-7.0.0-before-8.1.1-xss-via-rewritingstream-emittext third-party-advisory