CVE-2015-9544: 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
2/1/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 key issues: 1) receiveMessage()
in the iframe implementation lacks origin validation despite handling sensitive localStorage
operations, as explicitly stated in CVE-2015-9544 description. 2) buildMessage()
in the client code uses insecure wildcard targetOrigin when sending messages, as shown in the code snippets from GitHub issues and the pull request attempting to fix it. Both functions are directly referenced in vulnerability descriptions and code analysis from multiple sources including NVD, GitHub advisory, and the project's own issue tracker.