Loading advisory.
Loading advisory.
Cross-Site Scripting in i18next
Affected versions of i18next may fail to sanitize user input when certain configuration options are used. When using the .init method, passing interpolation options without passing an escapeValue will default to undefined rather than the assumed true.
Published 2018-05-29 20:00 UTC · Modified 2024-09-16 18:38 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| i18next | npm | >= 2.0.0, < 3.4.4 | 3.4.4 | npm install i18next@3.4.4 |
Affected versions of i18next may fail to sanitize user input when certain configuration options are used. When using the .init method, passing interpolation options without passing an escapeValue will default to undefined rather than the assumed true.
var init = i18n.init({
interpolation: {
prefix: "__",
suffix: "__",
escapeValue: true
}
}, function(){
var test = i18n.t('__firstName__ __lastName__', {
firstName: 'Bob',
lastName: '["foo","bar"]',
});
console.log(test);
});When escapeValue is explicitly passed, the result of test is:
<script>alert(1)</script> JohnsonThis is supposed to be the default. However, if escapeValue is not included, the result is the unescaped string:
<script>alert(1)</script> JohnsonUpdate to version 3.4.4 or later.
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
One EPSS score on record: 0.010 on 2026-11-24.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.010 | first score | v2026.06.15 |