CVE-2020-26296 XSS in Vega

High 8.7 Published Updated

An attacker can execute arbitrary JavaScript on a victim's machine via crafted Vega expressions in the visualization library.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2020-26296?

CVE-2020-26296 is a high-severity cross-site scripting vulnerability in vega, published on 30 Dec 2020. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official 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. This is fixed in version 5.17.3

Weakness: CWE-79

Which versions are affected by CVE-2020-26296?

2 open source packages ship an affected version, including vega. It affects 1 product.

PackageAffectedFixed in
vega npmAll versions5.17.3
vega npmAll versions5.17.3

Products include Vega Project Vega.

How do I fix CVE-2020-26296?

Upgrade vega to 5.17.3 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2020-26296 being exploited?

There is no known exploitation of CVE-2020-26296 in the wild and no public exploit code.

Sources

Also known as GHSA-r2qc-w64x-6j54.

Is CVE-2020-26296 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free