# vega-expression (npm) vulnerabilities

1 known vulnerability (1 high), with the versions each affects and the releases that fix them.

## At a glance

- Latest release: 6.2.2 (Aug 14, 2026): no advisory affects it
- Newest unaffected release: 6.2.2 (Aug 14, 2026), the latest release
- Weekly downloads: 2.8M
- Dependents: 283
- Releases: 41 since 1.0.0 (Jul 12, 2015)
- Registry: https://www.npmjs.com/package/vega-expression
- Releases read: Nov 8, 2026

## Version timeline

Affected versions per advisory, in version order:

- CVE-2025-59840: 1.0.0 to 5.2.0 (5.2.1 is outside it); 6.0.0 (6.1.0 is outside it)

## Advisories (1)

### [CVE-2025-59840](https://cve.now/CVE-2025-59840): Vega Cross-Site Scripting (XSS) via expressions abusing toString calls in environments using the VEGA\_DEBUG global variable

- Severity: High 8.1
- Published: Nov 13, 2025
- Affected: from 6.0.0, fixed in 6.1.0; fixed in 5.2.1.
- Fixed in 5.2.1 (released Oct 23, 2025, 21 days before disclosure) and 6.1.0 (released Sep 16, 2025, 58 days before disclosure).
- The latest release, 6.2.2, is not affected.
- 19% of vega-expression downloads last week were affected versions (578.1K).

---

Source: cve.now
Built by [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown), AI-native observability and security: automatic issue detection, plain-language log search and live dashboards.
Page: https://cve.now/packages/npm/vega-expression
Site guide for agents: https://cve.now/llms.txt
Uses NVD data; not endorsed by NVD.
