CVE-2025-25304 - Medium Severity Vulnerability
Vulnerable Library - vega-selections-5.4.1.tgz
Vega expression functions for Vega-Lite selections.
Library home page: https://registry.npmjs.org/vega-selections/-/vega-selections-5.4.1.tgz
Path to dependency file: /package.json
Path to vulnerable library: /package.json
Dependency Hierarchy:
- vega-5.23.0.tgz (Root Library)
- vega-functions-5.13.1.tgz
- ❌ vega-selections-5.4.1.tgz (Vulnerable Library)
Found in base branch: main
Vulnerability Details
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.
Publish Date: 2025-02-14
URL: CVE-2025-25304
CVSS 3 Score Details (5.3)
Base Score Metrics:
- Exploitability Metrics:
- Attack Vector: Network
- Attack Complexity: Low
- Privileges Required: None
- User Interaction: None
- Scope: Unchanged
- Impact Metrics:
- Confidentiality Impact: None
- Integrity Impact: None
- Availability Impact: Low
For more information on CVSS3 Scores, click here.
Suggested Fix
Type: Upgrade version
Origin: GHSA-mp7w-mhcv-673j
Release Date: 2025-02-14
Fix Resolution: vega-selections - 5.4.2
CVE-2025-25304 - Medium Severity Vulnerability
Vega expression functions for Vega-Lite selections.
Library home page: https://registry.npmjs.org/vega-selections/-/vega-selections-5.4.1.tgz
Path to dependency file: /package.json
Path to vulnerable library: /package.json
Dependency Hierarchy:
Found in base branch: main
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.
Publish Date: 2025-02-14
URL: CVE-2025-25304
Base Score Metrics:
- Exploitability Metrics:
- Attack Vector: Network
- Attack Complexity: Low
- Privileges Required: None
- User Interaction: None
- Scope: Unchanged
- Impact Metrics:
- Confidentiality Impact: None
- Integrity Impact: None
- Availability Impact: Low
For more information on CVSS3 Scores, click here.Type: Upgrade version
Origin: GHSA-mp7w-mhcv-673j
Release Date: 2025-02-14
Fix Resolution: vega-selections - 5.4.2