Medium
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2020-11611
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 10:48 UTC · Revision 1
Source evidence
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.
osv:CVE-2020-11611
Complete source record
{
"id": "079483f5c11fcbf1d71a808bb35900e9c073e1612852d971d29a2b884addcd58",
"url": "https://osv.dev/vulnerability/CVE-2020-11611",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2020-11611",
"summary": "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.",
"evidence": "osv:CVE-2020-11611",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2020-11611",
"aliases": [
"CVE-2020-11611",
"GHSA-c6c4-jmqx-3r33"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/ofirdagan/cross-domain-local-storage",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "9c01ec482e063f6dabbca52d4dcf77adf85c2eee"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:cross_domain_local_storage_project:cross_domain_local_storage:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "2.0.5"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"2.0.5",
"2.0.4",
"2.0.3",
"2.0.2",
"2.0.1",
"2.0.0",
"1.0.12",
"1.0.11",
"1.0.10",
"1.0.9",
"1.0.8",
"1.0.7",
"1.0.6",
"1.0.5",
"1.0.4",
"1.0.3",
"1.0.2",
"1.0.1"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-11611.json"
}
}
],
"modified": "2026-10-20T10:51:45.772402639Z",
"provider": "osv",
"references": [
"https://github.com/ofirdagan/cross-domain-local-storage",
"https://grimhacker.com/exploiting-xdlocalstorage-localstorage-and-postmessage/#Missing-TargetOrigin-Client"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2020-11611",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 382885,
"published_at": "2020-04-07T18:15:13.633+00:00"
}