Origin Validation Error Affecting locize package, versions <4.0.21


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.01% (4th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-LOCIZE-16421454
  • published5 May 2026
  • disclosed22 Apr 2026
  • creditUnknown

Introduced: 22 Apr 2026

NewCVE-2026-41886  (opens in a new tab)
CWE-346  (opens in a new tab)
CWE-79  (opens in a new tab)

How to fix?

Upgrade locize to version 4.0.21 or higher.

Overview

locize is a This package adds the incontext editor to your i18next setup.

Affected versions of this package are vulnerable to Origin Validation Error in the window.addEventListener message handler due to missing validation of the event.origin property. An attacker can execute arbitrary JavaScript, inject malicious CSS, or hijack internal handler processes by sending crafted postMessage events from a malicious origin. This is only exploitable if the attacker-controlled page shares a window reference with the target, such as through an iframe, window.opener, or parent frame relationship.

CVSS Base Scores

version 4.0
version 3.1