Description
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
Update the react package to the latest compatible version. Followings are version details:
Affected version(s): **>= 0.5.0, < 0.5.2 >= 0.4.0, < 0.4.2** Patched version(s): **0.5.2 0.4.2**
References
Could your website be exposed too?
SmartScanner can check your website for Cross-Site Scripting in react - react and gives you actionable findings to investigate.
Start a free scanRelated Issues
- jplayer Cross Site Scripting vulnerability - CVE-2013-2022
- React Draft Wysiwyg Cross-Site Scripting (XSS) via the Embedded Button - CVE-2025-3191
- Cross-Site Scripting in yui - CVE-2013-4939
- YUI Cross-site Scripting (XSS) vulnerability - yui - GHSA-x5hj-47vv-53p8 - CVE-2013-4940


