CVE-2026-51882 Path traversal in n/a

Critical 9.1 Published Updated

Attackers can write files to arbitrary locations outside the intended directory via malicious filenames in the file upload endpoint.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-51882?

CVE-2026-51882 is a critical path traversal vulnerability in n/a, published on 1 Oct 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The OpenAI-compatible file upload endpoint `/v1/files` in Langchain-Chatchat 0.3.0 is vulnerable to path traversal. An attacker can write files to arbitrary locations outside the `openai_files` directory by crafting malicious filenames.

Weakness: CWE-22

Which versions are affected by CVE-2026-51882?

How do I fix CVE-2026-51882?

No fix has been published for CVE-2026-51882 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2026-51882 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-51882 exists.

Sources

Also known as GHSA-p52p-3gpf-v5f9.

Is CVE-2026-51882 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free