GitHub Advisory Database
GHSA-r8j5-h5cx-65gg
ReDOS in IS-SVG
Details
A vulnerability was discovered in IS-SVG version 4.3.1 and below where a Regular Expression Denial of Service (ReDOS) occurs if the application is provided and checks a crafted invalid SVG string.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| npm | is-svg | From 2.1.0 before 4.3.0 (fixed in 4.3.0) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-29059
- https://github.com/sindresorhus/is-svg/commit/732fc72779840c45a30817d3fe28e12058592b02
- https://github.com/sindresorhus/is-svg
- https://github.com/sindresorhus/is-svg/releases/tag/v4.3.0
- https://github.com/yetingli/PoCs/blob/main/CVE-2021-29059/IS-SVG.md
- https://github.com/yetingli/SaveResults/blob/main/js/is-svg.js
- https://www.npmjs.com/package/is-svg