CVE-2020-26296: XSS in Vega

vega Updated 02 Oct 2025

Summary

30/12/2020
Yes i
Low
8.7

CVE-2020-26296: XSS in Vega. Affects vega versions < 5.17.3. Fixed in 5.17.3. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Vega is a visualization grammar that provides a declarative format for creating, saving, and sharing interactive visualization designs. It is available as an npm package. Vega allows users to create visualizations using a JSON-based syntax. It is widely used for data visualization purposes in various applications.

However, Vega versions prior to 5.17.3 are vulnerable to a cross-site scripting (XSS) attack. This vulnerability exists in Vega expressions, which are used to define visualizations. An attacker can exploit this vulnerability by crafting a malicious Vega expression, allowing them to execute arbitrary JavaScript code on a victim's machine. This can lead to unauthorized access, data theft, or other malicious activities.

Vulnerability Detail

The XSS vulnerability in Vega arises due to insufficient input sanitization in Vega expressions. When a specially crafted Vega expression is processed, the JavaScript code within it is executed on the victim's machine. This can be exploited by an attacker to perform various malicious actions, such as stealing sensitive information, modifying content, or performing unauthorized actions on behalf of the victim.

The vulnerability has a CVSS score of 8.7, indicating a high severity level. It is crucial to address this vulnerability promptly to prevent potential security breaches.

How To Fix

Minimum fixed version

5.17.3

This is the first release that contains the fix.

npm install vega@5.17.3

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Conclusion

The XSS vulnerability in Vega can have severe consequences, including unauthorized access and data theft. It is crucial to upgrade to Vega version 5.17.3 or later to mitigate this vulnerability. Regularly updating dependencies and staying informed about security patches is essential to ensure the security of your applications. For further support and assistance in vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for vega →

Share this vulnerability

FAQ

Vega is a visualization grammar that provides a declarative format for creating interactive visualizations.

The vulnerability allows an attacker to execute arbitrary JavaScript code on a victim's machine, potentially leading to unauthorized access, data theft, or other malicious activities.

To fix this vulnerability, you should upgrade to Vega version 5.17.3 or later.

No, upgrading to the fixed version is the recommended solution.

The CVSS score of this vulnerability is 8.7, indicating a high severity level.

Related vulnerabilities

Recent vulnerabilities recorded for vega.

How To Fix

Minimum fixed version

5.17.3

This is the first release that contains the fix.

npm install vega@5.17.3

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback