CVE-2025-25304 Vega allows Cross-site Scripting via the vlSelectionTuples function
- 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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
- https://github.com/vega/vega/security/advisories/GHSA-mp7w-mhcv-673j vendor-advisory
- https://github.com/vega/vega/commit/9fb9ea07e27984394e463d286eb73944fa61411e patch
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/vega/vega/blob/b45cf431cd6c0d0c0e1567f087f9b3b55bc236fa/packages/vega-selections/src/selectionTuples.js#L14
- github.com
- Debian Security Tracker CVE-2025-25304 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- github.com product