Vulnerability library
Security checkNovember 14, 2025

Vega Cross-Site Scripting (XSS) via expressions abusing toString calls in environments using the VEGA_DEBUG global varia

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpmvega

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

Applications meeting 2 conditions are at risk of arbitrary JavaScript code execution, even if “safe mode” expressionInterpreter is used.

  1. Use vega in an application that attaches vega library and a vega.View instance similar to the Vega Editor to the global window 2.

Recommendation

Update the vega package to the latest compatible version. Followings are version details:

  • Affected version(s): < 6.2.0
  • Patched version(s): 6.2.0

References

Could your website be exposed too?

SmartScanner can check your website for Vega Cross-Site Scripting (XSS) via expressions abusing toString calls in environments using the VEGA_DEBUG global varia and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated November 14, 2025