{"id":"GHSA-g53w-52xc-2j85","summary":"Cross-Site Scripting in react","details":"Affected versions of `react` are vulnerable to Cross-Site Scripting (XSS). The package fails to properly sanitize input used to create keys. This may allow attackers to execute arbitrary JavaScript if a key is generated from user input.\n\n\n## Recommendation\n\nIf you are using `react` 0.5.x, upgrade to version 0.5.2 or later.\nIf you are using `react` 0.4.x, upgrade to version 0.4.2 or later.","aliases":["CVE-2013-7035"],"modified":"2023-11-08T03:57:27.158332Z","published":"2020-09-04T16:52:57Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2020-08-31T18:58:42Z","nvd_published_at":null,"cwe_ids":["CWE-79"],"severity":"MODERATE"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2013-7035"},{"type":"WEB","url":"https://github.com/facebook/react/commit/393a889aaceb761f058b09a701f889fa8f8b4e64"},{"type":"WEB","url":"https://github.com/facebook/react/commit/94a9a3e752fe089ab23f3a90c26d20d46d62ab10"},{"type":"PACKAGE","url":"https://github.com/facebook/react"},{"type":"WEB","url":"https://reactjs.org/blog/2013/12/18/react-v0.5.2-v0.4.2.html"},{"type":"WEB","url":"https://snyk.io/vuln/npm:react:20131217"}],"affected":[{"package":{"name":"react","ecosystem":"npm","purl":"pkg:npm/react"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.4.0"},{"fixed":"0.4.2"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-g53w-52xc-2j85/GHSA-g53w-52xc-2j85.json"}},{"package":{"name":"react","ecosystem":"npm","purl":"pkg:npm/react"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.5.0"},{"fixed":"0.5.2"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-g53w-52xc-2j85/GHSA-g53w-52xc-2j85.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N"}]}