{"id":"CVE-2026-51882","title":"The OpenAI-compatible file upload endpoint `/v1/files` in Langchain-Chatchat 0.3.0 is vulnerable to path traversal","summary":"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.","severity":"critical","cvss":9.1,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","cwe":["CWE-22"],"published":"2026-10-01","updated":"2026-10-07","sourceUpdated":"2026-10-07T15:17:22.240","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-51882","references":[{"url":"https://gist.github.com/Ro1ME/f80ac458836b59adb9c6ceff3993f7f3","label":"cve@mitre.org"},{"url":"https://github.com/chatchat-space/Langchain-Chatchat/issues/5468","label":"cve@mitre.org"},{"url":"https://gist.github.com/Ro1ME/f80ac458836b59adb9c6ceff3993f7f3","label":"134c704f-9b21-4f2e-91b3-4a467353bcc0"},{"url":"https://github.com/chatchat-space/Langchain-Chatchat/issues/5468","label":"134c704f-9b21-4f2e-91b3-4a467353bcc0"}],"tags":["nvd","cve.org","exploit-available"],"exploitAvailable":true,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2026-10-07T14:51:37.938402Z"},"epss":0.00509,"epssPercentile":0.43215,"ingestedAt":"2026-10-01T23:03:32.775Z","slug":"CVE-2026-51882","body":"## Overview\n\nThe 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.\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.","depth":"abyssal","depthScore":62,"depthScoreParts":{"impact":50.1,"likelihood":0.1,"exploitation":12,"ransomware":0},"changes":[{"seq":217543,"id":"CVE-2026-51882","ts":1791387404549,"field":"exploit_available","old":"false","new":"true"},{"seq":217542,"id":"CVE-2026-51882","ts":1791387404549,"field":"cvss","old":null,"new":"9.1"},{"seq":217541,"id":"CVE-2026-51882","ts":1791387404549,"field":"severity","old":"none","new":"critical"}]}