An arbitrary file deletion vulnerability exists in danny-avila/librechat version v0.7.5-rc2, specifically within the /api/files endpoint. This vulnerability arises from improper input validation, allowing path traversal techniques to delete arbitrary files on the server. Attackers can exploit this to bypass security mechanisms and delete files outside the intended directory, including critical system files, user data, or application resources. This vulnerability impacts the integrity and availability of the system.
https://huntr.com/bounties/e811f7f7-9556-4564-82e2-5b3d17599b2d
https://github.com/danny-avila/librechat/commit/0b744db1e2af31a531ffb761584d85540430639c