What’s Vulnerable › Vulnerabilities
CVE-2025-27793: Vega vulnerable to Cross-site Scripting via RegExp.prototype[@@replace]
- Severity: medium (CVSS 5.3 v4.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.5% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-03-27 · updated 2026-06-17
- Weakness: CWE-79
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 products
- vega: before 5.32.0
References
- https://github.com/vega/vega/commit/694560c0aa576df8b6c5f0f7d202ac82233e6966
- https://github.com/vega/vega/releases/tag/v5.32.0
- https://github.com/vega/vega/security/advisories/GHSA-963h-3v39-3pqf
- https://vega.github.io/vega/usage/interpreter
Get alerted when CVE-2025-27793 or the next vulnerability affects your stack