Description
A vulnerability in danny-avila/librechat allows attackers to exploit the unrestricted Fork Function in `/api/convos/fork` to fork numerous contents rapidly. If the forked content includes a Mermaid graph with a large number of nodes, it can lead to a JavaScript heap out of memory error upon service restart, causing a denial of service. This issue affects the latest version of the product.
Problem types
CWE-400 Uncontrolled Resource Consumption
Product status
References
huntr.com/bounties/e44f0740-48bd-443b-8826-528e6afe9e34
github.com/...ommit/97a99985fa339db0a21ad63604e0bb8db4442ffc