HighGHSA-hg79-j56m-fxgv
Cross-Site Scripting in react
Published 4 Sept 2020 · Updated 1 Oct 2021
Affected package
reactnpm
- Affected
- >=0.0.1 <0.14.0
- Fixed in
- 0.14.0
Update to the fixed version for your release line, for example:
npm install react@0.14.0Details
Versions of react prior to 0.14.0 are vulnerable to Cross-Site Scripting (XSS). The package's createElement function fails to properly validate its input object, allowing attackers to execute arbitrary JavaScript in a victim's browser.
Recommendation
Upgrade to version 0.14.0 or later.
Is GHSA-hg79-j56m-fxgv in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected react, and gives you the command that fixes it.
References
- Packagegithub.com/facebook/react
- Linkreactjs.org/blog/2015/10/07/react-v0.14.html#notable-enhancements
- Linkreactjs.org/blog/2019/10/22/react-release-channels.html#experimental-channel
- Linksnyk.io/vuln/npm:react:20150318
- Linkwww.npmjs.com/advisories/1347
- Linkdanlec.com/blog/xss-via-a-spoofed-react-element
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.