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
Older versions of react that have had vulnerabilities.
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.
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.
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.