Vulnerability · Published Mar 27, 2025 · Assigned by GitHub_M

CVE-2025-26619Vega Cross-Site Scripting (XSS) via event filter when not using CSP mode `expressionInterpeter`

Medium 5.3

In plain English

A medium-severity cross-site scripting in vega from vega. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 29% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)5.3Medium
Exploit odds (30 days)0.4%top 70.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12vega.jsno fix listedDEBIAN-CVE-2025-26619
Debian:13vega.jsno fix listedDEBIAN-CVE-2025-26619
Debian:14vega.js5.33.1+ds+~cs5.3.0-1DEBIAN-CVE-2025-26619
Ubuntu:24.04:LTSvega.jsno fix listedUBUNTU-CVE-2025-26619
Ubuntu:25.10vega.jsno fix listedUBUNTU-CVE-2025-26619
Ubuntu:26.04:LTSvega.jsno fix listedUBUNTU-CVE-2025-26619
Ubuntu:26.10vega.jsno fix listedUBUNTU-CVE-2025-26619
npmvega5.31.0GHSA-rcw3-wmx7-cphr
npmvega-functions5.16.0GHSA-rcw3-wmx7-cphr

Affected products (as reported)

VendorProductVersions
vega vega < 5.31.0

Weakness: CWE-79 · 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

References