Vulnerability library
Security checkMay 13, 2026

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

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpmlocize

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

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:

  • Affected version(s): < 4.0.21
  • Patched version(s): 4.0.21

References

Could your website be exposed too?

SmartScanner can check your website for locize Client SDK: Cross-origin DOM XSS & Handler Hijack Through Missing e.origin Validation in InContext Editor and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated May 13, 2026