CVE-2020-26296 XSS in Vega
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.
| Package | Affected | Fixed in |
|---|---|---|
vega npm | All versions | 5.17.3 |
vega npm | All versions | 5.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.
Other vulnerabilities in vega
Sources
Also known as GHSA-r2qc-w64x-6j54.