CVE-2023-26486
MEDIUM 6.1CVSS 3.1Vega Expression Language `scale` expression function Cross Site Scripting
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.
- Published
- 4 Mar 2023
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-4vq7-882g-wcg4
- Sources
- NVDJSONOSV GHSA-4vq7-882g-wcg4JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | vega-functions_project | vega-functionscpe:2.3:a:vega-functions_project:vega-functions:*:*:*:*:*:node.js:*:* |
< 5.13.1 | 5.13.1 |
| NVD | vega_project | vegacpe:2.3:a:vega_project:vega:*:*:*:*:*:node.js:*:* |
< 5.23.0 | 5.23.0 |
| OSV | npm | vega-functions | < 5.13.1 | 5.13.1 |
| OSV | npm | vega | < 5.23.0 | 5.23.0 |
References
- https://github.com/vega/vega/releases/tag/v5.23.0 · Release Notes, WEB
- https://github.com/vega/vega/security/advisories/GHSA-4vq7-882g-wcg4 · Exploit, Third Party Advisory, WEB
- https://github.dev/vega/vega/blob/72b9b3bbf912212e7879b6acaccc84aff969ef1c/packages/vega-functions/src/functions/scale.js#L36-L37 · Permissions Required, WEB
- https://github.dev/vega/vega/blob/72b9b3bbf912212e7879b6acaccc84aff969ef1c/packages/vega-functions/src/scales.js#L6 · Permissions Required, WEB
- https://vega.github.io/editor/#/url/vega/N4IgJAzgxgFgpgWwIYgFwhgF0wBwqgegIDc4BzJAOjIEtMYBXAI0poHsDp5kTykSArJQBWENgDsQAGhAATJJhSoA2qHFIEcNCAAaAZT0ACAApsAwtJDEkAGwZwIaZQEYAujMwAnJOIgAzNk8EJ1BMAE8cLXQAoIYbFBkkR3QNNgZxTEs4AA8cT21oWzgACgByP3SoUqlDcTibGsNgKAlMHMxUJsKbB07gCvEoPus7OE7ukvLK6sNSuBHihTYmYoAdEABNAHVsmyhxAEU2AFk9AGsAdnWASmuZ5tb2von8JoGhppH7TuVXShbfF4GFBMIF-hIIECQYEAL5wmHXeEIkAw1yomFAA · Exploit, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-26486 · ADVISORY
- https://github.com/vega/vega · PACKAGE
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 4 Mar 2023)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 2 Mar 2023)