# CVE-2023-26486: Vega `scale` expression function cross site scripting

- 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.78%, higher than 56% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2023-03-02T23:11:05.000Z
- Modified: 2026-09-10T03:49:52.396Z
- Also known as: GHSA-4vq7-882g-wcg4
- 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. 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.

(As written by CVE List.)

## Affected

- vega vega: < 5.13.1
- vega-functions (npm): before 5.13.1
- vega (npm): before 5.23.0
- 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-4vq7-882g-wcg4> (exploit, third-party-advisory, web)
- <https://vega.github.io/editor/#/url/vega/N4IgJAzgxgFgpgWwIYgFwhgF0wBwqgegIDc4BzJAOjIEtMYBXAI0poHsDp5kTykSArJQBWENgDsQAGhAATJJhSoA2qHFIEcNCAAaAZT0ACAApsAwtJDEkAGwZwIaZQEYAujMwAnJOIgAzNk8EJ1BMAE8cLXQAoIYbFBkkR3QNNgZxTEs4AA8cT21oWzgACgByP3SoUqlDcTibGsNgKAlMHMxUJsKbB07gCvEoPus7OE7ukvLK6sNSuBHihTYmYoAdEABNAHVsmyhxAEU2AFk9AGsAdnWASmuZ5tb2von8JoGhppH7TuVXShbfF4GFBMIF-hIIECQYEAL5wmHXeEIkAw1yomFAA> (exploit, web)
- <https://github.com/vega/vega/releases/tag/v5.23.0> (release-notes, web)
- <https://github.dev/vega/vega/blob/72b9b3bbf912212e7879b6acaccc84aff969ef1c/packages/vega-functions/src/functions/scale.js#L36-L37> (permissions-required, web)
- <https://github.dev/vega/vega/blob/72b9b3bbf912212e7879b6acaccc84aff969ef1c/packages/vega-functions/src/scales.js#L6> (permissions-required, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-26486> (advisory)
- <https://github.com/vega/vega> (package)

## Sources

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

---

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