---
id: CVE-2025-6853
aliases:
  - GHSA-qmgv-j263-qr33
  - PYSEC-2026-1513
title: Langchain-Chatchat has a Path Traversal vulnerability
summary: Langchain-Chatchat has a Path Traversal vulnerability
severity: medium
cvss: 6.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L'
vendor: langchain-chatchat
product: langchain-chatchat
ecosystem: pip
affected:
  - langchain-chatchat <= 0.3.1.3
published: '2025-06-29'
updated: '2026-07-07'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-qmgv-j263-qr33'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2025-6853'
  - url: 'https://github.com/chatchat-space/Langchain-Chatchat/issues/5352'
  - url: 'https://github.com/chatchat-space/Langchain-Chatchat'
  - url: 'https://vuldb.com/?ctiid.314325'
  - url: 'https://vuldb.com/?id.314325'
  - url: 'https://vuldb.com/?submit.601155'
tags:
  - osv
  - pip
epss: 0.00545
epssPercentile: 0.44633
ingestedAt: '2026-07-08T18:25:52.459Z'
---

## Overview

A vulnerability classified as critical has been found in chatchat-space Langchain-Chatchat up to 0.3.1. This affects the function upload_temp_docs of the file /knowledge_base/upload_temp_docs of the component Backend. The manipulation of the argument flag leads to path traversal. It is possible to initiate the attack remotely. The exploit has been disclosed to the public and may be used.

## Affected packages

- `langchain-chatchat <= 0.3.1.3`

## Remediation

Refer to the advisory for the patched release.
