{"id":"CVE-2025-27793","published":"2025-03-27T14:07:52Z","modified":"2025-03-27T15:17:18Z","title":"Vega vulnerable to Cross-site Scripting via RegExp.prototype[@@replace]","vendor":"vega","product":"vega","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00933,"percentile":0.59023,"provenance":"source"},"cwes":[{"id":"CWE-87","name":"Improper Neutralization of Alternate XSS Syntax"},{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/vega/vega/security/advisories/GHSA-963h-3v39-3pqf","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/vega/vega/commit/694560c0aa576df8b6c5f0f7d202ac82233e6966","tags":["x_refsource_MISC"]},{"url":"https://github.com/vega/vega/releases/tag/v5.32.0","tags":["x_refsource_MISC"]},{"url":"https://vega.github.io/vega/usage/interpreter","tags":["x_refsource_MISC"]}],"priority":{"score":15.5,"factors":[{"name":"EPSS percentile","points":11.8},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"vega","affectedVersions":[{"vendor":"vega","product":"vega","versions":["< 5.32.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-03-27T15:17:13.409636Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"vega","vulnerableRanges":["<5.32.0"],"patched":["5.32.0"],"from":["GHSA-963h-3v39-3pqf"],"provenance":"source"},{"ecosystem":"npm","package":"vega-functions","vulnerableRanges":["<5.17.0"],"patched":["5.17.0"],"from":["GHSA-963h-3v39-3pqf"],"provenance":"source"}],"summary":{"text":"A flaw in the vega product's JavaScript evaluation of visualization definitions (Vega/Vega-lite JSON) lets specification content run unintended JavaScript when graphs are rendered, unless the library is used with the vega-interpreter. An attacker can exploit it over the network without authentication, but it requires a user to interact with the crafted visualization definition (user interaction required).","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:50:55Z"},"euvd":{"id":"EUVD-2025-14832","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2023-26487","published":"2023-03-03","fixed":"5.23.0","kev":false},{"cve":"CVE-2025-25304","published":"2025-02-14","fixed":"5.26.0","kev":false},{"cve":"CVE-2025-26619","published":"2025-03-27","fixed":"5.31.0","kev":false,"link":{"from":"CVE-2025-26619","to":"CVE-2025-27793","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:vega","fromFixed":"5.31.0","toFixed":"5.32.0","daysApart":0},{"kind":"version-step","provenance":"source","package":"npm:vega-functions","fromFixed":"5.16.0","toFixed":"5.17.0","daysApart":0}]}},{"cve":"CVE-2025-27793","published":"2025-03-27","fixed":"5.32.0","kev":false},{"cve":"CVE-2025-59840","published":"2025-11-13","fixed":"6.2.0","kev":false}],"package":"npm:vega"}}