Skip to content

CVE-2025-25304 Vega allows Cross-site Scripting via the vlSelectionTuples function

MediumCVSS 6.9 EPSS 0.68%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: partial
Technology
UbuntuDebian

Description

Vega is a visualization grammar, a declarative format for creating, saving, and sharing interactive visualization designs. Prior to version 5.26.0 of vega and 5.4.2 of vega-selections, the vlSelectionTuples function can be used to call JavaScript functions, leading to cross-site scripting.vlSelectionTuples calls multiple functions that can be controlled by an attacker, including one call with an attacker-controlled argument. This can be used to call Function() with arbitrary JavaScript and the resulting function can be called with vlSelectionTuples or using a type coercion to call toString or valueOf. Version 5.26.0 of vega and 5.4.2 of vega-selections fix this issue.

Upgrade path

9 packages: 4 fixed, 4 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
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 13) < 5.28.0+ds+~cs5.3.0-1 5.28.0+ds+~cs5.3.0-1 Fixed
debian/vega.js(Debian 14) < 5.28.0+ds+~cs5.3.0-1 5.28.0+ds+~cs5.3.0-1 Fixed
npm vega(npm) < 5.26.0 5.26.0 Fixed
npm vega-selections(npm) < 5.4.2 5.4.2 Fixed
vega = < 5.26.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
npm vega(npm) < 5.26.0 5.26.0
npm vega-selections(npm) < 5.4.2 5.4.2
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) < 5.28.0+ds+~cs5.3.0-1 5.28.0+ds+~cs5.3.0-1
debian/vega.js(Debian:14) < 5.28.0+ds+~cs5.3.0-1 5.28.0+ds+~cs5.3.0-1
vega = < 5.26.0 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

References