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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | vega.js | no fix listed | DEBIAN-CVE-2025-27793 |
| Debian:13 | vega.js | no fix listed | DEBIAN-CVE-2025-27793 |
| Debian:14 | vega.js | 5.33.1+ds+~cs5.3.0-1 | DEBIAN-CVE-2025-27793 |
| Ubuntu:24.04:LTS | vega.js | no fix listed | UBUNTU-CVE-2025-27793 |
| Ubuntu:25.10 | vega.js | no fix listed | UBUNTU-CVE-2025-27793 |
| Ubuntu:26.04:LTS | vega.js | no fix listed | UBUNTU-CVE-2025-27793 |
| Ubuntu:26.10 | vega.js | no fix listed | UBUNTU-CVE-2025-27793 |
| npm | vega | 5.32.0 | GHSA-963h-3v39-3pqf |
| npm | vega-functions | 5.17.0 | GHSA-963h-3v39-3pqf |
Affected products (as reported)
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
- https://github.com/vega/vega/security/advisories/GHSA-963h-3v39-3pqf x_refsource_CONFIRM
- https://github.com/vega/vega/commit/694560c0aa576df8b6c5f0f7d202ac82233e6966 x_refsource_MISC
- https://github.com/vega/vega/releases/tag/v5.32.0 x_refsource_MISC
- https://vega.github.io/vega/usage/interpreter x_refsource_MISC