# CVE-2025-65110: Vega Cross-Site Scripting (XSS) via expression abusing vlSelectionTuples function array map calls in environments with satisfactory function gadgets in the global scope

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.1
- **CVSS:** 8.1 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.69% (percentile 48, 2026-11-26)
- **CWE:** CWE-79
- **Aliases:** GHSA-829q-m3qg-ph8r
- **Published:** 2026-01-05T21:22:35.941Z
- **Modified:** 2026-10-14T19:10:00.297Z

## Who should check

- Projects that depend on npm package vega-selections (\< 5.6.3)
- Anyone running vega \< 5.6.3; \>= 6.0.0, \< 6.1.2

## Description

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.

## Affected and fixed versions

- npm `vega-selections`: affected \< 5.6.3; fixed 5.6.3, 6.1.2 (osv)
- vega: \< 5.6.3; \>= 6.0.0, \< 6.1.2 (cvelist)

## Mitigation

- Upgrade vega-selections to one of 5.6.3, 6.1.2 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-65110. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-65110.md
Affected: vega-selections < 5.6.3
Fixed in: 5.6.3, 6.1.2

Steps:
1. Search this machine and project for vega-selections (npm), vega: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-65110 being exploited?

There is no confirmed exploitation: CVE-2025-65110 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.69% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-65110?

High: CVSS 8.1 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2025-65110?

vega-selections \< 5.6.3.

### Is there a fix for CVE-2025-65110?

Yes. Fixed in 5.6.3, 6.1.2. Upgrade vega-selections to one of 5.6.3, 6.1.2 (or later in the same release line).

### How do I check if I'm affected by CVE-2025-65110?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/vega/vega/security/advisories/GHSA-829q-m3qg-ph8r>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-65110>
- other: <https://github.com/vega/vega>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-65110>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-829q-m3qg-ph8r> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-65110> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-65110>
