CVE-2026-41692

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

Configuration 1 (hide)

cpe:2.3:a:i18next:i18nextify:*:*:*:*:*:*:*:*

History

26 Oct 2026, 20:10

Type Values Removed Values Added
Summary
  • (es) i18nextify es una biblioteca JavaScript que añade internacionalización a sitios web mediante una etiqueta script, sin cambios en el código fuente. Las versiones anteriores a la 4.0.8 sustituyen los tokens de interpolación {{key}} dentro de los valores de los atributos src y href con la cadena sin procesar devuelta por i18next.t(). La lógica de sustitución en src/localize.js (el gestor replaceInside) solo se protege contra un prefijo de origen http:// duplicado - no valida el esquema de URL del valor sustituido. Un valor traducido como javascript_disabled: alert(1) o javascript_disabled: ,[script_tag]...[/script] se aplica sin cambios al atributo DOM activo cuando un atacante puede influir en el contenido de un archivo de traducción o en la respuesta del backend de traducción - por ejemplo, a través de una CDN de traducción comprometida, configuraciones regionales aportadas por usuarios, un MitM en un backend HTTP sin cifrar, o acceso de escritura al JSON de traducción. Este problema fue parcheado en la versión 4.0.8.

Information

Published : 2026-05-07 21:16

Updated : 2026-10-26 20:10


NVD link : CVE-2026-41692

Mitre link : CVE-2026-41692

CVE.ORG link : CVE-2026-41692


JSON object : View

Products Affected

i18next

  • i18nextify
CWE
CWE-79

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

CWE-94

Improper Control of Generation of Code ('Code Injection')