Vulnerabilities/

i18nextify has DOM XSS via javascript:/data: URL schemes in translated href/src attributes

Severity:
Medium

Description

Versions of i18nextify prior to 4.0.8 substitute `` 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.

Recommendation

Update the i18nextify package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
i18nextify
Anything's wrong? Let us know Last updated on May 11, 2026