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.
{ "nvd_published_at": "2024-05-14T15:42:48Z", "cwe_ids": [ "CWE-1050", "CWE-400" ], "severity": "HIGH", "github_reviewed": true, "github_reviewed_at": "2024-06-10T20:17:26Z" }