Open Redirect Affecting xdlocalstorage package, versions *


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.14% (51st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Open Redirect vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-XDLOCALSTORAGE-2314894
  • published10 Dec 2021
  • disclosed9 Dec 2021
  • creditGrimHacker

Introduced: 9 Dec 2021

CVE-2020-11611  (opens in a new tab)
CWE-601  (opens in a new tab)

How to fix?

There is no fixed version for xdlocalstorage.

Overview

xdlocalstorage is a lightweight js library which implements LocalStorage interface and support cross domain storage by using iframe post message communication.

Affected versions of this package are vulnerable to Open Redirect. 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.

References

CVSS Scores

version 3.1