Vega `scale` expression function cross site scripting
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
vega-functionsnpm | < 5.13.1 | 5.13.1 |
veganpm | < 5.23.0 | 5.23.0 |
Affected products
3- ghsa-coords2 versions
< 5.23.0+ 1 more
- (no CPE)range: < 5.23.0
- (no CPE)range: < 5.13.1
Patches
Vulnerability mechanics
References
7- github.com/advisories/GHSA-4vq7-882g-wcg4ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2023-26486ghsaADVISORY
- github.com/vega/vega/releases/tag/v5.23.0ghsax_refsource_MISCWEB
- github.com/vega/vega/security/advisories/GHSA-4vq7-882g-wcg4ghsax_refsource_CONFIRMWEB
- github.dev/vega/vega/blob/72b9b3bbf912212e7879b6acaccc84aff969ef1c/packages/vega-functions/src/functions/scale.jsghsax_refsource_MISCWEB
- github.dev/vega/vega/blob/72b9b3bbf912212e7879b6acaccc84aff969ef1c/packages/vega-functions/src/scales.jsghsax_refsource_MISCWEB
- vega.github.io/editor/ghsax_refsource_MISCWEB
News mentions
0No linked articles in our index yet.