CVE-2025-25304: Vega.js · Vega is a visualization grammar, a declarative format for creating, saving, and sharing
Affects vega.jsSource GCVE Database
Not known to be exploited · CVSS 6.9 Medium.
Data as of 24 Nov 2026, 21:15 UTC
- EPSS
- 0.6% chance of exploitation in 30 days – higher than 53% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 14 Feb 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10vega.jspkg:deb/ubuntu/vega.js?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSvega.jspkg:deb/ubuntu/vega.js?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 25.10vega.jspkg:deb/ubuntu/vega.js?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSvega.jspkg:deb/ubuntu/vega.js?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2025-25304 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2025-25304 (opens in a new tab)
- github.com/vega/vega/blob/b45cf431cd6c0d0c0e1567f087f9b3b55bc236fa/packages/vega-selections/src/selectionTuples.js (opens in a new tab)
- github.com/vega/vega/commit/9fb9ea07e27984394e463d286eb73944fa61411e (opens in a new tab)
- github.com/vega/vega/security/advisories/GHSA-mp7w-mhcv-673j (opens in a new tab)