# CVE-2026-75128: Langchain-Chatchat unauthenticated arbitrary command execution via tool invocation

Source: https://junglewise.ai/threats/cve-2026-75128-langchain-chatchat-through-0-3-1-3-exposes-a-post-tools-call-api  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-20. Updated: 2026-10-20  
License: CC BY 4.0 with a link back

CVE-2026-75128 · Severity: critical · CVSS 9.8 · Published 2026-10-20

Langchain-Chatchat is a conversational AI application that integrates language models with external tools. Versions through 0.3.1.3 expose an unauthenticated API endpoint that allows remote attackers to invoke any registered tool, including a shell tool, to execute arbitrary operating system commands with server privileges (root in Docker deployments).

Technologies: [Chatchat-Space Langchain-Chatchat](https://junglewise.ai/threats/technologies/langchain-chatchat). Vendors: [Chatchat-Space](https://junglewise.ai/threats/vendors/chatchat-space).

## Quick answers

**Is CVE-2026-75128 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-75128 being exploited in the wild.

**How severe is CVE-2026-75128?** Critical severity, with a CVSS score of 9.8, published 20 October 2026.

**Which products and versions are affected?** Chatchat-Space Langchain-Chatchat through 0.3.1.3.

**Is there a fix for CVE-2026-75128?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2026-75128 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-75128?** Check whether you run Chatchat-Space Langchain-Chatchat at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

The POST /tools/call endpoint in the application lacks authentication checks and directly invokes any registered tool by name without validation. The shell tool is always registered by default and can be called to execute arbitrary OS commands. An unauthenticated attacker can send a single HTTP request to invoke this endpoint and gain remote code execution as the application's user context.

## Affected products

- Chatchat-space Langchain-Chatchat through 0.3.1.3

## Timeline

- 2026-10-20: disclosed: CVE-2026-75128 published

## References

- [https://pypi.org/](https://pypi.org/)
- [https://github.com/chatchat-space/Langchain-Chatchat/blob/a6a9193b5002061719f0eee62c6310bd5b1b7f63/libs/chatchat-server/chatchat/server/api_server/tool_routes.py](https://github.com/chatchat-space/Langchain-Chatchat/blob/a6a9193b5002061719f0eee62c6310bd5b1b7f63/libs/chatchat-server/chatchat/server/api_server/tool_routes.py)

## Related threats

- [Langchain-Chatchat path traversal in knowledge base creation](https://junglewise.ai/threats/cve-2026-51883-the-knowledge-base-creation-and-document-upload-interfaces-in)
- [chatchat-space Langchain-Chatchat predictable file identifiers in OpenAI routes](https://junglewise.ai/threats/cve-2026-7847-chatchat-space-langchain-chatchat-predictable-file-identifiers-in)
- [chatchat-space Langchain-Chatchat TOCTOU in File Upload API](https://junglewise.ai/threats/cve-2026-7846-chatchat-space-langchain-chatchat-toctou-in-file-upload-api)
- [chatchat-space Langchain-Chatchat weak hash in Vision Chat Paste Image Handler](https://junglewise.ai/threats/cve-2026-7845-chatchat-space-langchain-chatchat-weak-hash-in-vision-chat-paste)
- [chatchat-space Langchain-Chatchat missing authentication in file endpoints](https://junglewise.ai/threats/cve-2026-7844-chatchat-space-langchain-chatchat-missing-authentication-in-file)
