Cross-site Scripting (XSS) Affecting i18next package, versions [,1.10.3)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.07% (35th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Cross-site Scripting (XSS) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-DOTNET-I18NEXT-60170
  • published13 Feb 2017
  • disclosed13 Feb 2017
  • creditKJ Tsanaktsidis

Introduced: 13 Feb 2017

CVE-2017-16008  (opens in a new tab)
CWE-79  (opens in a new tab)

How to fix?

Upgrade i18next to version 1.10.3 or higher.

Overview

i18next is i18next internationalization framework.

Affected versions of the package are vulnerable to Cross-site Scripting (XSS) due to the interpolation resolution code in translate.js loops over each key in the dictionary and applies replacements one at a time. Along with the unescaped suffix feature in i18next, may allow attackers to use the name of another key in the dictionary to leverage themselves to inject code into the browser.

Details

<>

CVSS Scores

version 3.1