{"id":"GHSA-vrc7-6g8w-jh56","summary":"Improper Input Validation in xdLocalStorage","details":"An issue was discovered in xdLocalStorage through 2.0.5. The receiveMessage() function in xdLocalStoragePostMessageApi.js does not implement any validation of the origin of web messages. Remote attackers who can entice a user to load a malicious site can exploit this issue to impact the confidentiality and integrity of data in the local storage of the vulnerable site via malicious web messages.","aliases":["CVE-2015-9544"],"modified":"2023-11-08T03:58:04.930375Z","published":"2021-12-09T19:29:36Z","database_specific":{"cwe_ids":["CWE-20"],"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2021-05-25T16:20:26Z","nvd_published_at":"2020-04-07T18:15:00Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2015-9544"},{"type":"WEB","url":"https://github.com/ofirdagan/cross-domain-local-storage/issues/17"},{"type":"WEB","url":"https://github.com/ofirdagan/cross-domain-local-storage/pull/19"},{"type":"WEB","url":"https://github.com/ofirdagan/cross-domain-local-storage"},{"type":"WEB","url":"https://grimhacker.com/exploiting-xdlocalstorage-localstorage-and-postmessage/#Missing-Origin-Magic-iframe"}],"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-vrc7-6g8w-jh56/GHSA-vrc7-6g8w-jh56.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N"}]}