CVE Catalog

CVE-2025-65110

High
Published: Translated: NVD NIST

Summary

A vulnerability in Vega library before versions 6.1.2 and 5.6.3 allows arbitrary JavaScript execution (DOM XSS) in applications that expose Vega and View objects globally and allow user-defined Vega specifications. The attack requires user interaction, such as opening a malicious specification.

Risk Assessment

The risk involves potential session hijacking, data theft, or content modification within the application context, potentially leading to confidentiality and integrity breaches for the organization.

Recommendation

Immediately update Vega to version 6.1.2 or 5.6.3 (or later) and restrict user-provided Vega definitions where feasible.

Related vulnerabilities

Original NVD description (English source)

Vega is a visualization grammar, a declarative format for creating, saving, and sharing interactive visualization designs. Prior to versions 6.1.2 and 5.6.3, applications meeting two conditions are at risk of arbitrary JavaScript code execution, even if "safe mode" expressionInterpreter is used. First, they use `vega` in an application that attaches both `vega` library and a `vega.View` instance similar to the Vega Editor to the global `window`, or has any other satisfactory function gadgets in the global scope. Second, they allow user-defined Vega `JSON` definitions (vs JSON that was is only provided through source code). This vulnerability allows for DOM XSS, potentially stored, potentially reflected, depending on how the library is being used. The vulnerability requires user interaction with the page to trigger. An attacker can exploit this issue by tricking a user into opening a malicious Vega specification. Successful exploitation allows the attacker to execute arbitrary JavaScrip

Vulnerability data from NVD (NIST) · CISA KEV · EPSS