Skip to main content

parse5-html-rewriting-stream EUVDEUVD-2026-130312

| CVE-2026-133244 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-11-19 VulnCheck GHSA-63qr-2ccq-g863
5.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit HTML with payload after closed script/style
  2. Exploit
    Stale lastStartTagName skips entity escaping
  3. Execution
    Malicious markup bypasses RewritingStream filter
  4. Impact
    Victim browser renders and executes injected script

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the target application use parse5-html-rewriting-stream's RewritingStream to process or filter attacker-influenced HTML, and that the attacker can inject entity-encoded markup positioned after a closed <script> or <style> element so the stale lastStartTagName causes emitText to omit escaping. It further requires a victim to load the rendered output (UI:P/R - passive user interaction), so it is not a server-side zero-click. Limiting factors: no impact on applications that do not route untrusted input through RewritingStream for filtering/sanitization; affected versions are 7.0.0 up to (not including) 8.1.1; updating to v8.1.1 removes the flaw.

Impact

This is a medium-severity DOM/stored XSS in a sanitization-adjacent library, and the signals are consistent rather than conflicting. The only CVSS provided is a 4.0 base vector (AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N, score 5.3) indicating a network-reachable, low-complexity, unauthenticated flaw that requires passive user interaction and yields limited confidentiality/integrity impact on both the vulnerable and a subsequent system (the victim's browser). The vuln.today decision label is 'this_month' (not act_now/emergency), which matches the picture: real but not an urgent crisis. It is NOT in CISA KEV, so there is no confirmed active exploitation; no EPSS score was supplied, and no PoC or exploit reference is present in the input (only patch commits and a vendor advisory), so exploitation status is 'no public exploit identified at time of analysis.' The practical severity hinges on a deployment precondition the raw score understates: the bug only matters where an application actually relies on RewritingStream to filter untrusted HTML, since the flaw is a filter-bypass. Where that pattern exists it is genuinely dangerous (attacker-controlled script in victim browsers); where it does not, impact is nil. No data is strongly conflicting, but note EPSS and any independent exploitability signal are MISSING.

Exploit ScenarioDerived

An application uses parse5-html-rewriting-stream to sanitize or rewrite user-supplied HTML (e.g., comments, profiles, messages). An attacker submits content containing entity-encoded markup placed after a closed <script> or <style> element; because RewritingStream#emitText skips escaping based on a stale lastStartTagName, the payload passes the filter unescaped and executes as script in another user's browser when the page is rendered. No confirmed public exploit code is identified in the provided sources.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 19, 2026

Cross-site scripting in parse5-html-rewriting-stream 7.0.0 through 8.1.0 lets attackers bypass RewritingStream-based HTML filters by placing entity-encoded markup immediately after a closed <script> or <style> element, so that emitText skips escaping based on a stale lastStartTagName and the injected markup reaches the victim's browser as executable script. The flaw is unauthenticated to deliver (CVSS:4.0 PR:N / assessed CVSS:3.1 AV:N/AC:L/PR:N) but requires passive user interaction, since a victim must load the page containing the rendered output; scope is changed with low confidentiality and integrity impact (5.3 medium). No public exploit code was identified at time of analysis and the issue is not in CISA KEV, but the vendor has released a fix in 8.1.1 and the priority signal is 'this_month'. Only applications that route attacker-influenced HTML through RewritingStream for filtering or sanitization are exposed.

RemediationAI

Vendor-released patch: parse5-html-rewriting-stream 8.1.1 (parse5 release v8.1.1, https://github.com/inikulin/parse5/releases/tag/v8.1.1), delivered via pull request https://github.com/inikulin/parse5/pull/1921 and commit e02abba4aa177b70a3a26cf90f6d62cd3ef8c44a; upgrade any dependency tree that resolves parse5-html-rewriting-stream to 7.0.0 through 8.1.0 and re-run the lockfile resolution so transitive copies are bumped too, since the vendor's own guidance is that everyone running parse5 on untrusted input should update. The v8.1.1 release is a broad security release containing nineteen fixes, so review it for other breaking or behavioural changes across the tokenizer, serializer, SAX parser, tree adapters and tree construction before rolling it out broadly. If the upgrade cannot be applied immediately, the exposure can be removed by not routing attacker-influenced HTML through RewritingStream as a security boundary: applications that only parse content, or that only rewrite trusted templates, are unaffected per the assessed preconditions, and any filter built on RewritingStream should be replaced with a dedicated HTML sanitizer or supplemented with server-side output encoding of the rewritten markup (trade-off: sanitizers may alter legitimate markup, and output encoding can double-encode content that was already escaped). A restrictive Content-Security-Policy that blocks inline script reduces the impact of a successful injection but does not fix the missing escaping and may break existing pages; the upstream patch remains the only complete fix. See the vendor advisory at https://www.vulncheck.com/advisories/parse5-html-rewriting-stream-7.0.0-before-8.1.1-xss-via-rewritingstream-emittext and the changelog at https://github.com/inikulin/parse5/releases/tag/v8.1.1 for details.

Affected VersionsENISA

parse5 7.0.0 <8.1.1

Affected Packages

euvd parse5 fix: 8.1.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

parse5 is a spec-compliant HTML parser and serializer for Node.js, and the parse5-html-rewriting-stream package in the same monorepo wraps the SAX tokenizer and serializer into a Transform-style stream that rewrites markup as it flows through. To stay byte-faithful to the HTML specification, serializers must know whether the current text node sits inside a raw-text element such as <script> or <style>, where character references are not decoded and markup is not escaped. RewritingStream#emitText tracked that state through a cached lastStartTagName field, and the cache went stale once a script or style element had been closed: text emitted after the closing tag was still treated as raw-text content and passed through without escaping. An attacker who can influence the HTML being rewritten therefore places entity-encoded markup after a closed </script> or </style>, the encoded payload survives the rewriter unescaped, and it is decoded and executed when a browser renders the output. The root cause is CWE-79 (improper neutralization of input during web page generation), specifically a parser-state/context-confusion error that turns a sanitization-adjacent library into an XSS vector. The vulnerable logic lived in packages/parse5-html-rewriting-stream/lib/index.ts around lines 137-145 at v8.1.0, and the trigger depends on the specific element-closing sequence described above; the vendor's v8.1.1 release bundles this fix alongside eighteen other security-relevant tokenizer, serializer, SAX parser, tree-adapter and tree-construction issues, noting that no CVEs or GitHub advisories could be filed because private vulnerability reporting on the repository is restricted to a maintainer the current team cannot reach.

Know when Parse5 gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 5.3 MEDIUM
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
vuln.today AI 6.1 MEDIUM

Network-delivered XSS needing no privileges but requiring a victim to view the page (UI:R); script crosses into the browser context (S:C) with limited C/I and no availability impact.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.3%
Top 78% exploitable
Prevalence
Medium
specific parse5 HTML-rewriting subpackage, narrower footprint than core parse5
Data Quality
3 sources
Confidence: Low

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy