CVE-2017-16008: XSS

Published Jun 4, 2018
·
Updated

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> &lt;script&gt;"

Recommendation

Update to version 1.10.3 or later.

Other sources

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 <=1.10.2.

Affected Software

2 affected componentsFixes available
npm/i18next<=1.10.2
1.10.3
i18next I18next Node.js<=1.10.2

Event History

Jun 4, 2018
CVE Published
via MITRE·07:00 PM
Data Sourced
via MITRE·07:00 PM
DescriptionWeakness
Nov 9, 2018
Advisory Published
05:46 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2017-16008?

The severity of CVE-2017-16008 is rated as medium with a score of 6.1.

2

What is the risk associated with CVE-2017-16008?

CVE-2017-16008 poses a risk score of 38 due to potential cross-site scripting vulnerabilities.

3

How do I fix CVE-2017-16008?

To fix CVE-2017-16008, apply the available patches provided in the i18next repository.

4

Which software is affected by CVE-2017-16008?

CVE-2017-16008 affects the i18next library used in Node.js applications.

5

How does CVE-2017-16008 allow cross-site scripting?

CVE-2017-16008 allows untrusted user input to be injected into dictionary key names, creating a vector for cross-site scripting.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203