CVE-2025-27793 Details
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.
A vulnerability in Vega prior to version 5.32.0 and in Vega-Functions prior to version 5.17.0 allows users to execute unexpected JavaScript code when rendering graphs with Vega or Vega-Lite JSON definitions. This issue arises from improper handling of regular expression patterns in the 'replace' function, which can be exploited to inject malicious code. The vulnerability can lead to cross-site scripting (XSS) attacks, especially if the injected code is executed in the context of the user's browser.
Upgrade to Vega version 5.32.0 and Vega-Functions version 5.17.0. If an immediate upgrade is not possible, use Vega with the expression interpreter, which is compliant with Content Security Policy and can mitigate the risk of cross-site scripting.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Mar 27, 2025CISA-ADP
Assessed Mar 27, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/vega/vega/commit/694560c0aa576df8b6c5f0f7d202ac82233e6966 | [email protected] | Source CodeVendor |
| https://github.com/vega/vega/releases/tag/v5.32.0 | [email protected] | Release NotesVendor |
| https://github.com/vega/vega/security/advisories/GHSA-963h-3v39-3pqf | [email protected] | AdvisoryExploitRemedyVendor |
| https://vega.github.io/vega/usage/interpreter | [email protected] | Vendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
| CWE-87 | Improper Neutralization of Alternate XSS Syntax | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Vega | <= 5.31.0 (semver) |
CPE
Remediation
| |
| Vega-functions | <= 5.16.0 (semver) |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 27, 2025 | New CVE Received | [email protected] |
Volerion