CVE-2025-25304 Details
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.
A cross-site scripting vulnerability has been identified in Vega versions prior to 5.26.0 and in Vega-Selections versions prior to 5.4.2. The issue arises in the vlSelectionTuples function, which can be manipulated to execute arbitrary JavaScript. This is achieved by passing an attacker-controlled argument that is then used to call the Function constructor. The exploited JavaScript can be executed immediately or later through another vlSelectionTuples call or by coercing the result to a string or a number.
Users can upgrade to Vega version 5.26.0 and Vega-Selections version 5.4.2 to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Feb 14, 2025CISA-ADP
Assessed Feb 14, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/vega/vega/blob/b45cf431cd6c0d0c0e1567f087f9b3b55bc236fa/packages/vega-selections/src/selectionTuples.js#L14 | [email protected] | Source CodeVendor |
| https://github.com/vega/vega/commit/9fb9ea07e27984394e463d286eb73944fa61411e | [email protected] | Source CodeVendor |
| https://github.com/vega/vega/security/advisories/GHSA-mp7w-mhcv-673j | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Vega | < 5.26.0 (semver) |
CPE
Remediation
| |
| Vega Selections | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 14, 2025 | New CVE Received | [email protected] |
Volerion