CVE-2026-35487 text-generation-webui has a Path Traversal in load_prompt() — .txt file read without authentication

Medium 5.3 Published Updated

Unauthenticated attackers can read arbitrary .txt files from the server filesystem via path traversal in the load_prompt function.

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-35487?

CVE-2026-35487 is a medium-severity path traversal vulnerability in oobabooga text-generation-webui, published on 7 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

text-generation-webui is an open-source web interface for running Large Language Models. Prior to 4.3, an unauthenticated path traversal vulnerability in load_prompt() allows reading any .txt file on the server filesystem. The file content is returned verbatim in the API response. This vulnerability is fixed in 4.3.

Weakness: CWE-22

Which versions are affected by CVE-2026-35487?

It affects 1 product.

Products include Oobabooga Text Generation Web Ui.

How do I fix CVE-2026-35487?

No fix has been published for CVE-2026-35487 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-35487 being exploited?

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

Sources

Also known as GHSA-mfgg-vvc6-vqq7.

Is CVE-2026-35487 in your software?

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

Check your SBOMs for free