Cross-site Scripting (XSS) Affecting org.webjars.bower: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

Exploit Maturity
Mature
EPSS
0.07% (34th 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-JAVA-ORGWEBJARSBOWER-479746
  • published13 Feb 2017
  • disclosed17 Oct 2015
  • creditKJ Tsanaktsidis

Introduced: 17 Oct 2015

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

How to fix?

Upgrade org.webjars.bower:i18next to version 1.10.3 or higher.

Overview

org.webjars.bower:i18next is an internationalization framework for browser or any other javascript environment (eg. node.js).

Affected versions of this 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