Cross-site Scripting (XSS) Affecting react package, versions >=0.5.0 <0.5.2>=0.4.0 <0.4.2


Severity

Recommended
0.0
medium
0
10

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

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 IDnpm:react:20131217
  • published18 Jan 2017
  • disclosed16 Dec 2013
  • creditPaul O’Shannessy, Thomas Aylott

Introduced: 16 Dec 2013

CVE-2013-7035  (opens in a new tab)
CWE-79  (opens in a new tab)

How to fix?

This vulnerability only affects v0.5.x and v0.4.x. Versions in the 0.3.x family are unaffected. Upgrade react to version 0.5.2\0.4.2 or higher.

Overview

react is React is a JavaScript library for building user interfaces..

Affected versions of the package contain Cross-site Scripting (XSS) vulnerability due to unescaped text before inserted into the DOM.

A Cross-site Scripting (XSS) vulnerability can arise when using user data as a key. Typically "safe" data is used for a key, for example, an id from your database, or a unique hash. However there are cases where it may be reasonable to use user generated content. A carefully crafted piece of content could result in arbitrary code execution.

Details

<>

CVSS Scores

version 3.1