Vulnerability library
Security checkMarch 27, 2025

Vega vulnerable to Cross-site Scripting via RegExp.prototype[@@replace]

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

Medium severitynpmvega-functions

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

Users running Vega/Vega-lite JSON definitions could run unexpected JavaScript code when drawing graphs, unless the library is used with the vega-interpreter.

Recommendation

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

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

References

Could your website be exposed too?

SmartScanner can check your website for Vega vulnerable to Cross-site Scripting via RegExp.prototype[@@replace] and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated March 27, 2025