CVE-2015-9545: Improper Input Validation in xdLocalStorage
7.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.62676%
CWE
Published
12/9/2021
Updated
1/29/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
xdLocalStorage | npm | <= 2.0.5 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from two primary issues: 1) Missing origin validation in receiveMessage()
functions (CWE-20), explicitly cited in CVE-2015-9545 and GHSA-76qm-4f93-fg6f. 2) Insecure use of wildcard targetOrigin
in postMessage()
calls (buildMessage and postData), as demonstrated in the GitHub pull request and blog post analysis. Both the client (xdLocalStorage.js
) and magic iframe (xdLocalStoragePostMessageApi.js
) components are affected. The lack of origin checks allows cross-domain message injection, while the wildcard targetOrigin
enables data leakage to untrusted domains.