CVE-2020-11611: Open Redirect in xdLocalStorage
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.36341%
CWE
Published
12/9/2021
Updated
2/1/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 |
---|---|---|---|
xdLocalStorage | npm | <= 2.0.5 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The core vulnerability stems from two key functions: 1) buildMessage() in the client library uses '' targetOrigin when sending messages to the iframe, allowing message interception if the iframe is compromised. 2) postData() in the iframe API similarly uses '' when responding, exposing storage data to any parent domain. Both were explicitly referenced in vulnerability analyses and code examples, with the wildcard targetOrigin violating postMessage security best practices by failing to restrict message recipients.