# CVE-2020-11610: xdlocalstorage does not verify request origin

- Severity: High 8.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.41%, higher than 73% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-04-07T17:19:06.000Z
- Modified: 2026-06-17T02:50:28.473Z
- Also known as: GHSA-mr5m-2385-2vcp
- Weaknesses: CWE-668
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- xdlocalstorage (npm): up to 2.0.5
- cross_domain_local_storage_project cross_domain_local_storage: up to 2.0.5

## Every score

- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://grimhacker.com/exploiting-xdlocalstorage-localstorage-and-postmessage/#Missing-TargetOrigin-Magic-iframe> (exploit, third-party-advisory, web)
- <https://github.com/ofirdagan/cross-domain-local-storage> (package, product)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-11610> (advisory)
- <https://github.com/ofirdagan/cross-domain-local-storage/issues/17> (web)
- <https://github.com/ofirdagan/cross-domain-local-storage/pull/19> (web)

## Sources

- CVE List: [CVE-2020-11610](https://www.cve.org/CVERecord?id=CVE-2020-11610), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-mr5m-2385-2vcp](https://github.com/advisories/GHSA-mr5m-2385-2vcp), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2020-11610](https://nvd.nist.gov/vuln/detail/CVE-2020-11610), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-11610 · Whole record: https://cve.day/CVE-2020-11610.json · Rebuilt by cve.day 2026-11-25T22:57:51.807Z
