{"id":"GHSA-f89g-whpf-6q9m","summary":"Cross-Site Scripting in i18next","details":"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 &lt;script&gt;\"\n```\n\n\n## Recommendation\n\nUpdate to version 1.10.3 or later.","aliases":["CVE-2017-16008"],"modified":"2023-11-08T03:58:59.466803Z","published":"2018-11-09T17:46:56Z","database_specific":{"nvd_published_at":null,"cwe_ids":["CWE-79"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2020-06-16T21:34:06Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2017-16008"},{"type":"WEB","url":"https://github.com/i18next/i18next/pull/443"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-f89g-whpf-6q9m"},{"type":"WEB","url":"https://www.npmjs.com/advisories/325"}],"affected":[{"package":{"name":"i18next","ecosystem":"npm","purl":"pkg:npm/i18next"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.10.3"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 1.10.2","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2018/11/GHSA-f89g-whpf-6q9m/GHSA-f89g-whpf-6q9m.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}