Skip to main content
VulnerabilityPublished Updated

CVE-2025-59840: Vega.js · Vega is a visualization grammar, a declarative format for creating, saving, and sharing

Affects vega.jsSource GCVE Database

0
Compare
Authoritative record:CVE-2025-59840· High 8.1

Not known to be exploited · CVSS 8.1 High.

Data as of 24 Nov 2026, 21:15 UTC

CVSS 3.1 base score
8.1High
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (GitHub_M)CVSS 3.18.1
EPSS
0.4% chance of exploitation in 30 days – higher than 37% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 13 Nov 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.

What to do

Affected software

ProductAffectedFixed in
Ubuntu 26.10vega.jspkg:deb/ubuntu/vega.js?arch=source&distro=stonkingOther threatsAffected
  • =5.28.0+ds+~cs5.3.0-2
  • =5.33.1+ds+~cs5.3.0-4
Fixed in–
Ubuntu 26.04 LTSvega.jspkg:deb/ubuntu/vega.js?arch=source&distro=resoluteOther threatsAffected
  • =5.28.0+ds+~cs5.3.0-1
  • =5.28.0+ds+~cs5.3.0-2
Fixed in–
Ubuntu 25.10vega.jspkg:deb/ubuntu/vega.js?arch=source&distro=questingOther threatsAffected
  • =5.28.0+ds+~cs5.3.0-1
Fixed in–
Ubuntu 24.04 LTSvega.jspkg:deb/ubuntu/vega.js?arch=source&distro=nobleOther threatsAffected
  • =5.25.0+ds+~cs5.3.0-2
  • =5.25.0+ds+~cs5.3.0-5
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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.

References

Community reviews

Loading reviews…