The OpenAI-compatible file upload endpoint `/v1/files` in Langchain-Chatchat 0.3.0 is vulnerable to path traversal. An attacker can write files to arbitrary locations outside the `openai_files` directory by crafting malicious filenames.
https://github.com/chatchat-space/Langchain-Chatchat/issues/5468
https://gist.github.com/Ro1ME/f80ac458836b59adb9c6ceff3993f7f3