# CVE-2025-25304: vega.js: Vega is a visualization grammar, a declarative format for creating, saving, and sharing interactive visualization des...

CVE-2025-25304 is fixed in vega.js on 1 platform, first by DEBIAN-CVE-2025-25304, released February 14, 2025. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2025-25304
- Priority: Routine
- CVSS: n/a
- EPSS: 0.0065
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Feb 14, 2025

## 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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | vega.js Debian 13.5 (trixie) | 5.28.0+ds+~cs5.3.0-1 | [DEBIAN-CVE-2025-25304](https://patchblox.com/security/data/fix/linux/debian-cve-2025-25304.md) | Feb 14, 2025 |
| Linux | vega.js Debian 14 | 5.28.0+ds+~cs5.3.0-1 | [DEBIAN-CVE-2025-25304](https://patchblox.com/security/data/fix/linux/debian-cve-2025-25304.md) | Feb 14, 2025 |

---

Data as of 2026-11-09T01:18:40Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
