Skip to content

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

CriticalCVSS 9.3 EPSS 0.50%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: total
Technology
UbuntuDebian

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.

Upgrade path

9 packages: 3 fixed, 5 with no fix yet.

PackageAffectedFixed inStatus
debian/vega.js(Debian 12) = 5.22.1+ds+~3.1.0-4; = 5.25.0+ds+~cs5.3.0-1; = 5.25.0+ds+~cs5.3.0-2; = 5.25.0+ds+~cs5.3.0-3 +10 more No fix listed No fix yet
debian/vega.js(Debian 13) = 5.28.0+ds+~cs5.3.0-1; = 5.28.0+ds+~cs5.3.0-2; = 5.28.0+ds+~cs5.3.0-3; = 5.33.1+ds+~cs5.3.0-1 +4 more No fix listed No fix yet
ubuntu/vega.js(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/vega.js(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/vega.js(Ubuntu 26.10) All versions No fix listed No fix yet
debian/vega.js(Debian 14) < 5.33.1+ds+~cs5.3.0-4; = 5.28.0+ds+~cs5.3.0-1; = 5.28.0+ds+~cs5.3.0-2; = 5.28.0+ds+~cs5.3.0-3 +3 more 5.33.1+ds+~cs5.3.0-4 Fixed
npm vega-selections(npm) < 5.6.3; >= 6.0.0, < 6.1.2 5.6.3, 6.1.2 Fixed
vega project vega < 5.6.3; >= 6.0.0, < 6.1.2 5.6.3, 6.1.2 Fixed
vega = < 5.6.3; = >= 6.0.0, < 6.1.2 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
debian/vega.js(Debian:12) All versions No fix listed
debian/vega.js(Debian:12) = 5.22.1+ds+~3.1.0-4 No fix listed
debian/vega.js(Debian:12) = 5.25.0+ds+~cs5.3.0-1 No fix listed
debian/vega.js(Debian:12) = 5.25.0+ds+~cs5.3.0-2 No fix listed
debian/vega.js(Debian:12) = 5.25.0+ds+~cs5.3.0-3 No fix listed
debian/vega.js(Debian:12) = 5.25.0+ds+~cs5.3.0-4 No fix listed
debian/vega.js(Debian:12) = 5.25.0+ds+~cs5.3.0-5 No fix listed
debian/vega.js(Debian:12) = 5.28.0+ds+~cs5.3.0-1 No fix listed
debian/vega.js(Debian:12) = 5.28.0+ds+~cs5.3.0-2 No fix listed
debian/vega.js(Debian:12) = 5.28.0+ds+~cs5.3.0-3 No fix listed
debian/vega.js(Debian:12) = 5.33.1+ds+~cs5.3.0-1 No fix listed
debian/vega.js(Debian:12) = 5.33.1+ds+~cs5.3.0-2 No fix listed
debian/vega.js(Debian:12) = 5.33.1+ds+~cs5.3.0-3 No fix listed
debian/vega.js(Debian:12) = 5.33.1+ds+~cs5.3.0-4 No fix listed
debian/vega.js(Debian:13) All versions No fix listed
debian/vega.js(Debian:13) = 5.28.0+ds+~cs5.3.0-1 No fix listed
debian/vega.js(Debian:13) = 5.28.0+ds+~cs5.3.0-2 No fix listed
debian/vega.js(Debian:13) = 5.28.0+ds+~cs5.3.0-3 No fix listed
debian/vega.js(Debian:13) = 5.33.1+ds+~cs5.3.0-1 No fix listed
debian/vega.js(Debian:13) = 5.33.1+ds+~cs5.3.0-2 No fix listed
debian/vega.js(Debian:13) = 5.33.1+ds+~cs5.3.0-3 No fix listed
debian/vega.js(Debian:13) = 5.33.1+ds+~cs5.3.0-4 No fix listed
debian/vega.js(Debian:14) < 5.33.1+ds+~cs5.3.0-4 5.33.1+ds+~cs5.3.0-4
debian/vega.js(Debian:14) = 5.28.0+ds+~cs5.3.0-1 No fix listed
debian/vega.js(Debian:14) = 5.28.0+ds+~cs5.3.0-2 No fix listed
Show 13 more
ProductAffected versionsFixed in
debian/vega.js(Debian:14) = 5.28.0+ds+~cs5.3.0-3 No fix listed
debian/vega.js(Debian:14) = 5.33.1+ds+~cs5.3.0-1 No fix listed
debian/vega.js(Debian:14) = 5.33.1+ds+~cs5.3.0-2 No fix listed
debian/vega.js(Debian:14) = 5.33.1+ds+~cs5.3.0-3 No fix listed
npm vega-selections(npm) < 5.6.3 5.6.3
npm vega-selections(npm) >= 6.0.0, < 6.1.2 6.1.2
vega = < 5.6.3 No fix listed
vega = >= 6.0.0, < 6.1.2 No fix listed
ubuntu/vega.js(Ubuntu:24.04) All versions No fix listed
ubuntu/vega.js(Ubuntu:26.04) All versions No fix listed
ubuntu/vega.js(Ubuntu:26.10) All versions No fix listed
vega project vega < 5.6.3 5.6.3
vega project vega >= 6.0.0, < 6.1.2 6.1.2

References