# CVE-2026-41886: locize Client SDK: Cross-origin DOM XSS & Handler Hijack Through Missing e.origin Validation in InContext Editor

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 2% of CVEs (2026-11-29)
- Published: 2026-04-22T20:32:11.000Z
- Modified: 2026-06-17T10:47:08.593Z
- Also known as: GHSA-w937-fg2h-xhq2
- Weaknesses: CWE-79, CWE-346
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- locize locize: < 4.0.21
- locize (npm): before 4.0.21

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:H/A:L`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:H/A:L`

## References

- <https://github.com/locize/locize/security/advisories/GHSA-w937-fg2h-xhq2> (web)
- <https://github.com/locize/locize/releases/tag/v4.0.21> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-41886> (advisory)
- <https://github.com/locize/locize/commit/d006b75fadb8e8ab77b023e462850fc6e9170735> (web)
- <https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage#security_concerns> (web)
- <https://github.com/locize/locize> (package)

## Sources

- CVE List: [CVE-2026-41886](https://www.cve.org/CVERecord?id=CVE-2026-41886), CVE Terms of Use, modified 2026-05-08
- GitHub Advisory Database: [GHSA-w937-fg2h-xhq2](https://github.com/advisories/GHSA-w937-fg2h-xhq2), CC-BY-4.0, modified 2026-05-13
- NVD: [CVE-2026-41886](https://nvd.nist.gov/vuln/detail/CVE-2026-41886), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-41886 · Whole record: https://cve.day/CVE-2026-41886.json · Rebuilt by cve.day 2026-11-25T22:59:21.097Z
