-
CVSS Score
-| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| xdlocalstorage | npm | <= 2.0.5 |
The vulnerability description and CVE-2020-11610 explicitly identify the postData() function in xdLocalStoragePostMessageApi.js as the root cause. The function's use of '*' in postMessage() removes origin validation, allowing any domain to intercept messages. This matches the CWE-668 (Exposure of Resource to Wrong Sphere) classification. Code examples from GrimHacker's analysis confirm the wildcard usage in this function. While other functions like buildMessage() in xdLocalStorage.js also use insecure patterns, the primary vulnerability described in the CVE/GHSA focuses specifically on the magic iframe's postData implementation.