Text Generation Web UiApplication · Oobabooga

CVE-2026-35487

MEDIUM · 5.3 CVSS v3.1 Published 2026-04-07
Fix available
A fix is available. Upgrade to 4.3 or later.
See remediation →
62/100
Remediation priority · Elevated
Remotely reachable No privileges Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
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.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

An unauthenticated path traversal vulnerability in the load_prompt() function of text-generation-webui versions prior to 4.3 allows attackers to read arbitrary .txt files on the server filesystem by manipulating file paths in the API request. The file content is returned verbatim in the API response.

MitigationUpgrade to version 4.3 or later, which contains the patch for this vulnerability. If upgrading is not immediately possible, implement input validation in load_prompt() to restrict file paths to allowed directories and prevent directory traversal sequences.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
Text Generation Web UiApplication
Affected:< 4.3

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Locate text-generation-webui installation
    Find the installation directory. Common locations include the current working directory, /home/*/text-generation-webui, or custom install paths. Look for the repository root containing main.py, server.py, or similar files.
    Affected if The software is not found or this is not the text-generation-webui repository
  2. Determine installed version
    Check the version file or git tag. Run: cat versions.txt 2>/dev/null || git describe --tags 2>/dev/null || grep -i version requirements.txt 2>/dev/null. Alternatively, check the source code for version metadata.
    Affected if Version is not 4.3 or later (e.g., no version file, older tag, or version number below 4.3)
  3. Verify API server is running
    Check if the web UI API is active. Look for running processes: ps aux | grep -E 'python.*server|python.*main' or check if port 5000 (default) is listening: netstat -tlnp | grep 5000 or ss -tlnp | grep 5000
    Affected if API server is running and exposed on a network interface (not localhost-only)
  4. Test load_prompt endpoint accessibility
    If the API is running, send a crafted request to the load_prompt endpoint. The exact path depends on the API structure, but typically it would be something like: curl -X POST http://localhost:5000/v1/prompts/load -d '{"file": "../../../../etc/passwd"}'. Check if the response returns content from arbitrary files.
    Affected if The endpoint accepts path traversal sequences and returns file contents from outside the intended prompts directory

You are affected if text-generation-webui is installed with a version prior to 4.3 AND the API server is running and accessible, allowing an attacker to exploit the load_prompt() function to read arbitrary .txt files via path traversal.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Upgrade available Upgrade to 4.3 or later
Fixed in 4.3
Interim mitigation

Upgrade to version 4.3 or later, which contains the patch for this vulnerability. If upgrading is not immediately possible, implement input validation in load_prompt() to restrict file paths to allowed directories and prevent directory traversal sequences.

Recommended fix High confidence

4.3

  1. 1. Back up your current text-generation-webui installation and any custom configurations.
  2. 2. Navigate to your text-generation-webui installation directory.
  3. 3. Pull the latest changes from the repository or download version 4.3.
  4. 4. If using git, run: git pull origin main or git checkout tags/v4.3
  5. 5. Restart the text-generation-webui service to apply the update.
  6. 6. Verify the application is running on version 4.3 and test that load_prompt() functions correctly.

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in Text Generation Web Ui Scoped from the published advisory
  • Consultation2.0 h
  • Implementation4.0 h
  • Testing4.0 h
  • Review / QA2.0 h
12.0 hours of engineering $2,080
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,328.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2026-35487 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2026-35487 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data