Read the docs
TI-2026-30289 Aliases CVE-2026-41886GHSA-w937-fg2h-xhq2

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

Priority LOW 32CWE-346Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Required
Attack complexity
High
Impact type
Security bypass, Cross-site scripting
Confidentiality · integrity · availability
Low · High · Low
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-346 and CWE-79.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00101 0th percentileScored 2026-11-07
Fix Fixed locize (locize): 4.0.21locize (npm): 4.0.21

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
locizelocizebefore 4.0.214.0.21Patch availableCNA
—locize (npm)before 4.0.214.0.21Patch availableGHSA-w937-fg2h-xhq2
  • locize Vendorlocize Affected before 4.0.21 Fixed in 4.0.21 Patch available CNA
  • locize (npm) Vendor— Affected before 4.0.21 Fixed in 4.0.21 Patch available GHSA-w937-fg2h-xhq2

Remediation

  • Fix · CNA locize (locize) Fixed in 4.0.21
  • Fix · GHSA-w937-fg2h-xhq2 locize (npm) Fixed in 4.0.21 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-41886
  2. 2026-10-03 Alias added: GHSA-w937-fg2h-xhq2

References

  • TI-2026-40016 gettext-converter: Prototype pollution in js2i18next() via crafted translation keys CVSS 4.0HIGH 8.3
  • TI-2026-30288 Path traversal / URL injection via unsanitised lng/ns/projectId/version in i18next-locize-backend CVSS 3.1MEDIUM 6.5

Sources