i18nextify is vulnerable to DOM XSS via javascript:/data: URL schemes in translated href/src attributes
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- High
- Impact type
- Cross-site scripting, Code execution
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79 and CWE-94.
Summary
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.
Why it matters now
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
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| i18next | i18nextify | before 4.0.8 | 4.0.8 | Patch available | CNA |
| — | i18nextify (npm) | before 4.0.8 | 4.0.8 | Patch available | GHSA-6457-mxpq-4fqq |
- i18nextify Vendori18next Affected before 4.0.8 Fixed in 4.0.8 Patch available CNA
- i18nextify (npm) Vendor— Affected before 4.0.8 Fixed in 4.0.8 Patch available GHSA-6457-mxpq-4fqq
Remediation
- Fix · CNA i18nextify (i18next) Fixed in 4.0.8
- Fix · GHSA-6457-mxpq-4fqq i18nextify (npm) Fixed in 4.0.8 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-41692
- 2026-10-03 Alias added: GHSA-6457-mxpq-4fqq
References
Sources
- CVE-2026-41692 · CVE Program
- CVE-2026-41692 · NVD
- FIRST EPSS
- GHSA-6457-mxpq-4fqq · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences