Vega
CVE-2025-65110
CRITICAL
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDeliver malicious Vega JSON spec to victim
-
DeliveryVictim opens spec in vulnerable app
-
ExploitExpression abuses vlSelectionTuples to reach window gadget
-
ExecutionUser interaction (mousemove/click) triggers handler
-
PersistExecute arbitrary JS in app origin
-
ImpactSteal tokens or act as victim
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 BOTH specific conditions, not a default install: (1) the embedding application must attach the vega library and a vega.View instance to the global window object (or otherwise expose a satisfactory function gadget such as the VEGA_DEBUG global, as the Vega Editor historically did), AND (2) the application must accept Vega/Vega-Lite JSON definitions supplied by untrusted users rather than only from trusted source code. Even safe-mode expressionInterpreter does not block this. Limiting factors: the attack needs victim user interaction with the page (UI:R - e.g., mouse movement or click driving the spec's event handlers), and applications that never expose vega/vega.View on global scope are not affected. The fix lives in vega-selections (< 5.6.3, and >= 6.0.0 < 6.1.2); the documented workaround is to stop attaching vega or vega.View to global variables or window. |
| Impact | Signals conflict sharply, so this is a high-CVSS item that is a conditional rather than universal priority. The vendor CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N = 9.3 critical) reflects unauthenticated, network-delivered DOM XSS with a scope change into the application's origin and high confidentiality/integrity impact. However, EPSS is only 0.08% (23rd percentile) and the CVE is NOT in CISA KEV, indicating no observed widespread exploitation despite publicly available exploit code (a working PoC JSON spec is published in the GHSA advisory). The critical mismatch is that the vendor's AC:L does not reflect the two stacked preconditions in the description: the target application must attach both the vega library and a vega.View instance (or an equivalent function gadget such as the VEGA_DEBUG global) to window, AND must accept user-supplied Vega JSON - these are non-default integration choices, which argues for AC:H in practice. Exploitation also requires victim user interaction (UI:R), further limiting drive-by usability. Net: treat as a real but config-gated risk - a genuine priority only for deployments matching the Vega Editor pattern (vega/vega.View on the global window plus untrusted spec input); otherwise it is a high-severity flaw with low real-world exploitation probability. Authentication is confirmed unauthenticated from PR:N. |
| Exploit ScenarioDerived | An attacker crafts a malicious Vega JSON specification containing an expression that abuses the vlSelectionTuples function to borrow a function gadget (e.g., eval) exposed on the global window via VEGA_DEBUG, then lures a victim into loading and interacting with it in a vulnerable Vega-embedding application. When the victim moves the mouse or clicks as the spec's event handlers expect, arbitrary JavaScript runs in the application's origin, enabling theft of auth tokens or actions on the victim's behalf. A working proof-of-concept specification is publicly available in the GHSA-829q-m3qg-ph8r advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Oct 14, 2026
Arbitrary JavaScript execution (DOM-based XSS, potentially stored or reflected) in applications built on the Vega visualization library, fixed in the vega-selections package versions 5.6.3 (Vega v5) and 6.1.2 (Vega v6, ESM required). Exploitation is conditional rather than universal: the embedding application must both expose the vega library and a vega.View instance (or a similar function gadget such as the VEGA_DEBUG global) on the browser's global window object, and must accept Vega/Vega-Lite JSON definitions supplied by untrusted users; even safe-mode expressionInterpreter does not block the attack, and a public proof of concept is available. The vendor rates this 9.3 on CVSS 3.1 (AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N), while our independent assessment applies AC:H because of the two preconditions and notes that victim interaction with the page (for example a click or mousemove driving the malicious spec's signals) is required; EPSS is low at 0.08 percent (23rd percentile) and no confirmed active exploitation in CISA KEV was observed at time of analysis.
Earlier versions of this analysis (1)
Vega is a visualization grammar, a declarative format for creating, saving, and sharing interactive visualization designs. Prior to versions 6.1.2 and 5.6.3, applications meeting two conditions are at risk of arbitrary JavaScript code execution, even if "safe mode" expressionInterpreter is used. [CVSS 8.1 HIGH]
RemediationAI
Vendor-released patch: upgrade the vega-selections dependency to 5.6.3 for Vega v5 (no ESM required) or to 6.1.2 for Vega v6 (ESM required), and rebuild/redeploy so the fixed helper is bundled; the advisory is at https://github.com/vega/vega/security/advisories/GHSA-829q-m3qg-ph8r. Where upgrading immediately is not possible, apply the documented workaround of not attaching the vega library or any vega.View instance to global variables or to window, and delete any VEGA_DEBUG-style debugging globals from production builds - the trade-off is that Vega Editor-style renderer debugging and console introspection stop working, so this change should be made in a build variant reserved for production and verified against any internal tooling that relied on those globals. Because the issue additionally requires untrusted Vega/Vega-Lite JSON to reach the renderer, a second compensating control is to restrict or sanitize specification input so only trusted, server-authored specs are rendered, or to render untrusted specifications in a sandboxed, isolated origin (for example a separate iframe or subdomain) so that any executed script cannot reach the host application's authentication tokens or data; this reduces functionality for genuine user-authored visualization features and is a containment measure, not a substitute for the patch. Finally, since exploitation requires victim interaction such as clicks or mousemove events over the rendered chart, avoid rendering user-supplied specifications on pages that hold sensitive session material until the patch is deployed.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause class is CWE-79 (improper neutralization of input during web page generation), realized here as DOM-based cross-site scripting inside Vega's selection-tuple handling. Vega's expression evaluator normally runs in a restricted 'safe mode' expressionInterpreter that forbids arbitrary function calls, but member access on window-scoped objects exposed to expressions via event objects is still permitted. The flawed vlSelectionTuples path performs array map-like calls on an attacker-controlled object, so a crafted Vega JSON specification can supply a map value rebound to a real function lifted from the window (for example a CanvasHandler prototype method reachable through the VEGA_DEBUG global that the Vega Editor historically attaches for debugging) together with ancillary properties such as eventName, _handlers and _handlerIndex, causing the engine to invoke this.foo(this.bar) and thereby execute attacker-chosen JavaScript in the application's origin. The vulnerability therefore lives in the npm vega-selections helper consumed by the vega library rather than in the core grammar itself; CPE coverage in the supplied data is cpe:2.3:a:vega_project:vega:*:*:*:*:*:node.js:*:*, and the practical fix boundary is vega-selections < 5.6.3 and >= 6.0.0 < 6.1.2.
Know when Vega 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
AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
Network-delivered and unauthenticated (AV:N/PR:N) but AC:H because it depends on a non-default window gadget and untrusted-spec intake; UI:R and S:C for cross-origin JS execution; A:N as no availability impact.
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
6DescriptionNVD
Vega is a visualization grammar, a declarative format for creating, saving, and sharing interactive visualization designs. Prior to versions 6.1.2 and 5.6.3, applications meeting two conditions are at risk of arbitrary JavaScript code execution, even if "safe mode" expressionInterpreter is used. First, they use vega in an application that attaches both vega library and a vega.View instance similar to the Vega Editor to the global window, or has any other satisfactory function gadgets in the global scope. Second, they allow user-defined Vega JSON definitions (vs JSON that was is only provided through source code). This vulnerability allows for DOM XSS, potentially stored, potentially reflected, depending on how the library is being used. The vulnerability requires user interaction with the page to trigger. An attacker can exploit this issue by tricking a user into opening a malicious Vega specification. Successful exploitation allows the attacker to execute arbitrary JavaScript in the context of the application’s domain. This can lead to theft of sensitive information such as authentication tokens, manipulation of data displayed to the user, or execution of unauthorized actions on behalf of the victim. This exploit compromises confidentiality and integrity of impacted applications.Patched versions are available in vega-selections@6.1.2 (requires ESM) for Vega v6 and vega-selections@5.6.3 (no ESM needed) for Vega v5. As a workaround, do not attach vega or vega.View instances to global variables or the window as the editor used to do. This is a development-only debugging practice that should not be used in any situation where Vega/Vega-lite definitions can come from untrusted parties.
Executive ViewAI
CVE-2025-65110 affects the Vega visualization library's vega-selections component, enabling arbitrary JavaScript execution in the browser when applications expose specific Vega globals and accept untrusted chart specifications. The issue is unauthenticated but requires victim interaction and specific application preconditions, and publicly available exploit code exists. Leadership should prioritize remediation for customer-facing or internal dashboards that render untrusted Vega/Vega-Lite definitions, as exploitation could compromise user sessions or sensitive data.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Affected Products (CPE)NVD
Vega is a visualization grammar, a declarative format for creating, saving, and sharing interactive visualization design
Vega is a visualization grammar, a declarative format for creating, saving, and sharing interactive visualization design
Vega is a decentralized trading platform that allows pseudo-anonymous trading of derivatives on a blockchain. Rated medi
Vega is a visualization grammar, a declarative format for creating, saving, and sharing interactive visualization design
Vega is a visualization grammar, a declarative format for creating, saving, and sharing interactive visualization design
GHSA-829q-m3qg-ph8r
NVD
CVE.org
EPSS
Exploit-DB