Vulnerability · Published May 7, 2026 · Assigned by GitHub_M
CVE-2026-41692i18nextify is vulnerable to DOM XSS via javascript:/data: URL schemes in translated href/src attributes
Medium 4.7
In plain English
A medium-severity cross-site scripting in i18nextify from i18next. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.1% (higher than 4% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
i18nextify is a JavaScript library that adds website internationalization via a script tag, without source code changes. Versions prior to 4.0.8 substitute {{key}} interpolation tokens inside src and href attribute values with the raw string returned by i18next.t(). The substitution logic in src/localize.js (the replaceInside handler) only guards against a duplicated http:// origin prefix — it does not validate the URL scheme of the substituted value. A translated value such as javascript:alert(1) or data:text/html,<script>...</script> is applied unchanged to the live DOM attribute when an attacker can influence the content of a translation file or the translation-backend response — for example, via a compromised translation CDN, user-contributed locales, a MITM on a plain-HTTP backend, or write access to the translation JSON. This issue was patched in version 4.0.8.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | i18nextify | 4.0.8 | GHSA-6457-mxpq-4fqq |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| i18next | i18nextify | < 4.0.8 |
Weakness: CWE-79, CWE-94 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N