# GHSA-hg79-j56m-fxgv: Cross-Site Scripting in react

- Severity: High (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2020-09-04T15:26:04.000Z
- Modified: 2021-10-01T20:15:16.000Z
- Weaknesses: CWE-79

## Description

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.

(As written by GitHub Advisory Database.)

## Affected

- react (npm): from 0.0.1 before 0.14.0

## References

- <https://github.com/facebook/react> (package)
- <https://reactjs.org/blog/2015/10/07/react-v0.14.html#notable-enhancements> (web)
- <https://reactjs.org/blog/2019/10/22/react-release-channels.html#experimental-channel> (web)
- <https://snyk.io/vuln/npm:react:20150318> (web)
- <https://www.npmjs.com/advisories/1347> (web)
- <http://danlec.com/blog/xss-via-a-spoofed-react-element> (web)

## Sources

- GitHub Advisory Database: [GHSA-hg79-j56m-fxgv](https://github.com/advisories/GHSA-hg79-j56m-fxgv), CC-BY-4.0, modified 2021-10-01

---

Page: https://cve.day/GHSA-hg79-j56m-fxgv · Whole record: https://cve.day/GHSA-hg79-j56m-fxgv.json · Rebuilt by cve.day 2026-11-25T22:56:45.595Z
