CVE-2025-59840
Last modified
CVE-2025-59840 is a high-severity vulnerability rated 8.1/10 on the CVSS scale. Vega is a visualization grammar, a declarative format for creating, saving, and sharing interactive visualization designs. In Vega prior to version 6.2.0, applications meeting 2 conditions are at risk of arbitrary JavaScript code execution, even if "safe mode" expressionInterpreter is used. EPSS estimates a 0.33% chance of exploitation in the next 30 days.
Description
Vega is a visualization grammar, a declarative format for creating, saving, and sharing interactive visualization designs. In Vega prior to version 6.2.0, applications meeting 2 conditions are at risk of arbitrary JavaScript code execution, even if "safe mode" expressionInterpreter is used. They are vulnerable if they use `vega` in an application that attaches `vega` library and a `vega.View` instance similar to the Vega Editor to the global `window` and if they allow user-defined Vega `JSON` definitions (vs JSON that was is only provided through source code). Patches are available in the following Vega applications. If using the latest Vega line (6.x), upgrade to `vega` `6.2.0` / `vega-expression` `6.1.0` / `vega-interpreter` `2.2.1` (if using AST evaluator mode). If using Vega in a non-ESM environment, upgrade to `vega-expression` `5.2.1` / `1.2.1` (if using AST evaluator mode). Some workarounds are available. Do not attach `vega` View instances to global variables, and do not attach `vega` to the global window. These practices of attaching the vega library and View instances may be convenient for debugging, but should not be used in production or in any situation where vega/vega-lite definitions could be provided by untrusted parties.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2025-59840?
How severe is CVE-2025-59840?
How do I fix CVE-2025-59840?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-59835LangBot is a global IM bot platform designed for LLMs. In ve…8.6
- CVE-2025-59836Omni manages Kubernetes on bare metal, virtual machines, or …7.5
- CVE-2025-59837Astro is a web framework that includes an image proxy. In ve…7.2
- CVE-2025-59838Monkeytype is a minimalistic and customizable typing test. I…5.4
- CVE-2025-59839The EmbedVideo Extension is a MediaWiki extension which adds…5.4
- CVE-2025-5984A vulnerability has been found in SourceCodester Online Stud…5.4
- CVE-2025-59841Flag Forge is a Capture The Flag (CTF) platform. In versions…9.8
- CVE-2025-59842jupyterlab is an extensible environment for interactive and …4.3
- CVE-2025-59843Flag Forge is a Capture The Flag (CTF) platform. From versio…5.3
- CVE-2025-59844SonarQube Server and Cloud is a static analysis solution for…7.7
- CVE-2025-59845Apollo Studio Embeddable Explorer & Embeddable Sandbox are w…8.2
- CVE-2025-59849Improper management of Content Security Policy in HCL BigFix…6.1
Are you affected by CVE-2025-59840?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
