CVE-2024-57556: Cross Site Scripting vulnerability in store2
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.28177%
CWE
Published
1/24/2025
Updated
1/24/2025
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 |
|---|---|---|---|
| store2 | npm | < 2.14.4 | 2.14.4 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the store.deep.js component's use of eval() in processing keys, as explicitly shown in GitHub issue #127. The proof-of-concept demonstrates XSS via crafted keys containing semicolons and alert() calls. The patch in PR #128 replaces eval() with a safe path resolution mechanism, confirming this was the vulnerable function. The combination of user-controlled input reaching eval() without proper sanitization creates the XSS vector.