# CVE-2025-27793: Vega vulnerable to Cross-site Scripting via RegExp.prototype[@@replace]

- Severity: Medium 5.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA: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.52%, higher than 45% of CVEs (2026-12-01)
- Published: 2025-03-27T14:07:52.264Z
- Modified: 2026-06-17T09:04:14.073Z
- Also known as: GHSA-963h-3v39-3pqf
- Weaknesses: CWE-79, CWE-87
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Vega is a visualization grammar, a declarative format for creating, saving, and sharing interactive visualization designs. In Vega prior to version 5.32.0, corresponding to vega-functions prior to version 5.17.0, users running Vega/Vega-lite JSON definitions could run unexpected JavaScript code when drawing graphs, unless the library was used with the `vega-interpreter`. Vega version 5.32.0 and vega-functions version 5.17.0 fix the issue. As a workaround, use `vega` with expression interpreter.

(As written by CVE List.)

## Affected

- vega vega: < 5.32.0
- vega (npm): before 5.32.0
- vega-functions (npm): before 5.17.0

## Every score

- GitHub_M: CVSS:4.0 5.3 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`

## References

- <https://github.com/vega/vega/security/advisories/GHSA-963h-3v39-3pqf> (web)
- <https://github.com/vega/vega/commit/694560c0aa576df8b6c5f0f7d202ac82233e6966> (web)
- <https://github.com/vega/vega/releases/tag/v5.32.0> (web)
- <https://vega.github.io/vega/usage/interpreter> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-27793> (advisory)
- <https://github.com/vega/vega> (package)

## Sources

- CVE List: [CVE-2025-27793](https://www.cve.org/CVERecord?id=CVE-2025-27793), CVE Terms of Use, modified 2025-03-27
- GitHub Advisory Database: [GHSA-963h-3v39-3pqf](https://github.com/advisories/GHSA-963h-3v39-3pqf), CC-BY-4.0, modified 2025-03-27
- NVD: [CVE-2025-27793](https://nvd.nist.gov/vuln/detail/CVE-2025-27793), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-27793 · Whole record: https://cve.day/CVE-2025-27793.json · Rebuilt by cve.day 2026-11-25T22:58:55.602Z
