Cross-site Scripting (XSS) Affecting vega.js package, versions <5.25.0+ds+~cs5.3.0-1


Severity

Recommended
0.0
medium
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.81% (58th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIAN13-VEGAJS-14909130
  • published10 Jan 2026
  • disclosed4 Mar 2023

Introduced: 4 Mar 2023

CVE-2023-26487  (opens in a new tab)
CWE-79  (opens in a new tab)

How to fix?

Upgrade Debian:13 vega.js to version 5.25.0+ds+~cs5.3.0-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream vega.js package and not the vega.js package as distributed by Debian. See How to fix? for Debian:13 relevant fixed versions and status.

Vega is a visualization grammar, a declarative format for creating, saving, and sharing interactive visualization designs.lassoAppend&#39; 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&#39;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&#39;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.

CVSS Base Scores

version 3.1