{"id":"CVE-2023-26486","published":"2023-03-03T23:48:41Z","modified":"2025-02-25T15:01:48Z","title":"Vega `scale` expression function cross site scripting","vendor":"vega","product":"vega","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00775,"percentile":0.56668,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/vega/vega/security/advisories/GHSA-4vq7-882g-wcg4","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/vega/vega/releases/tag/v5.23.0","tags":["x_refsource_MISC"]},{"url":"https://github.dev/vega/vega/blob/72b9b3bbf912212e7879b6acaccc84aff969ef1c/packages/vega-functions/src/functions/scale.js#L36-L37","tags":["x_refsource_MISC"]},{"url":"https://github.dev/vega/vega/blob/72b9b3bbf912212e7879b6acaccc84aff969ef1c/packages/vega-functions/src/scales.js#L6","tags":["x_refsource_MISC"]},{"url":"https://vega.github.io/editor/#/url/vega/N4IgJAzgxgFgpgWwIYgFwhgF0wBwqgegIDc4BzJAOjIEtMYBXAI0poHsDp5kTykSArJQBWENgDsQAGhAATJJhSoA2qHFIEcNCAAaAZT0ACAApsAwtJDEkAGwZwIaZQEYAujMwAnJOIgAzNk8EJ1BMAE8cLXQAoIYbFBkkR3QNNgZxTEs4AA8cT21oWzgACgByP3SoUqlDcTibGsNgKAlMHMxUJsKbB07gCvEoPus7OE7ukvLK6sNSuBHihTYmYoAdEABNAHVsmyhxAEU2AFk9AGsAdnWASmuZ5tb2von8JoGhppH7TuVXShbfF4GFBMIF-hIIECQYEAL5wmHXeEIkAw1yomFAA","tags":["x_refsource_MISC"]}],"priority":{"score":15.9,"factors":[{"name":"EPSS percentile","points":11.33},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"vega","affectedVersions":[{"vendor":"vega","product":"vega","versions":["< 5.13.1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-02-25T14:31:36.207488Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"vega-functions","vulnerableRanges":["<5.13.1"],"patched":["5.13.1"],"from":["GHSA-4vq7-882g-wcg4"],"provenance":"source"},{"ecosystem":"npm","package":"vega","vulnerableRanges":["<5.23.0"],"patched":["5.23.0"],"from":["GHSA-4vq7-882g-wcg4"],"provenance":"source"}],"summary":{"text":"The flaw is a cross-site scripting issue in the scale expression function of Vega, a declarative visualization grammar, in which user-supplied input passed as a group argument is used as an internal context, allowing a controlled call to an arbitrary function and an escape from the Vega expression sandbox. An attacker can execute arbitrary JavaScript by supplying a crafted visualization specification, requiring no authentication or privileges and only network access to deliver the specification to a victim's Vega rendering.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:28:03Z"},"euvd":{"id":"EUVD-2023-0871","exploited":false,"provenance":"source"}}