{"id":"CVE-2017-16008","aliases":["EUVD-2018-0747","GHSA-f89g-whpf-6q9m"],"status":"published","title":"Cross-Site Scripting in i18next","description":"i18next is a language translation framework. Because of how the interpolation is implemented, making replacements from the dictionary one at a time, untrusted user input can use the name of one of the dictionary keys to inject script into the browser. This affects i18next \u003c=1.10.2.","severity":{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-07","score":0.00849,"percentile":0.58372,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2018-06-04T19:00:00Z","modified":"2026-10-20T10:48:17Z","fixes":[{"ecosystem":"npm","package":"i18next","fixed_in":["1.10.3"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"i18next","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"1.10.2"},{"fixed":"1.10.3"}]}]},{"source":"osv","ecosystem":"npm","package":"i18next","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.10.3"}]}]}],"products":[{"vendor":"hackerone","product":"i18next node module"},{"vendor":"i18next","product":"i18next"}],"references":[{"url":"https://nodesecurity.io/advisories/325","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence"]},{"url":"https://github.com/i18next/i18next/pull/443","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Patch","Third Party Advisory","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-16008","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-f89g-whpf-6q9m","tags":["advisory"]},{"url":"https://www.npmjs.com/advisories/325","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2017-16008","description":"i18next is a language translation framework. Because of how the interpolation is implemented, making replacements from the dictionary one at a time, untrusted user input can use the name of one of the dictionary keys to inject script into the browser. This affects i18next \u003c=1.10.2.","status":"published","published":"2018-06-04T19:00:00Z","modified":"2024-09-16T17:53:16.453Z","cwes":["CWE-79"],"updated_at":"2026-11-02T14:33:21.453505Z"}],"euvd":[{"id":"EUVD-2018-0747","description":"i18next is a language translation framework. Because of how the interpolation is implemented, making replacements from the dictionary one at a time, untrusted user input can use the name of one of the dictionary keys to inject script into the browser. This affects i18next \u003c=1.10.2.","status":"published","published":"2018-06-04T19:00:00Z","modified":"2024-09-16T17:53:16Z","updated_at":"2026-11-03T00:55:37.743963Z"}],"ghsa":[{"id":"GHSA-f89g-whpf-6q9m","title":"Cross-Site Scripting in i18next","description":"Affected versions of `i18next` allow untrusted user input to be injected into dictionary key names, resulting in a cross-site scripting vulnerability.\n\n## Proof of Concept\n```js\nvar init = i18n.init({debug: true}, function(){\n  var test = i18n.t('__firstName__ __lastName__', {\n        escapeInterpolation: true,\n        firstName: '__lastNameHTML__',\n        lastName: '\u003cscript\u003e',\n  });\n  console.log(test);\n});\n// equals \"\u003cscript\u003e \u0026lt;script\u0026gt;\"\n```\n\n\n## Recommendation\n\nUpdate to version 1.10.3 or later.","status":"published","published":"2018-11-09T17:46:56Z","modified":"2023-09-08T23:59:07Z","cvss":[{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:37:03.916765Z"}],"nvd":[{"id":"CVE-2017-16008","description":"i18next is a language translation framework. Because of how the interpolation is implemented, making replacements from the dictionary one at a time, untrusted user input can use the name of one of the dictionary keys to inject script into the browser. This affects i18next \u003c=1.10.2.","status":"published","published":"2018-06-04T19:29:00.677Z","modified":"2026-06-17T01:08:38.14Z","cvss":[{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:04:17.638656Z"}],"osv":[{"id":"CVE-2017-16008","description":"i18next is a language translation framework. Because of how the interpolation is implemented, making replacements from the dictionary one at a time, untrusted user input can use the name of one of the dictionary keys to inject script into the browser. This affects i18next \u003c=1.10.2.","status":"published","published":"2018-06-04T19:29:00.677Z","modified":"2026-10-20T10:48:17.672243664Z","cvss":[{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:44:04.853379Z"},{"id":"GHSA-f89g-whpf-6q9m","title":"Cross-Site Scripting in i18next","description":"Affected versions of `i18next` allow untrusted user input to be injected into dictionary key names, resulting in a cross-site scripting vulnerability.\n\n## Proof of Concept\n```js\nvar init = i18n.init({debug: true}, function(){\n  var test = i18n.t('__firstName__ __lastName__', {\n        escapeInterpolation: true,\n        firstName: '__lastNameHTML__',\n        lastName: '\u003cscript\u003e',\n  });\n  console.log(test);\n});\n// equals \"\u003cscript\u003e \u0026lt;script\u0026gt;\"\n```\n\n\n## Recommendation\n\nUpdate to version 1.10.3 or later.","status":"published","published":"2018-11-09T17:46:56Z","modified":"2023-11-08T03:58:59.466803Z","cvss":[{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:46.006631Z"}]}}
