---
id: CVE-2026-7847
aliases:
  - GHSA-jv4p-mhmp-69vw
  - PYSEC-2026-2557
title: Langchain-Chatchat Uses Insufficiently Random Values
summary: Langchain-Chatchat Uses Insufficiently Random Values
severity: low
cvss: 2.6
cvssVector: 'CVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N'
vendor: langchain-chatchat
product: langchain-chatchat
ecosystem: pip
affected:
  - langchain-chatchat <= 0.3.1.3
published: '2026-05-05'
updated: '2026-07-13'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-jv4p-mhmp-69vw'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-7847'
  - url: 'https://github.com/chatchat-space/Langchain-Chatchat/issues/5464'
  - url: >-
      https://github.com/3em0/cve_repo/blob/main/Langchain-Chatchat/Vuln-3-Predictable-File-ID.md
  - url: 'https://github.com/chatchat-space/Langchain-Chatchat'
  - url: 'https://vuldb.com/submit/807796'
  - url: 'https://vuldb.com/vuln/361126'
  - url: 'https://vuldb.com/vuln/361126/cti'
tags:
  - osv
  - pip
epss: 0.00235
epssPercentile: 0.14662
ingestedAt: '2026-07-13T18:58:00.097Z'
---

## Overview

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.

## Affected packages

- `langchain-chatchat <= 0.3.1.3`

## Remediation

Refer to the advisory for the patched release.
