Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. i18nextify
  4. ›
  5. GHSA-6457-mxpq-4fqq

GHSA-6457-mxpq-4fqq: i18nextify has DOM XSS via javascript:/data: URL schemes in translated href/src attributes

April 22, 2026

Versions of i18nextify 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 (replaceInside handler around line 122) 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.

References

  • github.com/advisories/GHSA-6457-mxpq-4fqq
  • github.com/i18next/i18nextify
  • github.com/i18next/i18nextify/security/advisories/GHSA-6457-mxpq-4fqq

Code Behaviors & Features

Detect and mitigate GHSA-6457-mxpq-4fqq with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 4.0.8

Fixed versions

  • 4.0.8

Solution

Upgrade to version 4.0.8 or above.

Impact 4.7 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

npm/i18nextify/GHSA-6457-mxpq-4fqq.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:20:22 +0000.