Vulnerabilities/

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

Severity:
High

Description

Versions of the locize client SDK (the browser module that wires up the locize InContext translation editor) prior to 4.0.21 register a window.addEventListener("message", …) handler that dispatches to registered internal handlers (editKey, commitKey, commitKeys, isLocizeEnabled, requestInitialize, …) without validating event.origin.

Recommendation

Update the locize package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
locize
Anything's wrong? Let us know Last updated on May 13, 2026