CVE-2023-26486 Vega `scale` expression function cross site scripting
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
- Technology
- Debian
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.
Upgrade path
8 packages: 6 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/vega.js(Debian 12) | = 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 +10 more | No fix listed | No fix yet |
| debian/vega.js(Debian 13) | < 5.25.0+ds+~cs5.3.0-1 | 5.25.0+ds+~cs5.3.0-1 | Fixed |
| debian/vega.js(Debian 14) | < 5.25.0+ds+~cs5.3.0-1 | 5.25.0+ds+~cs5.3.0-1 | Fixed |
| npm vega(npm) | < 5.23.0 | 5.23.0 | Fixed |
| npm vega-functions(npm) | < 5.13.1 | 5.13.1 | Fixed |
| vega project vega | < 5.23.0 | 5.23.0 | Fixed |
| vega-functions project vega-functions | < 5.13.1 | 5.13.1 | Fixed |
| vega | = < 5.13.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm vega-functions(npm) | < 5.13.1 | 5.13.1 |
| npm vega(npm) | < 5.23.0 | 5.23.0 |
| debian/vega.js(Debian:12) | All versions | No fix listed |
| debian/vega.js(Debian:12) | = 5.22.1+ds+~3.1.0-4 | No fix listed |
| debian/vega.js(Debian:12) | = 5.25.0+ds+~cs5.3.0-1 | No fix listed |
| debian/vega.js(Debian:12) | = 5.25.0+ds+~cs5.3.0-2 | No fix listed |
| debian/vega.js(Debian:12) | = 5.25.0+ds+~cs5.3.0-3 | No fix listed |
| debian/vega.js(Debian:12) | = 5.25.0+ds+~cs5.3.0-4 | No fix listed |
| debian/vega.js(Debian:12) | = 5.25.0+ds+~cs5.3.0-5 | No fix listed |
| debian/vega.js(Debian:12) | = 5.28.0+ds+~cs5.3.0-1 | No fix listed |
| debian/vega.js(Debian:12) | = 5.28.0+ds+~cs5.3.0-2 | No fix listed |
| debian/vega.js(Debian:12) | = 5.28.0+ds+~cs5.3.0-3 | No fix listed |
| debian/vega.js(Debian:12) | = 5.33.1+ds+~cs5.3.0-1 | No fix listed |
| debian/vega.js(Debian:12) | = 5.33.1+ds+~cs5.3.0-2 | No fix listed |
| debian/vega.js(Debian:12) | = 5.33.1+ds+~cs5.3.0-3 | No fix listed |
| debian/vega.js(Debian:12) | = 5.33.1+ds+~cs5.3.0-4 | No fix listed |
| debian/vega.js(Debian:13) | < 5.25.0+ds+~cs5.3.0-1 | 5.25.0+ds+~cs5.3.0-1 |
| debian/vega.js(Debian:14) | < 5.25.0+ds+~cs5.3.0-1 | 5.25.0+ds+~cs5.3.0-1 |
| vega | = < 5.13.1 | No fix listed |
| vega-functions project vega-functions | < 5.13.1 | 5.13.1 |
| vega project vega | < 5.23.0 | 5.23.0 |
References
- https://github.com/vega/vega/security/advisories/GHSA-4vq7-882g-wcg4 exploit third-party-advisory vendor-advisory
- https://github.com/vega/vega/releases/tag/v5.23.0 release-notes
- https://github.dev/vega/vega/blob/72b9b3bbf912212e7879b6acaccc84aff969ef1c/packages/vega-functions/src/functions/scale.js#L36-L37 permissions-required
- https://github.dev/vega/vega/blob/72b9b3bbf912212e7879b6acaccc84aff969ef1c/packages/vega-functions/src/scales.js#L6 permissions-required
- https://vega.github.io/editor/#/url/vega/N4IgJAzgxgFgpgWwIYgFwhgF0wBwqgegIDc4BzJAOjIEtMYBXAI0poHsDp5kTykSArJQBWENgDsQAGhAATJJhSoA2qHFIEcNCAAaAZT0ACAApsAwtJDEkAGwZwIaZQEYAujMwAnJOIgAzNk8EJ1BMAE8cLXQAoIYbFBkkR3QNNgZxTEs4AA8cT21oWzgACgByP3SoUqlDcTibGsNgKAlMHMxUJsKbB07gCvEoPus7OE7ukvLK6sNSuBHihTYmYoAdEABNAHVsmyhxAEU2AFk9AGsAdnWASmuZ5tb2von8JoGhppH7TuVXShbfF4GFBMIF-hIIECQYEAL5wmHXeEIkAw1yomFAA exploit
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- Debian Security Tracker CVE-2023-26486 vendor-advisory
- github.com product