{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2025-25304","published":"2025-02-14T20:15:36.903000Z","last_modified":"2026-06-17T09:00:39.130000Z","status":"Deferred","cvss":{"version":"4.0","score":6.9,"severity":"MEDIUM","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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","source":"security-advisories@github.com","primary":false},"auth":false,"cwes":["CWE-79"],"cpes":[],"cpes_truncated":false,"vendors":["vega"],"products":["vega/vega"],"ssvc":{"exploitation":"poc","automatable":"yes","technical_impact":"partial"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-mp7w-mhcv-673j","ecosystem":"npm","name":"vega","purl":"pkg:npm/vega","ranges":[{"introduced":"0","fixed":"5.26.0"}],"versions":[],"versions_truncated":false},{"advisory":"GHSA-mp7w-mhcv-673j","ecosystem":"npm","name":"vega-selections","purl":"pkg:npm/vega-selections","ranges":[{"introduced":"0","fixed":"5.4.2"}],"versions":[],"versions_truncated":false}],"severity":"medium","priority_score":56,"links":{"html_es":"/es/cve/CVE-2025-25304/","html_en":"/en/cve/CVE-2025-25304/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2025-25304","cve_org":"https://www.cve.org/CVERecord?id=CVE-2025-25304"},"untrusted":{"vendor_name":"vega","product_name":"vega","desc_en":"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.","affected":[{"untrusted_vendor":"vega","untrusted_product":"vega","versions":[]}],"references":[{"url":"https://github.com/vega/vega/blob/b45cf431cd6c0d0c0e1567f087f9b3b55bc236fa/packages/vega-selections/src/selectionTuples.js#L14","tags":[]},{"url":"https://github.com/vega/vega/commit/9fb9ea07e27984394e463d286eb73944fa61411e","tags":[]},{"url":"https://github.com/vega/vega/security/advisories/GHSA-mp7w-mhcv-673j","tags":[]}]}}