Live threats

All CVEs

CVE-2026-51882

Path traversal in file upload endpoint of Langchain-Chatchat

Critical 9.1 No auth needed

Priority
70
CVSS 3.1
9.1
EPSS
—
Auth required
No
Published
Oct 1, 2026
Updated
Oct 7, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

What happens

The OpenAI-compatible `/v1/files` endpoint in Langchain-Chatchat 0.3.0 is vulnerable to path traversal. An unauthenticated attacker can write files to arbitrary locations outside the `openai_files` directory by crafting malicious filenames, compromising system integrity.

Show the original NVD 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 text, unmodified. NVD.

What to do

No patch data

Update Langchain-Chatchat to a version after 0.3.0 when available. In the meantime, restrict access to the `/v1/files` endpoint using firewall or WAF rules.

Vendor advisory · github.com ↗

  1. Check whether you run any of the affected products and follow the vendor advisory.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Official sources

References

Links published by the sources. Open them with care.