-
CVSS Score
-| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| libre-chat | pip | <= 0.0.6 |
The vulnerability stems from the pre-patch code shown in the commit diff where file_path was constructed using os.path.join(self.conf.vector.documents_path, uploaded.filename). This insecure path concatenation allowed directory traversal via malicious filenames. The patch replaces this with werkzeug.utils.safe_join and adds validation, confirming the original function's vulnerability. The CWE-22 mapping and advisory descriptions directly reference this insecure file path handling in the upload_documents method.