CVEfocus › CVE database › CVE-2023-26487

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

CVSS 6.5 MediumEPSS 0.8% (higher than 54% of CVEs)Published 2023-03-03Updated 2025-02-25Assigner: GitHub_M

Vega is a visualization grammar, a declarative format for creating, saving, and sharing interactive visualization designs.`lassoAppend' function accepts 3 arguments and internally invokes `push` function on the 1st argument specifying array consisting of 2nd and 3rd arguments as `push` call 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 a `push` function as the 1st argument, `push` function can be set to any function that can be access via `event.view` (no all such functions can be exploited due to invalid context or signature, but some can, e.g. `console.log`). The issue is that`lassoAppend` doesn'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 JS `setImmediate` polyfill basically allows `eval`-like functionality). This issue was patched in 5.23.0.

CWE-79

What to do

Fixed builds are available from Debian, npm: see the table below for the fixed version per release.

Debian has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fixed
1Fix pending
2Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 25.10vega.jsNot affected
vulnerable_code_not_present
Ubuntu 24.04vega.jsNot affected
vulnerable_code_not_present
Debian 14vega.jsFixed5.25.0+ds+~cs5.3.0-1DEBIAN-CVE-2023-26487
Debian 13vega.jsFixed5.25.0+ds+~cs5.3.0-1DEBIAN-CVE-2023-26487
Debian 12vega.jsFix pendingDEBIAN-CVE-2023-26487
npm libraryvegaFixed5.23.0GHSA-w5m3-xh75-mp55
npm libraryvega-functionsFixed5.13.1GHSA-w5m3-xh75-mp55

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.