Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. is-svg
  4. ›
  5. CVE-2021-28092

CVE-2021-28092: Uncontrolled Resource Consumption

March 12, 2021 (updated August 8, 2023)

The is-svg package 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.

References

  • nvd.nist.gov/vuln/detail/CVE-2021-28092

Code Behaviors & Features

Detect and mitigate CVE-2021-28092 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.1.0 up to 4.2.1

Fixed versions

  • 4.2.2

Solution

Upgrade to version 4.2.2 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-1333: Inefficient Regular Expression Complexity

Source file

npm/is-svg/CVE-2021-28092.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:04 +0000.