# CVE-2025-66648: `vega-functions` vulnerable to Cross-site Scripting via `setdata` function

- Severity: High 7.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/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.22%, higher than 13% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-01-05T21:33:14.011Z
- Modified: 2026-10-14T19:10:00.297Z
- Also known as: GHSA-m9rg-mr6g-75gm
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

vega-functions provides function implementations for the Vega expression language. Prior to version 6.1.1, for sites that allow users to supply untrusted user input, malicious use of an internal function (not part of the public API) could be used to run unintentional javascript (XSS). This issue is fixed in vega-functions `6.1.1`. There is no workaround besides upgrading. Using `vega.expressionInterpreter` as described in CSP safe mode does not prevent this issue.

(As written by CVE List.)

## Affected

- vega vega: < 6.1.1
- vega-functions (npm): before 6.1.1
- vega-functions_project vega-functions: before 6.1.1

## Every score

- GitHub_M: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/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-m9rg-mr6g-75gm> (exploit, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-66648> (advisory)
- <https://github.com/vega/vega> (package)

## Sources

- CVE List: [CVE-2025-66648](https://www.cve.org/CVERecord?id=CVE-2025-66648), CVE Terms of Use, modified 2026-01-06
- GitHub Advisory Database: [GHSA-m9rg-mr6g-75gm](https://github.com/advisories/GHSA-m9rg-mr6g-75gm), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-66648](https://nvd.nist.gov/vuln/detail/CVE-2025-66648), Public domain, modified 2026-10-14

---

Page: https://cve.day/CVE-2025-66648 · Whole record: https://cve.day/CVE-2025-66648.json · Rebuilt by cve.day 2026-11-25T22:59:10.301Z
