{"id":"GHSA-c6c4-jmqx-3r33","summary":"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.","aliases":["CVE-2020-11611"],"modified":"2023-11-08T04:02:06.768541Z","published":"2021-12-09T19:30:14Z","database_specific":{"github_reviewed_at":"2021-05-25T16:23:58Z","nvd_published_at":"2020-04-07T18:15:00Z","cwe_ids":["CWE-601"],"severity":"MODERATE","github_reviewed":true},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-11611"},{"type":"WEB","url":"https://github.com/ofirdagan/cross-domain-local-storage"},{"type":"WEB","url":"https://grimhacker.com/exploiting-xdlocalstorage-localstorage-and-postmessage/#Missing-TargetOrigin-Client"}],"affected":[{"package":{"name":"xdlocalstorage","ecosystem":"npm","purl":"pkg:npm/xdlocalstorage"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"2.0.5"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/12/GHSA-c6c4-jmqx-3r33/GHSA-c6c4-jmqx-3r33.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}