{"id":"CVE-2025-25304","published":"2025-02-14T19:28:00Z","modified":"2025-02-14T19:44:24Z","title":"Vega allows Cross-site Scripting via the vlSelectionTuples function","vendor":"vega","product":"vega","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00959,"percentile":0.60061,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/vega/vega/security/advisories/GHSA-mp7w-mhcv-673j","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/vega/vega/commit/9fb9ea07e27984394e463d286eb73944fa61411e","tags":["x_refsource_MISC"]},{"url":"https://github.com/vega/vega/blob/b45cf431cd6c0d0c0e1567f087f9b3b55bc236fa/packages/vega-selections/src/selectionTuples.js#L14","tags":["x_refsource_MISC"]}],"priority":{"score":16.8,"factors":[{"name":"EPSS percentile","points":12.01},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"vega","affectedVersions":[{"vendor":"vega","product":"vega","versions":["< 5.26.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2025-02-14T19:43:42.653932Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"vega","vulnerableRanges":["<5.26.0"],"patched":["5.26.0"],"from":["GHSA-mp7w-mhcv-673j"],"provenance":"source"},{"ecosystem":"npm","package":"vega-selections","vulnerableRanges":["<5.4.2"],"patched":["5.4.2"],"from":["GHSA-mp7w-mhcv-673j"],"provenance":"source"}],"summary":{"text":"The vlSelectionTuples function in the vega visualization grammar library (and the vega-selections package) allows attacker-controlled input to call JavaScript functions, including Function() with arbitrary code, resulting in cross-site scripting. An attacker can exploit this over the network with no privileges and no user interaction, provided the vulnerable library version is in use and processes attacker-supplied visualization specifications.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:31:05Z"},"euvd":{"id":"EUVD-2025-4108","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2020-26296","published":"2020-12-30","fixed":"5.17.3","kev":false},{"cve":"CVE-2023-26486","published":"2023-03-03","fixed":"5.23.0","kev":false},{"cve":"CVE-2023-26487","published":"2023-03-03","fixed":"5.23.0","kev":false,"link":{"from":"CVE-2023-26487","to":"CVE-2025-25304","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:vega","fromFixed":"5.23.0","toFixed":"5.26.0","daysApart":714}]}},{"cve":"CVE-2025-25304","published":"2025-02-14","fixed":"5.26.0","kev":false},{"cve":"CVE-2025-26619","published":"2025-03-27","fixed":"5.31.0","kev":false,"link":{"from":"CVE-2025-25304","to":"CVE-2025-26619","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:vega","fromFixed":"5.26.0","toFixed":"5.31.0","daysApart":41}]}},{"cve":"CVE-2025-27793","published":"2025-03-27","fixed":"5.32.0","kev":false},{"cve":"CVE-2025-59840","published":"2025-11-13","fixed":"6.2.0","kev":false}],"package":"npm:vega"}}