# CVE-2023-26487: Vega has cross-site scripting vulnerability in `lassoAppend` function

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.82%, higher than 54% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-03-02T23:08:21.000Z
- Modified: 2026-09-10T03:49:57.054Z
- Also known as: GHSA-w5m3-xh75-mp55
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- vega vega: < 5.23.0
- vega (npm): before 5.23.0
- vega-functions (npm): before 5.13.1
- vega-functions_project vega-functions: before 5.13.1
- vega_project vega: before 5.23.0

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/vega/vega/security/advisories/GHSA-w5m3-xh75-mp55> (exploit, third-party-advisory, web)
- <https://github.com/vega/vega/commit/01adb034f24727d3bb321bbbb6696a7f4cd91689> (patch, web)
- <https://github.com/vega/vega/releases/tag/v5.23.0> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-26487> (advisory)
- <https://github.com/vega/vega> (package)

## Sources

- CVE List: [CVE-2023-26487](https://www.cve.org/CVERecord?id=CVE-2023-26487), CVE Terms of Use, modified 2025-02-25
- GitHub Advisory Database: [GHSA-w5m3-xh75-mp55](https://github.com/advisories/GHSA-w5m3-xh75-mp55), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-26487](https://nvd.nist.gov/vuln/detail/CVE-2023-26487), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-26487 · Whole record: https://cve.day/CVE-2023-26487.json · Rebuilt by cve.day 2026-11-25T22:58:22.271Z
