{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-26486","id":"CVE-2023-26486","title":"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].v","descriptionLong":"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":"2023-03-03T23:48:41.382Z","updated":"2026-10-28T02:30:48.730781642Z","reserved":"2023-02-23T23:22:58.575Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","rating":"medium","source":"github.com"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["vega"],"affectedProducts":[{"vendor":"vega","product":"vega","defaultStatus":null,"versions":[{"version":"< 5.13.1","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"vega-functions","purl":"pkg:npm/vega-functions","ranges":["<5.13.1"],"fixed":["5.13.1"],"advisory":"GHSA-4vq7-882g-wcg4"},{"ecosystem":"npm","name":"vega","purl":"pkg:npm/vega","ranges":["<5.23.0"],"fixed":["5.23.0"],"advisory":"GHSA-4vq7-882g-wcg4"}],"cwes":["CWE-79"],"aliases":["GHSA-4vq7-882g-wcg4"],"references":[{"url":"https://github.com/vega/vega/security/advisories/GHSA-4vq7-882g-wcg4","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Third Party Advisory","advisory","web"]},{"url":"https://github.com/vega/vega/releases/tag/v5.23.0","tags":["x_refsource_MISC","x_transferred","Release Notes","web"]},{"url":"https://github.dev/vega/vega/blob/72b9b3bbf912212e7879b6acaccc84aff969ef1c/packages/vega-functions/src/functions/scale.js#L36-L37","tags":["x_refsource_MISC","x_transferred","Permissions Required","web"]},{"url":"https://github.dev/vega/vega/blob/72b9b3bbf912212e7879b6acaccc84aff969ef1c/packages/vega-functions/src/scales.js#L6","tags":["x_refsource_MISC","x_transferred","Permissions Required","web"]},{"url":"https://vega.github.io/editor/#/url/vega/N4IgJAzgxgFgpgWwIYgFwhgF0wBwqgegIDc4BzJAOjIEtMYBXAI0poHsDp5kTykSArJQBWENgDsQAGhAATJJhSoA2qHFIEcNCAAaAZT0ACAApsAwtJDEkAGwZwIaZQEYAujMwAnJOIgAzNk8EJ1BMAE8cLXQAoIYbFBkkR3QNNgZxTEs4AA8cT21oWzgACgByP3SoUqlDcTibGsNgKAlMHMxUJsKbB07gCvEoPus7OE7ukvLK6sNSuBHihTYmYoAdEABNAHVsmyhxAEU2AFk9AGsAdnWASmuZ5tb2von8JoGhppH7TuVXShbfF4GFBMIF-hIIECQYEAL5wmHXeEIkAw1yomFAA","tags":["x_refsource_MISC","x_transferred","Exploit","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/26xxx/CVE-2023-26486.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-26486","tags":["advisory"]},{"url":"https://github.com/vega/vega","tags":["package"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial"},"epss":0.00775,"epssPercentile":0.56535,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-26486","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-26486","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-26486","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-4vq7-882g-wcg4","ok":true,"note":"GHSA-4vq7-882g-wcg4"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2023-26486","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}