CVE-2017-16008
MEDIUM6.1EPSS 0.22%Cross-Site Scripting in i18next
Published: 11/9/2018Modified: 11/8/2023
Also known as:GHSA-f89g-whpf-6q9m
Description
Affected versions of `i18next` allow untrusted user input to be injected into dictionary key names, resulting in a cross-site scripting vulnerability. ## Proof of Concept ```js var init = i18n.init({debug: true}, function(){ var test = i18n.t('__firstName__ __lastName__', { escapeInterpolation: true, firstName: '__lastNameHTML__', lastName: '<script>', }); console.log(test); }); // equals "<script> <script>" ``` ## Recommendation Update to version 1.10.3 or later.
Affected packages (1)
- npm/i18nextfrom 0, < 1.10.3
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM6.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |