CleverTap Web SDK version 1.15.2 and earlier is vulnerable to Cross-site Scripting (XSS) via window.postMessage. The handleCustomHtmlPreviewPostMessageEvent function in src/util/campaignRender/nativeDisplay.js performs insufficient origin validation using the includes() method, which can be bypassed by an attacker using a subdomain.
{
"nvd_published_at": "2026-02-27T18:16:12Z",
"severity": "HIGH",
"github_reviewed_at": "2026-03-01T01:26:26Z",
"cwe_ids": [
"CWE-346",
"CWE-79"
],
"github_reviewed": true
}