CVE-2017-16010: XSS

Published May 29, 2018
·
Updated

Affected versions of i18next may fail to sanitize user input when certain configuration options are used. When using the .init method, passing interpolation options without passing an escapeValue will default to undefined rather than the assumed true.

Proof of Concept

js var init = i18n.init({ interpolation: { prefix: "", suffix: "", escapeValue: true } }, function(){ var test = i18n.t('firstName lastName', { firstName: 'Bob', lastName: '["foo","bar"]', }); console.log(test); }); When escapeValue is explicitly passed, the result of test is:

html <script>alert(1)</script> Johnson

This is supposed to be the default. However, if escapeValue is not included, the result is the unescaped string: html <script>alert(1)</script> Johnson

Recommendation

Update to version 3.4.4 or later.

Other sources

i18next is a language translation framework. When using the .init method, passing interpolation options without passing an escapeValue will default to undefined rather than the assumed true. This can result in a cross-site scripting vulnerability because user input is assumed to be escaped, but is not. This vulnerability affects i18next 2.0.0 and later.

Affected Software

2 affected componentsFixes available
npm/i18next>=2.0.0<3.4.4
3.4.4
i18next I18next Node.js>=2.0.0<=3.4.3

Event History

May 29, 2018
CVE Published
via MITRE·08:00 PM
Data Sourced
via MITRE·08:00 PM
DescriptionWeakness
Jul 24, 2018
Advisory Published
07:58 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-16010?

The severity of CVE-2017-16010 is classified as medium with a score of 6.1.

2

What kind of vulnerability is CVE-2017-16010?

CVE-2017-16010 is an XSS vulnerability due to improper input sanitization in the i18next library.

3

How do I fix CVE-2017-16010?

To fix CVE-2017-16010, ensure to set the 'escapeValue' option to true when using the .init method.

4

Which software versions are affected by CVE-2017-16010?

CVE-2017-16010 affects certain versions of the i18next library used in Node.js applications.

5

What happens if the issues in CVE-2017-16010 are exploited?

If exploited, CVE-2017-16010 could allow attackers to inject malicious scripts through unsanitized user input, leading to XSS attacks.

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