Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. xdlocalstorage
  4. ›
  5. CVE-2020-11610

CVE-2020-11610: Exposure of Resource to Wrong Sphere

May 24, 2022 (updated July 17, 2023)

An issue was discovered in xdLocalStorage through 2.0.5. The postData() function in xdLocalStoragePostMessageApi.js specifies the wildcard (*) as the targetOrigin when calling the postMessage() function on the parent object. Therefore any domain can load the application hosting the “magical iframe” and receive the messages that the “magical iframe” sends.

References

  • github.com/advisories/GHSA-mr5m-2385-2vcp
  • github.com/ofirdagan/cross-domain-local-storage/issues/17
  • github.com/ofirdagan/cross-domain-local-storage/pull/19
  • grimhacker.com/exploiting-xdlocalstorage-localstorage-and-postmessage/
  • nvd.nist.gov/vuln/detail/CVE-2020-11610

Code Behaviors & Features

Detect and mitigate CVE-2020-11610 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 2.0.5

Solution

Unfortunately, there is no solution available yet.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-668: Exposure of Resource to Wrong Sphere

Source file

npm/xdlocalstorage/CVE-2020-11610.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:20 +0000.