{"id":"CVE-2017-16010","aliases":["GHSA-cmh5-qc8w-xvcq"],"url":"https://o3.security/vulnerability/CVE-2017-16010","summary":"Cross-Site Scripting in i18next","details":"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`. \n\n## Proof of Concept\n\n```js\nvar init = i18n.init({\n  interpolation: {\n    prefix: \"__\",\n    suffix: \"__\",\n    escapeValue: true\n  }\n}, function(){\n  var test = i18n.t('__firstName__ __lastName__', {\n        firstName: 'Bob',\n        lastName: '[\"foo\",\"bar\"]',\n  });\n  console.log(test);\n});\n```\nWhen `escapeValue` is explicitly passed, the result of `test` is: \n\n```html\n&lt;script&gt;alert(1)&lt;&#x2F;script&gt; Johnson\n```\n\nThis is supposed to be the default. However, if `escapeValue` is not included, the result is the unescaped string: \n \n```html\n<script>alert(1)</script> Johnson\n```\n\n\n## Recommendation\n\nUpdate to version 3.4.4 or later.","published":"2018-05-29T20:29:02.190Z","modified":"2026-10-20T10:48:17.671928688Z","cvss":{"score":6.1,"severity":"MEDIUM","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},"epss":{"score":0.00982,"percentile":0.63176,"asOf":"2026-11-23"},"cisaKev":null,"exploitsKnown":2,"affectedPackages":[{"ecosystem":"npm","name":"i18next","fixedVersion":"3.4.4"}],"fix":{"url":"https://github.com/i18next/i18next/pull/826","label":"i18next/i18next#826"},"references":[{"type":"REPORT","url":"https://github.com/i18next/i18next/pull/826"},{"type":"EVIDENCE","url":"https://nodesecurity.io/advisories/326"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2017-16010"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-cmh5-qc8w-xvcq"},{"type":"WEB","url":"https://www.npmjs.com/advisories/326"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-20T10:48:17.671928688Z"}}