Description
Vega is a visualization grammar, a declarative format for creating, saving, and sharing interactive visualization designs. Vega in an npm package. In Vega before version 5.17.3 there is an XSS vulnerability in Vega expressions. Through a specially crafted Vega expression, an attacker could execute arbitrary javascript on a victim’s machine.
Recommendation
Update the vega package to the latest compatible version. Followings are version details:
- Affected version(s): < 5.17.3
- Patched version(s): 5.17.3
References
Could your website be exposed too?
SmartScanner can check your website for XSS in Vega and gives you actionable findings to investigate.
Start a free scanRelated Issues
- Vega Cross-Site Scripting (XSS) via expressions abusing toString calls in environments using the VEGA_DEBUG global varia - CVE-2025-59840
- Vega Cross-Site Scripting (XSS) via expressions abusing toString calls in environments using the VEGA_DEBUG global varia - vega-interpreter - CVE-2025-59840
- Potential XSS vulnerability in jQuery - jquery - CVE-2020-11022
- Potential XSS vulnerability in jQuery - CVE-2020-11023


