{"id":"CVE-2023-26487","published":"2023-03-03T23:47:28Z","modified":"2025-02-25T15:01:54Z","title":"Vega has cross-site scripting vulnerability in `lassoAppend` function","vendor":"vega","product":"vega","tier":"tail","description":{"text":"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.\n","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.00806,"percentile":0.57707,"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-w5m3-xh75-mp55","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/vega/vega/commit/01adb034f24727d3bb321bbbb6696a7f4cd91689","tags":["x_refsource_MISC"]},{"url":"https://github.com/vega/vega/releases/tag/v5.23.0","tags":["x_refsource_MISC"]}],"priority":{"score":16.1,"factors":[{"name":"EPSS percentile","points":11.54},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"vega","affectedVersions":[{"vendor":"vega","product":"vega","versions":["< 5.23.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-02-25T14:31:39.665748Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"vega","vulnerableRanges":["<5.23.0"],"patched":["5.23.0"],"from":["GHSA-w5m3-xh75-mp55"],"provenance":"source"},{"ecosystem":"npm","package":"vega-functions","vulnerableRanges":["<5.13.1"],"patched":["5.13.1"],"from":["GHSA-w5m3-xh75-mp55"],"provenance":"source"}],"summary":{"text":"The Vega visualization grammar's lassoAppend function fails to enforce that its first argument is an array, so it will call a push method on any object supplied, leading to cross-site scripting in the affected Vega component. An unauthenticated remote attacker can exploit it over the network with low complexity and no user interaction, by supplying a crafted object whose push function refers to a function reachable through event.view, with the exact impact depending on the surrounding environment.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:27:04Z"},"euvd":{"id":"EUVD-2023-1128","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2020-26296","published":"2020-12-30","fixed":"5.17.3","kev":false},{"cve":"CVE-2023-26486","published":"2023-03-03","fixed":"5.23.0","kev":false},{"cve":"CVE-2023-26487","published":"2023-03-03","fixed":"5.23.0","kev":false},{"cve":"CVE-2025-25304","published":"2025-02-14","fixed":"5.26.0","kev":false,"link":{"from":"CVE-2023-26487","to":"CVE-2025-25304","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:vega","fromFixed":"5.23.0","toFixed":"5.26.0","daysApart":714}]}},{"cve":"CVE-2025-26619","published":"2025-03-27","fixed":"5.31.0","kev":false},{"cve":"CVE-2025-27793","published":"2025-03-27","fixed":"5.32.0","kev":false}],"package":"npm:vega"}}