CVE-2021-29059 json
ReDOS in IS-SVG
published 2021-06-21 5 y ago modified 2026-06-17 4 mo ago also GHSA-r8j5-h5cx-65gg , EUVD-2021-2579
- cvss
- 7.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.6%
- EPSS 2.6% chance of exploitation in 30 days, percentile 85%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm is-svg 4.3.0
- is-svg_project is-svg 4.3.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-29059 updated cvss 7.5
nodejs-is-svg: Regular expression denial of service if the application is provided and checks a crafted invalid SVG string
-
Red Hat OpenShift Service Mesh 1 servicemesh-grafana, servicemesh-prometheus, servicemesh-grafana-prometheusaffected: no fix planned “Will not fix”
-
Red Hat OpenShift Service Mesh 2.0 servicemesh-grafana, servicemesh-prometheus, servicemesh-grafana-prometheusaffected: no fix available
-
Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/console-ui-rhel8affected: no fix planned “Will not fix”
-
Red Hat Decision Manager 7 is-svgaffected: no fix planned “Out of support scope”
-
Red Hat OpenShift Container Platform 3.11 kibanaaffected: no fix available “Fix deferred”
-
Red Hat OpenShift Container Platform 4 kibana, openshift4/ose-grafanaaffected: no fix planned “Will not fix”
-
Red Hat Process Automation 7 is-svgaffected: no fix planned “Out of support scope”
-
Red Hat Quay 3 quay/quay-rhel8 Red Hat Virtualization 4 ovirt-web-ui, ovirt-engine-ui-extensionsaffected: no fix planned “Will not fix”
show 3 moreshow fewer
-
Red Hat OpenShift Container Platform 4.8 openshift4/ose-thanos-rhel8 v4.8.0-202106291913.p0.git.c358e96.assembly.streamfixed: vendor fix RHSA-2021:2438
-
Red Hat OpenShift Container Platform 4.9 openshift4/ose-prometheus v4.9.0-202109302016.p0.git.3197fa7.assembly.streamfixed: vendor fix RHSA-2021:3759
-
Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/console-rhel8 Red Hat OpenShift Container Platform 4.8 openshift4/ose-cli v4.8.0-202106291725.p0.git.1077b05.assembly.stream, openshift4/ose-pod v4.8.0-202107161820.p0.git.051ac4f.assembly.stream, openshift4/ose-etcd v4.8.0-202106152230.p0.git.aefa6bf.assembly.stream, openshift4/ose-tests v4.8.0-202107131424.p0.git.0d958c3.assembly.stream, openshift4/ose-console v4.8.0-202107010336.p0.git.188a490.assembly.stream, openshift4/ose-coredns v4.8.0-202106291913.p0.git.642b46e.assembly.stream, +135 more Red Hat OpenShift Container Platform 4.9 openshift4/ose-cli v4.9.0-202109302317.p0.git.96e95ce.assembly.stream, openshift4/ose-pod v4.9.0-202110080828.p0.git.894a78b.assembly.stream, openshift4/ose-etcd v4.9.0-202109302317.p0.git.5c1feaf.assembly.stream, openshift4/ose-console v4.9.0-202110130449.p0.git.8c077e4.assembly.rc.8, openshift4/ose-tests v4.9.0-202110011028.p0.git.6105395.assembly.stream, openshift4/ose-coredns v4.9.0-202109302317.p0.git.3cb11c0.assembly.stream, +141 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.63% chance of exploitation in the next 30 days, higher than 85% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/yetingli/PoCs/blob/main/CVE-2021-29059/IS-SVG.md referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | is-svg | >=2.1.0, <4.3.0 |
4.3.0 |
Classification
- Weakness
-
- CWE-770 Allocation of Resources Without Limits or Throttling
References
-
github.com
/yetingli/PoCs/blob/main/CVE-2021-29059/IS-SVG.md
web, exploit, patch, third-party-advisory
-
github.com
/sindresorhus/is-svg/commit/732fc72779840c45a30817d3fe28e12058592b02
web
-
npmjs.com
/package/is-svg
web, product
-
github.com
/yetingli/SaveResults/blob/main/js/is-svg.js
web, third-party-advisory
-
github.com
/sindresorhus/is-svg/releases/tag/v4.3.0
web, release-notes, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-29059
advisory
-
github.com
/sindresorhus/is-svg
package
Sources
- CVE List CVE-2021-29059
- GitHub Advisory GHSA-r8j5-h5cx-65gg
- NVD CVE-2021-29059
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.