CVSS 3.1
8.1 highCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:NHigh (8.1) in vega vega. EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in vega 6.2.0.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:Nvega (npm): fixed in 6.2.0vega-expression (npm): fixed in 6.1.0, 5.2.1vega-interpreter (npm): fixed in 2.2.1, 1.2.1Explain CVE-2025-59840 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-59840?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-59840?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-59840 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| vega | vega < 6.2.0 |
| vega | vega-expression >= 6.0.0, < 6.1.0 |
| vega | vega-expression < 5.2.1 |
| vega | vega-interpreter >= 2.0.0, < 2.2.1 |
| vega | vega-interpreter < 1.2.1 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-7f2v-3qq3-vvjf | npm | vega | <6.2.0 | 6.2.0 |
| GHSA-7f2v-3qq3-vvjf | npm | vega-expression | >=6.0.0 <6.1.0 | 6.1.0 |
| GHSA-7f2v-3qq3-vvjf | npm | vega-interpreter | >=2.0.0 <2.2.1 | 2.2.1 |
| GHSA-7f2v-3qq3-vvjf | npm | vega-interpreter | <1.2.1 | 1.2.1 |
| GHSA-7f2v-3qq3-vvjf | npm | vega-expression | <5.2.1 | 5.2.1 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12, 13 | vega.js | no fix listed | DEBIAN-CVE-2025-59840 |
| Debian | 14 | vega.js | 5.33.1+ds+~cs5.3.0-4 | DEBIAN-CVE-2025-59840 |
| Ubuntu | 24.04:LTS, 25.10, 26.04:LTS and 1 more | vega.js | no fix listed | UBUNTU-CVE-2025-59840 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.
Red Hat rates this Important.
This vulnerability affects the Vega visualization library when applications expose the Vega runtime or a vega.View instance on the global browser window, a pattern commonly introduced for debugging or interactive development.
Red Hat Product Security has rated this issue High severity, because a remote attacker can craft a malicious Vega specification that, once opened and interacted with by a user, triggers arbitrary script execution in the application’s origin.
The practical impact requires and depends on specific deployment conditions. Applications are only exposed if they (1) accept or render untrusted Vega specifications and (2) must expose Vega objects globally (such as VEGA_DEBUG, vega, or view attached to window). Applications that do not expose these global debugging gadgets or that only render trusted specifications are not affected.
Do not attach vega or vega.View instances to global objects (e.g., window). Remove any VEGA_DEBUG helpers or debugging hooks from production builds.
These mitigations reduce but do not fully eliminate risk, because the underlying vulnerability exists in the expression evaluation design.
| Product | Package | State | Advisory |
|---|---|---|---|
| Logging Subsystem for Red Hat OpenShift | openshift-logging/elasticsearch6-rhel9 | Not affected | |
| Logging Subsystem for Red Hat OpenShift | openshift-logging/elasticsearch-operator-bundle | Not affected | |
| Logging Subsystem for Red Hat OpenShift | openshift-logging/elasticsearch-proxy-rhel9 | Not affected | |
| Logging Subsystem for Red Hat OpenShift | openshift-logging/elasticsearch-rhel9-operator | Not affected | |
| Logging Subsystem for Red Hat OpenShift | openshift-logging/kibana6-rhel8 | Affected | |
| Logging Subsystem for Red Hat OpenShift | openshift-logging/logging-curator5-rhel9 | Not affected |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-59840.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.