Vulnerabilities/

Uncontrolled resource consumption in braces

Severity:
High

Description

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.

Recommendation

Update the braces package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
braces
Anything's wrong? Let us know Last updated on July 05, 2024