# GHSA-8xqr-4cpm-wx7g: Cross-Site Scripting in react-svg

- Severity: High (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2019-05-31T23:47:27.000Z
- Modified: 2020-08-31T18:31:14.000Z
- Weaknesses: CWE-79

## Description

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.


## Recommendation

Update to version 2.2.18 or later.

(As written by GitHub Advisory Database.)

## Affected

- react-svg (npm): before 2.2.18

## References

- <https://github.com/tanem/react-svg/pull/57> (web)
- <https://github.com/tanem/react-svg/pull/57/commits/ec7de5d678f53a085cee1348cb1aa069c9fc42fb> (web)
- <https://www.npmjs.com/advisories/648> (web)

## Sources

- GitHub Advisory Database: [GHSA-8xqr-4cpm-wx7g](https://github.com/advisories/GHSA-8xqr-4cpm-wx7g), CC-BY-4.0, modified 2020-08-31

---

Page: https://cve.day/GHSA-8xqr-4cpm-wx7g · Whole record: https://cve.day/GHSA-8xqr-4cpm-wx7g.json · Rebuilt by cve.day 2026-11-25T22:56:44.820Z
