CVE-2025-25304Vega allows Cross-site Scripting via the vlSelectionTuples function
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.
What to do
Fixed builds are available from Debian, npm: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | vega.js | Fix pending | UBUNTU-CVE-2025-25304 | |
| Ubuntu 26.04 | vega.js | Under investigation | UBUNTU-CVE-2025-25304 | |
| Ubuntu 25.10 | vega.js | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2025-25304 | |
| Ubuntu 24.04 | vega.js | Under investigation | UBUNTU-CVE-2025-25304 | |
| Debian 14 | vega.js | Fixed | 5.28.0+ds+~cs5.3.0-1 | DEBIAN-CVE-2025-25304 |
| Debian 13 | vega.js | Fixed | 5.28.0+ds+~cs5.3.0-1 | DEBIAN-CVE-2025-25304 |
| Debian 12 | vega.js | Fix pending | DEBIAN-CVE-2025-25304 | |
| npm library | vega | Fixed | 5.26.0 | GHSA-mp7w-mhcv-673j |
| npm library | vega-selections | Fixed | 5.4.2 | GHSA-mp7w-mhcv-673j |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- vega: affected: < 5.26.0
References
- https://github.com/vega/vega/security/advisories/GHSA-mp7w-mhcv-673j
- https://github.com/vega/vega/commit/9fb9ea07e27984394e463d286eb73944fa61411e
- https://github.com/vega/vega/blob/b45cf431cd6c0d0c0e1567f087f9b3b55bc236fa/packages/vega-selections/src/selectionTuples.js#L14
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.