{"id":"GHSA-8xqr-4cpm-wx7g","aliases":["GHSA-8xqr-4cpm-wx7g"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-Site Scripting in react-svg","summary":"Versions of `react-svg` before 2.2.18 are vulnerable to cross-site scripting (xss). This is due to the fact that scripts found in SVG files are run by default.\n\n\n## Recommendation\n\nUpdate to version 2.2.18 or later.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"Versions of `react-svg` before 2.2.18 are vulnerable to cross-site scripting (xss). This is due to the fact that scripts found in SVG files are run by default.\n\n\n## Recommendation\n\nUpdate to version 2.2.18 or later.","format":"markdown","source":"ghsa"}],"published":"2019-05-31T23:47:27.000Z","modified":"2020-08-31T18:31:14.000Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.2.18"}],"ecosystem":"npm","package":"react-svg","purl":"pkg:npm/react-svg","source":"ghsa"}],"references":[{"url":"https://github.com/tanem/react-svg/pull/57","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/tanem/react-svg/pull/57/commits/ec7de5d678f53a085cee1348cb1aa069c9fc42fb","tags":["web"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/advisories/648","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8xqr-4cpm-wx7g","url":"https://github.com/advisories/GHSA-8xqr-4cpm-wx7g","licence":"CC-BY-4.0","modified":"2020-08-31T18:31:14.000Z"}],"updatedAt":"2026-11-25T22:56:44.820Z"}