{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "2.1.0"
              },
              {
                "fixed": "4.3.0"
              }
            ]
          },
          "events": [
            {
              "introduced": "f681396a3fb6451558e9c49b72340f0ce92e308c"
            },
            {
              "fixed": "5faec9e56a57b2f5a551fc287b87b9f9fa5fe455"
            }
          ],
          "repo": "https://github.com/sindresorhus/is-svg",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "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.",
  "id": "CVE-2021-29059",
  "modified": "2026-04-01T23:08:39.279535696Z",
  "published": "2021-06-21T16:15:08.080Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://www.npmjs.com/package/is-svg"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/yetingli/SaveResults/blob/main/js/is-svg.js"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/sindresorhus/is-svg/releases/tag/v4.3.0"
    },
    {
      "type": "FIX",
      "url": "https://github.com/yetingli/PoCs/blob/main/CVE-2021-29059/IS-SVG.md"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
      "type": "CVSS_V3"
    }
  ]
}