Staging Environment: Content and features may be unstable or change without notice.
Search for packages
Package details: pkg:npm/vega-expression@5.2.1
purl pkg:npm/vega-expression@5.2.1
Vulnerabilities affecting this package (0)
Vulnerability Summary Fixed by
This package is not known to be affected by vulnerabilities.
Vulnerabilities fixed by this package (1)
Vulnerability Summary Aliases
VCID-mkyf-amf3-mbbe Vega Cross-Site Scripting (XSS) via expressions abusing toString calls in environments using the VEGA_DEBUG global variable Vega offers the evaluation of expressions in a secure context. Arbitrary function call is prohibited. When an event is exposed to an expression, member get of window objects is possible. Because of this exposure, in some applications, a crafted object that overrides its toString method with a function that results in calling `this.foo(this.bar)`, DOM XSS can be achieved. In practice, an accessible gadget like this exists in the global VEGA_DEBUG code. ```js ({ toString: event.view.VEGA_DEBUG.vega.CanvasHandler.prototype.on, eventName: event.view.console.log, _handlers: { undefined: 'alert(origin + ` XSS on version `+ VEGA_DEBUG.VEGA_VERSION)' }, _handlerIndex: event.view.eval })+1 ``` CVE-2025-59840
GHSA-7f2v-3qq3-vvjf

Date Actor Action Vulnerability Source VulnerableCode Version
2026-06-05T21:52:31.749888+00:00 GHSA Importer Fixing VCID-mkyf-amf3-mbbe https://github.com/advisories/GHSA-7f2v-3qq3-vvjf 38.6.0
2026-06-04T17:12:59.450416+00:00 GithubOSV Importer Fixing VCID-mkyf-amf3-mbbe https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/11/GHSA-7f2v-3qq3-vvjf/GHSA-7f2v-3qq3-vvjf.json 38.6.0
2026-06-02T04:48:27.847895+00:00 GitLab Importer Fixing VCID-mkyf-amf3-mbbe https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/vega-expression/CVE-2025-59840.yml 38.6.0