{"id":"GHSA-hg79-j56m-fxgv","aliases":["GHSA-hg79-j56m-fxgv"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-Site Scripting in react","summary":"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.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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.","format":"markdown","source":"ghsa"}],"published":"2020-09-04T15:26:04.000Z","modified":"2021-10-01T20:15:16.000Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"0.0.1","status":"affected","fixed":"0.14.0"}],"ecosystem":"npm","package":"react","purl":"pkg:npm/react","source":"ghsa"}],"references":[{"url":"https://github.com/facebook/react","tags":["package"],"sources":["ghsa"]},{"url":"https://reactjs.org/blog/2015/10/07/react-v0.14.html#notable-enhancements","tags":["web"],"sources":["ghsa"]},{"url":"https://reactjs.org/blog/2019/10/22/react-release-channels.html#experimental-channel","tags":["web"],"sources":["ghsa"]},{"url":"https://snyk.io/vuln/npm:react:20150318","tags":["web"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/advisories/1347","tags":["web"],"sources":["ghsa"]},{"url":"http://danlec.com/blog/xss-via-a-spoofed-react-element","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-hg79-j56m-fxgv","url":"https://github.com/advisories/GHSA-hg79-j56m-fxgv","licence":"CC-BY-4.0","modified":"2021-10-01T20:15:16.000Z"}],"updatedAt":"2026-11-25T22:56:45.595Z"}