Vulnerability · Published Mar 27, 2025 · Assigned by GitHub_M

CVE-2025-27793Vega vulnerable to Cross-site Scripting via RegExp.prototype[@@replace]

Medium 5.3

In plain English

A medium-severity cross-site scripting in vega from vega. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 44% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)5.3Medium
Exploit odds (30 days)0.5%top 55.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
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 prior to version 5.32.0, corresponding to vega-functions prior to version 5.17.0, users running Vega/Vega-lite JSON definitions could run unexpected JavaScript code when drawing graphs, unless the library was used with the `vega-interpreter`. Vega version 5.32.0 and vega-functions version 5.17.0 fix the issue. As a workaround, use `vega` with expression interpreter.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12vega.jsno fix listedDEBIAN-CVE-2025-27793
Debian:13vega.jsno fix listedDEBIAN-CVE-2025-27793
Debian:14vega.js5.33.1+ds+~cs5.3.0-1DEBIAN-CVE-2025-27793
Ubuntu:24.04:LTSvega.jsno fix listedUBUNTU-CVE-2025-27793
Ubuntu:25.10vega.jsno fix listedUBUNTU-CVE-2025-27793
Ubuntu:26.04:LTSvega.jsno fix listedUBUNTU-CVE-2025-27793
Ubuntu:26.10vega.jsno fix listedUBUNTU-CVE-2025-27793
npmvega5.32.0GHSA-963h-3v39-3pqf
npmvega-functions5.17.0GHSA-963h-3v39-3pqf

Affected products (as reported)

VendorProductVersions
vega vega < 5.32.0

Weakness: CWE-87, 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