# CVE-2021-29059: ReDOS in IS-SVG

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.63%, higher than 85% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-06-21T15:49:24.000Z
- Modified: 2026-06-17T03:47:12.977Z
- Also known as: GHSA-r8j5-h5cx-65gg
- Weaknesses: CWE-770
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- is-svg (npm): from 2.1.0 before 4.3.0
- is-svg_project is-svg: from 2.1.0 before 4.3.0

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://github.com/yetingli/PoCs/blob/main/CVE-2021-29059/IS-SVG.md> (exploit, patch, third-party-advisory, web)
- <https://www.npmjs.com/package/is-svg> (product, web)
- <https://github.com/yetingli/SaveResults/blob/main/js/is-svg.js> (third-party-advisory, web)
- <https://github.com/sindresorhus/is-svg/releases/tag/v4.3.0> (release-notes, third-party-advisory, 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)

## Sources

- CVE List: [CVE-2021-29059](https://www.cve.org/CVERecord?id=CVE-2021-29059), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-r8j5-h5cx-65gg](https://github.com/advisories/GHSA-r8j5-h5cx-65gg), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-29059](https://nvd.nist.gov/vuln/detail/CVE-2021-29059), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-29059 · Whole record: https://cve.day/CVE-2021-29059.json · Rebuilt by cve.day 2026-11-25T22:58:02.027Z
