sindresorhus/is-svg

sindresorhus/is-svg

Releases26
Frequency5 months 1 week
Last Release
Stars144
Check if a string or buffer is SVG

CVE History

CVEPublishedCVSS v3CVSS v2
7.5 HIGH5 MEDIUM

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.

7.5 HIGH5 MEDIUM

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.