Cross-Site Scripting in react
Affected versions of react are vulnerable to Cross-Site Scripting (XSS). The package fails to properly sanitize input used to create keys. This may allow attackers to execute arbitrary JavaScript if a key is generated from user input.
Recommendation
If you are using react 0.5.x, upgrade to version 0.5.2 or later.
If you are using react 0.4.x, upgrade to version 0.4.2 or later.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| npm package | react | >= 0.4.0, < 0.4.2, >= 0.5.0, < 0.5.2 | 0.4.2, 0.5.2 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2013-7035
- https://github.com/facebook/react/commit/393a889aaceb761f058b09a701f889fa8f8b4e64
- https://github.com/facebook/react/commit/94a9a3e752fe089ab23f3a90c26d20d46d62ab10
- https://github.com/facebook/react
- https://reactjs.org/blog/2013/12/18/react-v0.5.2-v0.4.2.html
- https://snyk.io/vuln/npm:react:20131217
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N- Weakness (CWE)
CWE-79- Platform
- npm
- Package
react- Disclosed
- 04.09.2020
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-g53w-52xc-2j85 - CC BY 4.0
Vulnerability history: react
All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 2
- First → latest
- 09.2020 09.2020
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- High 1
- Medium 1
Disclosures per year
- 2020: 2
- 2021: 0
- 2022: 0
- 2023: 0
- 2024: 0
- 2025: 0
- 2026: 0
-
Cross-Site Scripting in react this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.