What’s Vulnerable › Vulnerabilities
CVE-2021-28092: Regular Expression Denial of Service (ReDoS)
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 2.0% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2021-03-12 · updated 2026-06-17
- Weakness: CWE-1333
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.
Affected products
- Is-Svg Project Is-Svg: from 2.1.0 through 4.2.1
- Npm Is-Svg: from 2.1.0 before 4.2.2 — fixed in 4.2.2
How to fix
Upgrade to a fixed version: Npm Is-Svg 4.2.2. Check the vendor advisory for mitigations.
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
- 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
Get alerted when CVE-2021-28092 or the next vulnerability affects your stack