HighGHSA-hg79-j56m-fxgv

Cross-Site Scripting in react

Published 4 Sept 2020 · Updated 1 Oct 2021

Is your project on an affected react?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several JavaScript apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

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.0

Details

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.

More advisories for react

react security overview

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.