{"id":"CVE-2025-26619","aliases":["CVE-2025-26619","GHSA-rcw3-wmx7-cphr"],"related":[],"kind":"vulnerability","state":"published","title":"Vega Cross-Site Scripting (XSS) via event filter when not using CSP mode `expressionInterpeter`","summary":"Vega is a visualization grammar, a declarative format for creating, saving, and sharing interactive visualization designs. In `vega` 5.30.0 and lower and in `vega-functions` 5.15.0 and lower , it was possible to call JavaScript functions from the Vega expression language that were not meant to be supported. The issue is patched in `vega` `5.31.0`  and `vega-functions` `5.16.0`. Some workarounds are available. Run `vega` without `vega.expressionInterpreter`. This mode is not the default as it is slower. Alternatively, using the interpreter described in CSP safe mode (Content Security Policy) prevents arbitrary Javascript from running, so users of this mode are not affected by this vulnerability.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Vega is a visualization grammar, a declarative format for creating, saving, and sharing interactive visualization designs. In `vega` 5.30.0 and lower and in `vega-functions` 5.15.0 and lower , it was possible to call JavaScript functions from the Vega expression language that were not meant to be supported. The issue is patched in `vega` `5.31.0`  and `vega-functions` `5.16.0`. Some workarounds are available. Run `vega` without `vega.expressionInterpreter`. This mode is not the default as it is slower. Alternatively, using the interpreter described in CSP safe mode (Content Security Policy) prevents arbitrary Javascript from running, so users of this mode are not affected by this vulnerability.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nIn `vega` 5.30.0 and lower,  `vega-functions` 5.15.0 and lower , it was possible to call JavaScript functions from the Vega expression language that were not meant to be supported.\n\n### Patches\n\nPatched in `vega` `5.31.0`  / `vega-functions` `5.16.0`\n\n### Workarounds\n\n_Is there a way for users to fix or remediate the vulnerability without upgrading?_\n\n- Run `vega` without `vega.expressionInterpreter`. This mode is not the default as it is slower. \n- Using the interpreter [described in CSP safe mode](https://vega.github.io/vega/usage/interpreter/) (Content Security Policy) prevents arbitrary Javascript from running, so users of this mode are not affected by this vulnerability.\n\n### References\n\n- Reported to Vega-Lite by @kprevas Nov 8 2024 in https://github.com/vega/vega-lite/issues/9469 &  https://github.com/vega/vega/issues/3984\n\nReproduction of the error in Vega by @mattijn \n\n```\n{\n  \"$schema\": \"https://vega.github.io/schema/vega/v5.json\",\n  \"signals\": [\n    {\n      \"name\": \"inject_alert\",\n      \"on\": [\n        {\n          \"events\": [\n            {\n              \"type\": \"mousedown\",\n              \"marktype\": \"rect\",\n              \"filter\": [\"scale(event.view.setTimeout, 'alert(\\\"alert\\\")')\"]\n            }\n          ],\n          \"update\": \"datum\"\n        }\n      ]\n    }\n  ],\n  \"marks\": [\n    {\n      \"type\": \"rect\",\n      \"encode\": {\n        \"update\": {\n          \"x\": {\"value\": 0},\n          \"y\": {\"value\": 0},\n          \"width\": {\"value\": 100},\n          \"height\": {\"value\": 100}\n        }\n      }\n    }\n  ]\n}\n```","format":"markdown","source":"ghsa"},{"lang":"es","text":"Vega es una gramática de visualización, un formato declarativo para crear, guardar y compartir diseños de visualización interactivos. En `vega` 5.30.0 y anteriores, y en `vega-functions` 5.15.0 y anteriores, era posible llamar a funciones JavaScript desde el lenguaje de expresiones Vega que no estaban diseñadas para ser compatibles. El problema se ha corregido en `vega` 5.31.0` y `vega-functions` 5.16.0`. Hay algunos workarounds  disponibles. Ejecute `vega` sin `vega.expressionInterpreter`. Este modo no es el predeterminado, ya que es más lento. Como workaround, el uso del intérprete descrito en el modo seguro de CSP (Política de Seguridad de Contenido) impide la ejecución de JavaScript arbitrario, por lo que los usuarios de este modo no se ven afectados por esta vulnerabilidad.","source":"nvd"}],"published":"2025-03-27T13:51:38.442Z","modified":"2026-09-10T03:50:23.273Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS: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","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 5.31.0","status":"affected"}],"vendor":"vega","product":"vega","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"5.31.0"}],"ecosystem":"npm","package":"vega","purl":"pkg:npm/vega","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"5.16.0"}],"ecosystem":"npm","package":"vega-functions","purl":"pkg:npm/vega-functions","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"5.16.0"}],"vendor":"vega-functions_project","product":"vega-functions","cpe":"cpe:2.3:a:vega-functions_project:vega-functions:*:*:*:*:*:node.js:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"5.31.0"}],"vendor":"vega_project","product":"vega","cpe":"cpe:2.3:a:vega_project:vega:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/vega/vega/security/advisories/GHSA-rcw3-wmx7-cphr","tags":["exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/vega/vega-lite/issues/9469","tags":["issue-tracking","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/vega/vega/issues/3984","tags":["exploit","issue-tracking","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/vega/vega/commit/8fc129a6f8a11e96449c4ac0f63de0e5bfc7254c","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-26619","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/vega/vega","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2025-03-27T14:19:56.568Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-26619","url":"https://www.cve.org/CVERecord?id=CVE-2025-26619","licence":"CVE Terms of Use","modified":"2025-03-27T14:21:44.479Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-rcw3-wmx7-cphr","url":"https://github.com/advisories/GHSA-rcw3-wmx7-cphr","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:23.273Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-26619","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-26619","licence":"Public domain","modified":"2026-06-17T09:02:08.527Z"}],"updatedAt":"2026-11-25T22:58:55.601Z","epss":{"score":0.00354,"percentile":0.31121,"date":"2026-12-01T12:00:22.000Z"}}