{"id":"CVE-2023-26486","aliases":["DEBIAN-CVE-2023-26486","GHSA-4vq7-882g-wcg4"],"summary":"Vega `scale` expression function cross site scripting","published_at":"2023-03-02T23:11:05Z","modified_at":"2026-10-26T18:00:38.894083Z","products":[{"slug":"rhel","name":"Red Hat Enterprise Linux","category":"red-hat"},{"slug":"elasticsearch","name":"Elasticsearch / Kibana","category":"monitoring"}],"rating":{"severity":"medium","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false,"red_hat":"Moderate","vendor_ratings":[{"source":"Red Hat","rating":"Moderate"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.00774999987334013,"percentile":0.5653499960899353,"date":"2026-11-19T00:00:00Z"},"priority":8.5,"details":"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.","affected_stack":[{"ecosystem":"Red Hat:openshift:3.11","package":"kibana","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2023-26486","relation":"self"}],"affected_other":[{"ecosystem":"CVE","package":"vega/vega","versions":["< 5.13.1"],"provider":"cvelistv5","source":"CVE-2023-26486","relation":"self"},{"ecosystem":"Debian:12","package":"vega.js","purl":"pkg:deb/debian/vega.js?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"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"],"provider":"osv","source":"DEBIAN-CVE-2023-26486","relation":"self"},{"ecosystem":"Debian:13","package":"vega.js","purl":"pkg:deb/debian/vega.js?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.25.0+ds+~cs5.3.0-1"}]}],"fixed":["5.25.0+ds+~cs5.3.0-1"],"provider":"osv","source":"DEBIAN-CVE-2023-26486","relation":"self"},{"ecosystem":"Debian:14","package":"vega.js","purl":"pkg:deb/debian/vega.js?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.25.0+ds+~cs5.3.0-1"}]}],"fixed":["5.25.0+ds+~cs5.3.0-1"],"provider":"osv","source":"DEBIAN-CVE-2023-26486","relation":"self"},{"ecosystem":"NVD","package":"vega-functions_project:vega-functions","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.13.1"}]}],"fixed":["5.13.1"],"provider":"nvd","source":"CVE-2023-26486","relation":"self"},{"ecosystem":"NVD","package":"vega_project:vega","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.23.0"}]}],"fixed":["5.23.0"],"provider":"nvd","source":"CVE-2023-26486","relation":"self"},{"ecosystem":"npm","package":"vega","purl":"pkg:npm/vega","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"5.23.0"}]}],"fixed":["5.23.0"],"provider":"osv","source":"GHSA-4vq7-882g-wcg4","relation":"self"},{"ecosystem":"npm","package":"vega-functions","purl":"pkg:npm/vega-functions","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"5.13.1"}]}],"fixed":["5.13.1"],"provider":"osv","source":"GHSA-4vq7-882g-wcg4","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Logging Subsystem for Red Hat OpenShift","cpe":"cpe:/a:redhat:logging:5","status":"not_affected","packages":["openshift-logging/cluster-logging-rhel8-operator","openshift-logging/kibana6-rhel8"],"package_count":2,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2023-26486"},{"vendor":"Red Hat","product":"Red Hat JBoss Fuse 6","cpe":"cpe:/a:redhat:jboss_fuse:6","status":"affected","packages":["kibana"],"package_count":1,"fixed":[],"advisories":[],"note":"Out of support scope","provider":"redhat-vex","source":"CVE-2023-26486"},{"vendor":"Red Hat","product":"Red Hat JBoss Fuse Service Works 6","cpe":"cpe:/a:redhat:jboss_fuse_service_works:6","status":"affected","packages":["kibana"],"package_count":1,"fixed":[],"advisories":[],"note":"Out of support scope","provider":"redhat-vex","source":"CVE-2023-26486"},{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 3.11","cpe":"cpe:/a:redhat:openshift:3.11","status":"affected","packages":["kibana","openshift3/ose-logging-kibana5"],"package_count":2,"fixed":[],"advisories":[],"note":"Out of support scope","provider":"redhat-vex","source":"CVE-2023-26486"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2023-26486","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2023-26486","license":"CC-BY-4.0","published_at":"2023-03-03T23:48:41.382Z","modified_at":"2025-02-25T15:01:48.054Z","summary":"Vega `scale` expression function cross site scripting","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","source":"CVE-2023-26486"}],"affected":[{"ecosystem":"CVE","package":"vega/vega","versions":["< 5.13.1"],"provider":"cvelistv5","source":"CVE-2023-26486","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/vega/vega/security/advisories/GHSA-4vq7-882g-wcg4"},{"type":"WEB","url":"https://github.com/vega/vega/releases/tag/v5.23.0"},{"type":"WEB","url":"https://github.dev/vega/vega/blob/72b9b3bbf912212e7879b6acaccc84aff969ef1c/packages/vega-functions/src/functions/scale.js#L36-L37"},{"type":"WEB","url":"https://github.dev/vega/vega/blob/72b9b3bbf912212e7879b6acaccc84aff969ef1c/packages/vega-functions/src/scales.js#L6"},{"type":"WEB","url":"https://vega.github.io/editor/#/url/vega/N4IgJAzgxgFgpgWwIYgFwhgF0wBwqgegIDc4BzJAOjIEtMYBXAI0poHsDp5kTykSArJQBWENgDsQAGhAATJJhSoA2qHFIEcNCAAaAZT0ACAApsAwtJDEkAGwZwIaZQEYAujMwAnJOIgAzNk8EJ1BMAE8cLXQAoIYbFBkkR3QNNgZxTEs4AA8cT21oWzgACgByP3SoUqlDcTibGsNgKAlMHMxUJsKbB07gCvEoPus7OE7ukvLK6sNSuBHihTYmYoAdEABNAHVsmyhxAEU2AFk9AGsAdnWASmuZ5tb2von8JoGhppH7TuVXShbfF4GFBMIF-hIIECQYEAL5wmHXeEIkAw1yomFAA"}]},{"provider":"nvd","source_id":"CVE-2023-26486","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-26486","severity":[],"affected":[{"ecosystem":"NVD","package":"vega-functions_project:vega-functions","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.13.1"}]}],"fixed":["5.13.1"],"provider":"nvd","source":"CVE-2023-26486","relation":"self"},{"ecosystem":"NVD","package":"vega_project:vega","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.23.0"}]}],"fixed":["5.23.0"],"provider":"nvd","source":"CVE-2023-26486","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"DEBIAN-CVE-2023-26486","relation":"self","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2023-26486","published_at":"2023-03-04T00:15:15.473Z","modified_at":"2026-10-26T18:00:38.894083Z","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"DEBIAN-CVE-2023-26486"}],"affected":[{"ecosystem":"Debian:12","package":"vega.js","purl":"pkg:deb/debian/vega.js?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"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"],"provider":"osv","source":"DEBIAN-CVE-2023-26486","relation":"self"},{"ecosystem":"Debian:13","package":"vega.js","purl":"pkg:deb/debian/vega.js?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.25.0+ds+~cs5.3.0-1"}]}],"fixed":["5.25.0+ds+~cs5.3.0-1"],"provider":"osv","source":"DEBIAN-CVE-2023-26486","relation":"self"},{"ecosystem":"Debian:14","package":"vega.js","purl":"pkg:deb/debian/vega.js?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.25.0+ds+~cs5.3.0-1"}]}],"fixed":["5.25.0+ds+~cs5.3.0-1"],"provider":"osv","source":"DEBIAN-CVE-2023-26486","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2023-26486"}]},{"provider":"osv","source_id":"GHSA-4vq7-882g-wcg4","relation":"self","url":"https://osv.dev/vulnerability/GHSA-4vq7-882g-wcg4","license":"CC-BY-4.0","published_at":"2023-03-02T23:11:05Z","modified_at":"2026-09-10T03:49:52.396334Z","summary":"Vega Expression Language `scale` expression function Cross Site Scripting","details":"### Summary\nThe Vega `scale` expression function has the ability to call arbitrary functions with a single controlled argument. This can be exploited to escape the Vega expression sandbox in order to execute arbitrary JavaScript.\n\n### Details\n\nThe [scale](https://github.dev/vega/vega/blob/72b9b3bbf912212e7879b6acaccc84aff969ef1c/packages/vega-functions/src/functions/scale.js#L36-L37) expression function passes a user supplied argument `group` to [getScale](https://github.dev/vega/vega/blob/72b9b3bbf912212e7879b6acaccc84aff969ef1c/packages/vega-functions/src/scales.js#L6), 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`.\n\n### PoC\nThe following Vega definition can be used to demonstrate this issue executing the JavaScript code `alert(1);`\n```json\n{\n  \"$schema\": \"https://vega.github.io/schema/vega/v5.json\",\n  \"data\": [\n    {\n      \"name\": \"XSS PoC\",\n      \"values\": [1],\n      \"transform\": [\n        {\n          \"type\": \"formula\",\n          \"as\": \"amount\",\n          \"expr\": \"scale('func', null,  {context: {scales: {func: {value: scale('func', 'eval(atob(\\\"YWxlcnQoMSk7\\\"))', {context: {scales: {func: {value: [].constructor.constructor}}}})}}}})\"\n        }\n      ]\n    }\n  ]\n}\n```\n\nThis can be viewed in the Vega online IDE at https://vega.github.io/editor/#/url/vega/N4IgJAzgxgFgpgWwIYgFwhgF0wBwqgegIDc4BzJAOjIEtMYBXAI0poHsDp5kTykSArJQBWENgDsQAGhAATJJhSoA2qHFIEcNCAAaAZT0ACAApsAwtJDEkAGwZwIaZQEYAujMwAnJOIgAzNk8EJ1BMAE8cLXQAoIYbFBkkR3QNNgZxTEs4AA8cT21oWzgACgByP3SoUqlDcTibGsNgKAlMHMxUJsKbB07gCvEoPus7OE7ukvLK6sNSuBHihTYmYoAdEABNAHVsmyhxAEU2AFk9AGsAdnWASmuZ5tb2von8JoGhppH7TuVXShbfF4GFBMIF-hIIECQYEAL5wmHXeEIkAw1yomFAA","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"GHSA-4vq7-882g-wcg4"}],"affected":[{"ecosystem":"npm","package":"vega","purl":"pkg:npm/vega","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"5.23.0"}]}],"fixed":["5.23.0"],"provider":"osv","source":"GHSA-4vq7-882g-wcg4","relation":"self"},{"ecosystem":"npm","package":"vega-functions","purl":"pkg:npm/vega-functions","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"5.13.1"}]}],"fixed":["5.13.1"],"provider":"osv","source":"GHSA-4vq7-882g-wcg4","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/vega/vega/security/advisories/GHSA-4vq7-882g-wcg4"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-26486"},{"type":"PACKAGE","url":"https://github.com/vega/vega"},{"type":"WEB","url":"https://github.com/vega/vega/releases/tag/v5.23.0"},{"type":"WEB","url":"https://github.dev/vega/vega/blob/72b9b3bbf912212e7879b6acaccc84aff969ef1c/packages/vega-functions/src/functions/scale.js#L36-L37"},{"type":"WEB","url":"https://github.dev/vega/vega/blob/72b9b3bbf912212e7879b6acaccc84aff969ef1c/packages/vega-functions/src/scales.js#L6"},{"type":"WEB","url":"https://vega.github.io/editor/#/url/vega/N4IgJAzgxgFgpgWwIYgFwhgF0wBwqgegIDc4BzJAOjIEtMYBXAI0poHsDp5kTykSArJQBWENgDsQAGhAATJJhSoA2qHFIEcNCAAaAZT0ACAApsAwtJDEkAGwZwIaZQEYAujMwAnJOIgAzNk8EJ1BMAE8cLXQAoIYbFBkkR3QNNgZxTEs4AA8cT21oWzgACgByP3SoUqlDcTibGsNgKAlMHMxUJsKbB07gCvEoPus7OE7ukvLK6sNSuBHihTYmYoAdEABNAHVsmyhxAEU2AFk9AGsAdnWASmuZ5tb2von8JoGhppH7TuVXShbfF4GFBMIF-hIIECQYEAL5wmHXeEIkAw1yomFAA"}]},{"provider":"redhat-vex","source_id":"CVE-2023-26486","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2023-26486","license":"CC-BY-4.0","published_at":"2023-05-03T00:00:00Z","modified_at":"2023-07-21T22:26:27Z","summary":"kibana: xss in custom visualizations","details":"A flaw was found in one of Kibana’s dependencies. This flaw allows an attacker to perform Cross-site scripting (XSS) after loading a maliciously crafted custom visualization in Kibana.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"CVE-2023-26486"},{"type":"Red Hat","score":"Moderate","source":"CVE-2023-26486"}],"affected":[{"ecosystem":"Red Hat:openshift:3.11","package":"kibana","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2023-26486","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Logging Subsystem for Red Hat OpenShift","cpe":"cpe:/a:redhat:logging:5","status":"not_affected","packages":["openshift-logging/cluster-logging-rhel8-operator","openshift-logging/kibana6-rhel8"],"package_count":2,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2023-26486"},{"vendor":"Red Hat","product":"Red Hat JBoss Fuse 6","cpe":"cpe:/a:redhat:jboss_fuse:6","status":"affected","packages":["kibana"],"package_count":1,"fixed":[],"advisories":[],"note":"Out of support scope","provider":"redhat-vex","source":"CVE-2023-26486"},{"vendor":"Red Hat","product":"Red Hat JBoss Fuse Service Works 6","cpe":"cpe:/a:redhat:jboss_fuse_service_works:6","status":"affected","packages":["kibana"],"package_count":1,"fixed":[],"advisories":[],"note":"Out of support scope","provider":"redhat-vex","source":"CVE-2023-26486"},{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 3.11","cpe":"cpe:/a:redhat:openshift:3.11","status":"affected","packages":["kibana","openshift3/ose-logging-kibana5"],"package_count":2,"fixed":[],"advisories":[],"note":"Out of support scope","provider":"redhat-vex","source":"CVE-2023-26486"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2023/cve-2023-26486.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2023-26486"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2190192"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2023-26486"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-26486"},{"type":"WEB","url":"https://discuss.elastic.co/t/elastic-stack-8-7-0-7-17-10-security-updates/332327"}]}],"references":[{"type":"WEB","url":"https://github.com/vega/vega/security/advisories/GHSA-4vq7-882g-wcg4"},{"type":"WEB","url":"https://github.com/vega/vega/releases/tag/v5.23.0"},{"type":"WEB","url":"https://github.dev/vega/vega/blob/72b9b3bbf912212e7879b6acaccc84aff969ef1c/packages/vega-functions/src/functions/scale.js#L36-L37"},{"type":"WEB","url":"https://github.dev/vega/vega/blob/72b9b3bbf912212e7879b6acaccc84aff969ef1c/packages/vega-functions/src/scales.js#L6"},{"type":"WEB","url":"https://vega.github.io/editor/#/url/vega/N4IgJAzgxgFgpgWwIYgFwhgF0wBwqgegIDc4BzJAOjIEtMYBXAI0poHsDp5kTykSArJQBWENgDsQAGhAATJJhSoA2qHFIEcNCAAaAZT0ACAApsAwtJDEkAGwZwIaZQEYAujMwAnJOIgAzNk8EJ1BMAE8cLXQAoIYbFBkkR3QNNgZxTEs4AA8cT21oWzgACgByP3SoUqlDcTibGsNgKAlMHMxUJsKbB07gCvEoPus7OE7ukvLK6sNSuBHihTYmYoAdEABNAHVsmyhxAEU2AFk9AGsAdnWASmuZ5tb2von8JoGhppH7TuVXShbfF4GFBMIF-hIIECQYEAL5wmHXeEIkAw1yomFAA"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2023-26486"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-26486"},{"type":"PACKAGE","url":"https://github.com/vega/vega"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2023/cve-2023-26486.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2023-26486"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2190192"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2023-26486"},{"type":"WEB","url":"https://discuss.elastic.co/t/elastic-stack-8-7-0-7-17-10-security-updates/332327"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2023-26486","url":"https://www.cve.org/CVERecord?id=CVE-2023-26486","license":"CC-BY-4.0","modified_at":"2025-02-25T15:01:48.054Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2023-26486","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-26486","relation":"self"},{"provider":"osv","source_id":"DEBIAN-CVE-2023-26486","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2023-26486","modified_at":"2026-10-26T18:00:38.894083Z","relation":"self"},{"provider":"osv","source_id":"GHSA-4vq7-882g-wcg4","url":"https://osv.dev/vulnerability/GHSA-4vq7-882g-wcg4","license":"CC-BY-4.0","modified_at":"2026-09-10T03:49:52.396334Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2023-26486","url":"https://access.redhat.com/security/cve/CVE-2023-26486","license":"CC-BY-4.0","modified_at":"2023-07-21T22:26:27Z","relation":"self"}]}
