Skip to content
OpenAdvisories
Medium · 6.5 CVE-2023-26486 EUVD-2023-0871GHSA-4vq7-882g-wcg4

Vega `scale` expression function cross site scripting

Published Mar 3, 2023 · Updated Feb 25, 2025 · Assigned by GitHub_M

Description

Vega is a visualization grammar, a declarative format for creating, saving, and sharing interactive visualization designs. The Vega `scale` expression function has the ability to call arbitrary functions with a single controlled argument. The scale expression function passes a user supplied argument group to getScale, which is then used as if it were an internal context. The context.scales[name].value is accessed from group and called as a function back in scale. This can be exploited to escape the Vega expression sandbox in order to execute arbitrary JavaScript. This issue has been fixed in version 5.13.1.

Affected products

VendorProductAffectedFixed
vega vega < 5.13.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 vega.js 5.25.0+ds+~cs5.3.0-1 —
Debian 13 vega.js 5.25.0+ds+~cs5.3.0-1 —
Debian 12 vega.js No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
npm vega < 5.23.0 5.23.0 GHSA-4vq7-882g-wcg4
npm vega-functions < 5.13.1 5.13.1 GHSA-4vq7-882g-wcg4

References