CVE-2026-7847 chatchat-space Langchain-Chatchat Uploaded File openai_routes.py _get_file_id random values
Attackers can predict file IDs due to insufficient randomness in Langchain-Chatchat, potentially bypassing access controls.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-7847?
CVE-2026-7847 is a low-severity vulnerability in chatchat-space Langchain-Chatchat, published on 5 May 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
A vulnerability was found in chatchat-space Langchain-Chatchat up to 0.3.1.3. The affected element is the function _get_file_id of the file libs/chatchat-server/chatchat/server/api_server/openai_routes.py of the component Uploaded File Handler. Performing a manipulation results in insufficiently random values. Access to the local network is required for this attack. The attack's complexity is rated as high. The exploitability is described as difficult. The exploit has been made public and could be used. The project was informed of the problem early through an issue report but has not responded yet.
Which versions are affected by CVE-2026-7847?
3 open source packages ship an affected version, including langchain-chatchat.
| Package | Affected | Fixed in |
|---|---|---|
langchain-chatchat PyPI | All versions to 0.3.1.3 | None |
langchain-chatchat PyPI | All versions to 0.3.1.3 | None |
langchain-chatchat PyPI | All versions to 0.3.1.3 | None |
How do I fix CVE-2026-7847?
No fix has been published for CVE-2026-7847 yet. Limit exposure of the affected software until one is available.
Is CVE-2026-7847 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-7847 exists.
Sources
Also known as GHSA-jv4p-mhmp-69vw, PYSEC-2026-2557.