MEDIUM6.1
GHSA-c6c4-jmqx-3r33
Open Redirect in xdLocalStorage
Details
An issue was discovered in xdLocalStorage through 2.0.5. The buildMessage() function in xdLocalStorage.js specifies the wildcard (*) as the targetOrigin when calling the postMessage() function on the iframe object. Therefore any domain that is currently loaded within the iframe can receive the messages that the client sends.
Are you affected?
Enter the version of the package you're using.
Affected packages
npm/xdlocalstorage
Introduced in:
0No fixed version published yet for xdlocalstorage (npm). Pin to a known-safe version or switch to an alternative.