{"id":"GHSA-hg79-j56m-fxgv","aliases":[],"status":"published","title":"Cross-Site Scripting in react","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.\n\n\n## Recommendation\n\nUpgrade to version 0.14.0 or later.","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2020-09-04T15:26:04Z","modified":"2023-01-09T05:04:10Z","fixes":[{"ecosystem":"npm","package":"react","fixed_in":["0.14.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"react","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.0.1"},{"fixed":"0.14.0"}]}]},{"source":"osv","ecosystem":"npm","package":"react","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.1"},{"fixed":"0.14.0"}]}]}],"references":[{"url":"https://snyk.io/vuln/npm:react:20150318","tags":["web"]},{"url":"https://www.npmjs.com/advisories/1347","tags":["web"]},{"url":"http://danlec.com/blog/xss-via-a-spoofed-react-element","tags":["web"]},{"url":"https://github.com/facebook/react","tags":["package"]},{"url":"https://reactjs.org/blog/2015/10/07/react-v0.14.html#notable-enhancements","tags":["web"]},{"url":"https://reactjs.org/blog/2019/10/22/react-release-channels.html#experimental-channel","tags":["web"]},{"url":"https://github.com/advisories/GHSA-hg79-j56m-fxgv"}],"sources":{"ghsa":[{"id":"GHSA-hg79-j56m-fxgv","title":"Cross-Site Scripting in react","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.\n\n\n## Recommendation\n\nUpgrade to version 0.14.0 or later.","status":"published","published":"2020-09-04T15:26:04Z","modified":"2023-01-09T05:04:10Z","cwes":["CWE-79"],"updated_at":"2026-11-02T14:36:08.863482Z"}],"osv":[{"id":"GHSA-hg79-j56m-fxgv","title":"Cross-Site Scripting in react","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.\n\n\n## Recommendation\n\nUpgrade to version 0.14.0 or later.","status":"published","published":"2020-09-04T15:26:04Z","modified":"2021-10-01T20:15:16Z","cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:48.920784Z"}]}}
