UNKNOWNCVE-2024-4068
Uncontrolled resource consumption in braces
Platform
nodejs
Component
braces
Fixed in
3.0.3
The NPM package `braces` fails to limit the number of characters it can handle, which could lead to Memory Exhaustion. In `lib/parse.js,` if a malicious user sends "imbalanced braces" as input, the parsing will enter a loop, which will cause the program to start allocating heap memory without freeing it at any moment of the loop. Eventually, the JavaScript heap limit is reached, and the program will crash.
How to fix
Actualice el paquete `braces` a la versión 3.0.3 o superior. Esto se puede hacer ejecutando `npm install braces@latest` o `yarn upgrade braces@latest` en su proyecto. Asegúrese de verificar que la actualización no cause conflictos con otras dependencias.
Monitor your dependencies automatically
Get notified when new vulnerabilities affect your projects. Free forever.
Start free