CVE-2023-26486
CVE-2023-26486 · Vega `scale` expression function cross site scripting
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
CVSS 6.5 · Medium · EPSS 0.8% · Fix available
- Published
- Updated
Affected products and versions
vega
- Versions
- < 5.13.1: Affected
No fix published
vega.js Debian:12
- Versions
- 5.22.1+ds+~3.1.0-4
- 5.25.0+ds+~cs5.3.0-1
- 5.25.0+ds+~cs5.3.0-2
- 5.25.0+ds+~cs5.3.0-3
- 5.25.0+ds+~cs5.3.0-4
- 5.25.0+ds+~cs5.3.0-5
- 5.28.0+ds+~cs5.3.0-1
- 5.28.0+ds+~cs5.3.0-2
- 5.28.0+ds+~cs5.3.0-3
- 5.33.1+ds+~cs5.3.0-1
- 5.33.1+ds+~cs5.3.0-2
- 5.33.1+ds+~cs5.3.0-3
- 5.33.1+ds+~cs5.3.0-4
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
vega.js Debian:13
- Affected ranges
- ECOSYSTEM: < 5.25.0+ds+~cs5.3.0-1
Update to 5.25.0+ds+~cs5.3.0-1
vega.js Debian:14
- Affected ranges
- ECOSYSTEM: < 5.25.0+ds+~cs5.3.0-1
Update to 5.25.0+ds+~cs5.3.0-1
vega-functions npm
- Affected ranges
- SEMVER: < 5.13.1
Update to 5.13.1
vega npm
- Affected ranges
- SEMVER: < 5.23.0
Update to 5.23.0
Original sources
- https://github.com/vega/vega/security/advisories/GHSA-4vq7-882g-wcg4
- https://github.com/vega/vega/releases/tag/v5.23.0
- https://github.dev/vega/vega/blob/72b9b3bbf912212e7879b6acaccc84aff969ef1c/packages/vega-functions/src/functions/scale.js#L36-L37
- https://github.dev/vega/vega/blob/72b9b3bbf912212e7879b6acaccc84aff969ef1c/packages/vega-functions/src/scales.js#L6
- https://vega.github.io/editor/#/url/vega/N4IgJAzgxgFgpgWwIYgFwhgF0wBwqgegIDc4BzJAOjIEtMYBXAI0poHsDp5kTykSArJQBWENgDsQAGhAATJJhSoA2qHFIEcNCAAaAZT0ACAApsAwtJDEkAGwZwIaZQEYAujMwAnJOIgAzNk8EJ1BMAE8cLXQAoIYbFBkkR3QNNgZxTEs4AA8cT21oWzgACgByP3SoUqlDcTibGsNgKAlMHMxUJsKbB07gCvEoPus7OE7ukvLK6sNSuBHihTYmYoAdEABNAHVsmyhxAEU2AFk9AGsAdnWASmuZ5tb2von8JoGhppH7TuVXShbfF4GFBMIF-hIIECQYEAL5wmHXeEIkAw1yomFAA
- https://nvd.nist.gov/vuln/detail/CVE-2023-26486