Description
The is-svg package 2.1.0 through 4.2.1 for Node.js uses a regular expression that is vulnerable to Regular Expression Denial of Service (ReDoS). If an attacker provides a malicious string, is-svg will get stuck processing the input for a very long time.
Remediation
References
https://github.com/sindresorhus/is-svg/releases
https://github.com/sindresorhus/is-svg/releases/tag/v4.2.2
https://security.netapp.com/advisory/ntap-20210513-0008/
https://www.npmjs.com/package/is-svg
Related Vulnerabilities
CVE-2017-16051 Vulnerability in npm package sqliter
CVE-2021-29485 Vulnerability in maven package io.ratpack:ratpack-session
CVE-2019-17495 Vulnerability in maven package org.webjars.bower:swagger-ui
CVE-2022-37767 Vulnerability in maven package io.pebbletemplates:pebble
CVE-2016-10735 Vulnerability in maven package org.jszip.redist:bootstrap