CVE-2017-16010 Cross-Site Scripting in i18next
Attackers can execute arbitrary scripts via XSS in i18next when interpolation options are configured without explicitly setting escapeValue to true.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2017-16010?
CVE-2017-16010 is a medium-severity cross-site scripting vulnerability in HackerOne i18next node module, published on 29 May 2018. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
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.
Weakness: CWE-79
Which versions are affected by CVE-2017-16010?
2 open source packages ship an affected version, including i18next. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
i18next npm | From 2.0.0 | 3.4.4 |
i18next npm | From 2.0.0 | 3.4.4 |
Products include I18next I18next.
How do I fix CVE-2017-16010?
Upgrade i18next to 3.4.4 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2017-16010 being exploited?
There is no known exploitation of CVE-2017-16010 in the wild and no public exploit code.
Other vulnerabilities in HackerOne i18next node module
Sources
Also known as GHSA-cmh5-qc8w-xvcq.