Skip to content

CVE-2023-26487 Vega has cross-site scripting vulnerability in `lassoAppend` function

MediumCVSS 6.1 EPSS 0.81%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial
Technology
Debian

Description

Vega is a visualization grammar, a declarative format for creating, saving, and sharing interactive visualization designs.lassoAppend' function accepts 3 arguments and internally invokes pushfunction on the 1st argument specifying array consisting of 2nd and 3rd arguments aspushcall argument. The type of the 1st argument is supposed to be an array, but it's not enforced. This makes it possible to specify any object with apushfunction as the 1st argument,pushfunction can be set to any function that can be access viaevent.view(no all such functions can be exploited due to invalid context or signature, but some can, e.g.console.log). The issue is thatlassoAppenddoesn't enforce proper types of its arguments. This issue opens various XSS vectors, but exact impact and severity depends on the environment (e.g. Core JSsetImmediatepolyfill basically allowseval`-like functionality). This issue was patched in 5.23.0.

Upgrade path

8 packages: 6 fixed, 1 with no fix yet.

PackageAffectedFixed inStatus
debian/vega.js(Debian 12) = 5.22.1+ds+~3.1.0-4; = 5.25.0+ds+~cs5.3.0-1; = 5.25.0+ds+~cs5.3.0-2; = 5.25.0+ds+~cs5.3.0-3 +10 more No fix listed No fix yet
debian/vega.js(Debian 13) < 5.25.0+ds+~cs5.3.0-1 5.25.0+ds+~cs5.3.0-1 Fixed
debian/vega.js(Debian 14) < 5.25.0+ds+~cs5.3.0-1 5.25.0+ds+~cs5.3.0-1 Fixed
npm vega(npm) < 5.23.0 5.23.0 Fixed
npm vega-functions(npm) < 5.13.1 5.13.1 Fixed
vega project vega < 5.23.0 5.23.0 Fixed
vega-functions project vega-functions < 5.13.1 5.13.1 Fixed
vega = < 5.23.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
npm vega(npm) < 5.23.0 5.23.0
npm vega-functions(npm) < 5.13.1 5.13.1
debian/vega.js(Debian:12) All versions No fix listed
debian/vega.js(Debian:12) = 5.22.1+ds+~3.1.0-4 No fix listed
debian/vega.js(Debian:12) = 5.25.0+ds+~cs5.3.0-1 No fix listed
debian/vega.js(Debian:12) = 5.25.0+ds+~cs5.3.0-2 No fix listed
debian/vega.js(Debian:12) = 5.25.0+ds+~cs5.3.0-3 No fix listed
debian/vega.js(Debian:12) = 5.25.0+ds+~cs5.3.0-4 No fix listed
debian/vega.js(Debian:12) = 5.25.0+ds+~cs5.3.0-5 No fix listed
debian/vega.js(Debian:12) = 5.28.0+ds+~cs5.3.0-1 No fix listed
debian/vega.js(Debian:12) = 5.28.0+ds+~cs5.3.0-2 No fix listed
debian/vega.js(Debian:12) = 5.28.0+ds+~cs5.3.0-3 No fix listed
debian/vega.js(Debian:12) = 5.33.1+ds+~cs5.3.0-1 No fix listed
debian/vega.js(Debian:12) = 5.33.1+ds+~cs5.3.0-2 No fix listed
debian/vega.js(Debian:12) = 5.33.1+ds+~cs5.3.0-3 No fix listed
debian/vega.js(Debian:12) = 5.33.1+ds+~cs5.3.0-4 No fix listed
debian/vega.js(Debian:13) < 5.25.0+ds+~cs5.3.0-1 5.25.0+ds+~cs5.3.0-1
debian/vega.js(Debian:14) < 5.25.0+ds+~cs5.3.0-1 5.25.0+ds+~cs5.3.0-1
vega = < 5.23.0 No fix listed
vega-functions project vega-functions < 5.13.1 5.13.1
vega project vega < 5.23.0 5.23.0

References