Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. string-kit
  4. ›
  5. CVE-2021-4299

CVE-2021-4299: Inefficient Regular Expression Complexity

January 2, 2023 (updated January 4, 2023)

A vulnerability classified as problematic was found in cronvel string-kit up to 0.12.7. This vulnerability affects the function naturalSort of the file lib/naturalSort.js. The manipulation leads to inefficient regular expression complexity. The attack can be initiated remotely. Upgrading to version 0.12.8 is able to address this issue. The name of the patch is 9cac4c298ee92c1695b0695951f1488884a7ca73. It is recommended to upgrade the affected component. The identifier of this vulnerability is VDB-217180.

References

  • github.com/advisories/GHSA-pfrm-4rjw-g9q5
  • github.com/cronvel/string-kit/commit/9cac4c298ee92c1695b0695951f1488884a7ca73
  • github.com/cronvel/string-kit/releases/tag/v0.12.8
  • nvd.nist.gov/vuln/detail/CVE-2021-4299
  • vuldb.com/?ctiid.217180
  • vuldb.com/?id.217180

Code Behaviors & Features

Detect and mitigate CVE-2021-4299 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 before 0.12.8

Fixed versions

  • 0.12.8

Solution

Upgrade to version 0.12.8 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/string-kit/CVE-2021-4299.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:15:45 +0000.