Live threats

All CVEs

CVE-2026-51883

Path traversal in document upload in 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 5, 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

Langchain-Chatchat 0.3.0 and 0.3.1 is vulnerable to path traversal in the knowledge base creation and document upload interfaces. An unauthenticated attacker can inject path traversal sequences (such as `..\\`) in the `knowledge_base_name` parameter to write content to arbitrary locations outside the configured directory.

Show the original NVD text

The knowledge base creation and document upload interfaces in Langchain-Chatchat 0.3.0;0.3.1 is vulnerable to path traversal. An attacker can inject path traversal sequences (such as `..\`) into the `knowledge_base_name` parameter to write knowledge base content to arbitrary locations outside the configured knowledge base root directory.

Source text, unmodified. NVD.

What to do

No patch data

Update Langchain-Chatchat to a version after 0.3.1 when available. In the meantime, validate and sanitize the knowledge_base_name parameter in upload requests.

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.