{"id":"CVE-2026-41886","published":"2026-05-08T15:45:23Z","modified":"2026-05-08T21:26:51Z","title":"locize Client SDK: Cross-origin DOM XSS & Handler Hijack Through Missing e.origin Validation in InContext Editor","vendor":"locize","product":"locize","tier":"tail","description":{"text":"locize is a localization platform that connects code and i18n setup. Prior to version 4.0.21, the locize client SDK registers a window.addEventListener(\"message\", …) handler that dispatches to registered internal handlers (editKey, commitKey, commitKeys, isLocizeEnabled, requestInitialize, …) without validating event.origin. The pre-patch listener in src/api/postMessage.js gates dispatch on event.data.sender === \"i18next-editor-frame\" — that value sits inside the attacker-controlled message payload, not the browser-enforced origin. Any web page that could embed or be embedded by a locize-enabled host — an iframe on a third-party page, a window.open-ed victim, a parent frame reaching down — could send a crafted postMessage and trigger the internal handlers. This issue has been patched in version 4.0.21.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00101,"percentile":0.00921,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-346","name":"Origin Validation Error"}],"references":[{"url":"https://github.com/locize/locize/security/advisories/GHSA-w937-fg2h-xhq2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/locize/locize/releases/tag/v4.0.21","tags":["x_refsource_MISC"]}],"priority":{"score":5.4,"factors":[{"name":"EPSS percentile","points":0.18},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"locize","affectedVersions":[{"vendor":"locize","product":"locize","versions":["< 4.0.21"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-08T17:09:37.364700Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"locize","vulnerableRanges":["<4.0.21"],"patched":["4.0.21"],"from":["GHSA-w937-fg2h-xhq2"],"provenance":"source"}],"summary":{"text":"The locize client SDK, prior to version 4.0.21, has a window message listener that dispatches to internal handlers (such as editKey and commitKey) without validating event.origin, instead relying on a sender value contained in the attacker-controllable message payload. An attacker needs a web page that can embed or be embedded by a locize-enabled host, and the attack requires user interaction, with the attacker's page able to send a crafted postMessage that can trigger cross-site scripting and hijack the handlers.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:18:09Z"},"euvd":{"id":"EUVD-2026-28796","exploited":false,"provenance":"source"}}