CVE-2022-25646: x-data-spreadsheet through 1.1.9 vulnerable to Cross-site Scripting
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.59581%
CWE
Published
8/31/2022
Updated
1/27/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| x-data-spreadsheet | npm | <= 1.1.9 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from unsanitized cell content rendering. Since the package handles spreadsheet data display, the core cell rendering function would be responsible for outputting user-controlled values to the DOM. The provided PoC demonstrates that raw HTML/JS in cells executes when rendered, indicating the renderer doesn't sanitize outputs. While exact code isn't available, cell rendering components are the logical location for this vulnerability given the XSS through cell input description.