Skip to main content

Vega CVE-2025-65110

CRITICAL
Cross-site Scripting (XSS) (CWE-79)
2026-01-05 security-advisories@github.com GHSA-829q-m3qg-ph8r
9.3
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Deliver malicious Vega JSON spec to victim
  2. Delivery
    Victim opens spec in vulnerable app
  3. Exploit
    Expression abuses vlSelectionTuples to reach window gadget
  4. Execution
    User interaction (mousemove/click) triggers handler
  5. Persist
    Execute arbitrary JS in app origin
  6. Impact
    Steal 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv2 – 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)
v1 Mar 12, 2026 - 21:54 CVSS 8.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

npm vega-selections fix: 5.6.3, 6.1.2

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

NVD PRIMARY 9.3 CRITICAL
AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
vuln.today AI 8.0 HIGH

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.

3.1 AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N
4.0 AV:N/AC:H/AT:N/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Red Hat 8.1 HIGH

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
None

Lifecycle Timeline

6
Analysis Updated
Oct 14, 2026 - 22:28 vuln.today
v2 - CVSS changed
Severity Changed
Oct 14, 2026 - 19:23 NVD
HIGH CRITICAL
CVSS changed
Oct 14, 2026 - 19:23 NVD
8.1 (HIGH) 9.3 (CRITICAL)
Patch released
Mar 31, 2026 - 21:13 nvd
Patch available
PoC Detected
Jan 30, 2026 - 01:16 vuln.today
Public exploit code
CVE Published
Jan 05, 2026 - 22:15 nvd
HIGH 8.1

DescriptionNVD

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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 77% exploitable
Prevalence
Medium
popular JS visualization library, but vulnerable window-gadget integration is non-default
Exploit
POC
Public exploit code exists
Data Quality
5 sources
Confidence: Medium

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 CRITICAL
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity + public POC available
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
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

66
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: +20
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.

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

cpe:2.3:a:vega_project:vega:*:*:*:*:*:node.js:*:*
cpe:2.3:a:vega_project:vega:*:*:*:*:*:node.js:*:*

Vendor StatusVendor

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