CVE-2017-16008
Cross-Site Scripting in i18next
6.1
MEDIUM
CVSS 3.1
EPSS 0.86%
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.
How to fix CVE-2017-16008
To remediate CVE-2017-16008, upgrade the affected package to a fixed version below.
- —upgrade to 1.10.3 or later
Is CVE-2017-16008 being exploited?
Low — EPSS is 0.9%, meaning exploitation activity has not been observed at scale.
Affected packages (1)
- from 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 |