CVE-2023-26486
MEDIUMVega <5.23.0 - JavaScript Sandbox Escape via scale Expression Function
Title source: manualDescription
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.
References (5)
Core 5
Core References
Exploit, Third Party Advisory x_refsource_confirm
https://github.com/vega/vega/security/advisories/GHSA-4vq7-882g-wcg4
Release Notes x_refsource_misc
https://github.com/vega/vega/releases/tag/v5.23.0
Permissions Required x_refsource_misc
https://github.dev/vega/vega/blob/72b9b3bbf912212e7879b6acaccc84aff969ef1c/packages/vega-functions/src/functions/scale.js#L36-L37
Permissions Required x_refsource_misc
https://github.dev/vega/vega/blob/72b9b3bbf912212e7879b6acaccc84aff969ef1c/packages/vega-functions/src/scales.js#L6
Scores
CVSS v3
6.5
EPSS
0.0037
EPSS Percentile
59.0%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
yes
Technical Impact
partial
Details
CWE
CWE-79
Status
published
Products (4)
npm/vega
0 - 5.23.0npm
npm/vega-functions
0 - 5.13.1npm
vega-functions_project/vega-functions
< 5.13.1
vega_project/vega
< 5.23.0
Published
Mar 04, 2023
Tracked Since
Feb 18, 2026