Last tested: 20 Feb, 2018

react vulnerabilities

React is a JavaScript library for building user interfaces.

View on npm

react (latest)

Published 19 Feb, 2018

Known vulnerabilities0
Vulnerable paths0
Dependencies19

No known vulnerabilities in react

Security wise, react seems to be a safe package to use.
Over time, new vulnerabilities may be disclosed on react and other packages. To easily find, fix and prevent such vulnerabilties, protect your repos with Snyk!

Vulnerable versions of react

Fixed in 0.14.0

Cross-site Scripting (XSS)

high severity

Detailed paths

  • Introduced through: react@0.13.3

Overview

react is React is a JavaScript library for building user interfaces.. Affected versions of the package are vulnerable to Cross-site Scripting (XSS) due to the createElement method not validating the object, allowing a malicious user to pass a specially crafted JSON object and renders them as an element.

Remediation

Upgrade react to version 0.14.0 or higher.

References

Fixed in 0.5.2

Cross-site Scripting (XSS)

medium severity
  • Vulnerable module: react
  • Introduced through: react@0.5.1

Detailed paths

  • Introduced through: react@0.5.1

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.

Details

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.

Remediation

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.

References