CVE-2021-29059
HIGH 7.5CVSS 3.1ReDOS in IS-SVG
A vulnerability was discovered in IS-SVG version 2.1.0 to 4.2.2 and below where a Regular Expression Denial of Service (ReDOS) occurs if the application is provided and checks a crafted invalid SVG string.
- Published
- 21 Jun 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-770
- Also known as
- GHSA-r8j5-h5cx-65gg
- Sources
- NVDJSONOSV GHSA-r8j5-h5cx-65ggJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | is-svg_project | is-svgcpe:2.3:a:is-svg_project:is-svg:*:*:*:*:*:node.js:*:* |
>= 2.1.0, < 4.3.0 | 4.3.0 |
| OSV | npm | is-svg | >= 2.1.0, < 4.3.0 | 4.3.0 |
References
- https://github.com/sindresorhus/is-svg/releases/tag/v4.3.0 · Release Notes, Third Party Advisory, WEB
- https://github.com/yetingli/PoCs/blob/main/CVE-2021-29059/IS-SVG.md · Exploit, Patch, Third Party Advisory, WEB
- https://github.com/yetingli/SaveResults/blob/main/js/is-svg.js · Third Party Advisory, WEB
- https://www.npmjs.com/package/is-svg · Product, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-29059 · ADVISORY
- https://github.com/sindresorhus/is-svg/commit/732fc72779840c45a30817d3fe28e12058592b02 · WEB
- https://github.com/sindresorhus/is-svg · PACKAGE
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 21 Jun 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 10 Dec 2021)