{"id":"CVE-2026-51882","aliases":["CVE-2026-51882"],"related":[],"kind":"vulnerability","state":"published","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-10-01T00:00:00.000Z","modified":"2026-10-07T15:17:22.240Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"}],"references":[{"url":"https://github.com/chatchat-space/Langchain-Chatchat/issues/5468","tags":["exploit"],"sources":["cvelist","nvd"]},{"url":"https://gist.github.com/Ro1ME/f80ac458836b59adb9c6ceff3993f7f3","tags":["exploit"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2026-10-07T14:51:37.938Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-51882","url":"https://www.cve.org/CVERecord?id=CVE-2026-51882","licence":"CVE Terms of Use","modified":"2026-10-07T14:52:16.785Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-51882","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-51882","licence":"Public domain","modified":"2026-10-07T15:17:22.240Z"}],"updatedAt":"2026-11-25T22:59:41.889Z","epss":{"score":0.00509,"percentile":0.44936,"date":"2026-12-01T12:00:22.000Z"}}