GHSA-8xqr-4cpm-wx7g
HIGHCross-Site Scripting in react-svg
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.
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | react-svg | < 2.2.18 | 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
History
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 31 May 2019)