high7.5
CVE-2021-29059
ReDOS in IS-SVG
Impact
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 | Fixed in |
|---|---|---|---|
| npm | is-svg | >= 2.1.0, < 4.3.0 | 4.3.0 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Is-Svg Project | Is-Svg | from 2.1.0 before 4.3.0 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- 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
- https://github.com/advisories/GHSA-r8j5-h5cx-65gg
- https://nvd.nist.gov/vuln/detail/CVE-2021-29059
- https://github.com/sindresorhus/is-svg/commit/732fc72779840c45a30817d3fe28e12058592b02