CVE-2025-25304
February 14, 2025
Vega is a visualization grammar, a declarative format for creating, saving, and sharing interactive visualization designs. Prior to version 5.26.0 of vega and 5.4.2 of vega-selections, the "vlSelectionTuples" function can be used to call JavaScript functions, leading to cross-site scripting."vlSelectionTuples" calls multiple functions that can be controlled by an attacker, including one call with an attacker-controlled argument. This can be used to call "Function()" with arbitrary JavaScript and the resulting function can be called with "vlSelectionTuples" or using a type coercion to call "toString" or "valueOf". Version 5.26.0 of vega and 5.4.2 of vega-selections fix this issue.
Affected Packages
vega (CDN_JS):
Affected version(s) Fix Suggestion:
Update to version 5.26.0vega-selections (NPM):
Affected version(s) >=5.0.0 <5.4.2Fix Suggestion:
Update to version 5.4.2vega (NPM):
Affected version(s) Fix Suggestion:
Update to version 5.26.0Additional Notes
The description of this vulnerability differs from MITRE.
Related ResourcesĀ (5)
Do you need more information?
Contact UsCVSS v4
Base Score:
6.9
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
NONE
Subsequent System Confidentiality
LOW
Subsequent System Integrity
LOW
Subsequent System Availability
NONE
CVSS v3
Base Score:
5.3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
LOW
Weakness Type (CWE)
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
EPSS
Base Score:
0.39