CVE-2026-7845: Langchain-Chatchat Uses a Broken or Risky Cryptographic Algorithm
(updated )
A flaw has been found in chatchat-space Langchain-Chatchat up to 0.3.1.3. This issue affects the function PIL.Image.tobytes of the file libs/chatchat-server/chatchat/webui_pages/dialogue/dialogue.py of the component Vision Chat Paste Image Handler. This manipulation of the argument paste_image.image_data causes use of weak hash. The attacker needs to be present on the local network. The attack is considered to have high complexity. The exploitability is assessed as difficult. The exploit has been published and may be used. The project was informed of the problem early through an issue report but has not responded yet.
References
- github.com/3em0/cve_repo/blob/main/Langchain-Chatchat/Vuln-1-tobytes-Hash-Collision.md
- github.com/advisories/GHSA-wmvv-fhm6-w34x
- github.com/chatchat-space/Langchain-Chatchat
- github.com/chatchat-space/Langchain-Chatchat/issues/5462
- nvd.nist.gov/vuln/detail/CVE-2026-7845
- vuldb.com/submit/807794
- vuldb.com/vuln/361124
- vuldb.com/vuln/361124/cti
Code Behaviors & Features
Detect and mitigate CVE-2026-7845 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →