# CVE-2026-34522: SillyTavern: Path traversal in `/api/chats/import` allows arbitrary file write outside intended chat directory

> An authenticated attacker can write arbitrary files outside the intended directory via path traversal in the chat import API, potentially leading to code execution.

- **Severity:** High 8.1 (`CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 2 Apr 2026
- **Updated:** 2 Apr 2026
- **Also known as:** GHSA-xvww-xhx6-22pf

## What is CVE-2026-34522?

CVE-2026-34522 is a high-severity path traversal vulnerability in SillyTavern, published on 2 Apr 2026. Any signed-in user can exploit it over the network, with no action from the victim.

### Official description

SillyTavern is a locally installed user interface that allows users to interact with text generation large language models, image generation engines, and text-to-speech voice models. Prior to version 1.17.0, a path traversal vulnerability in /api/chats/import allows an authenticated attacker to write attacker-controlled files outside the intended chats directory by injecting traversal sequences into character_name. This issue has been patched in version 1.17.0.

Weakness: CWE-73 (External Control of File Name or Path), CWE-22 (Improper Limitation of a Pathname to a Restricted Directory)

## Which versions are affected by CVE-2026-34522?

2 open source packages ship an affected version, including sillytavern. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `sillytavern` | npm | All versions | 1.17.0 |
| `sillytavern` | npm | All versions | 1.17.0 |

Products: Sillytavern Sillytavern.

## How do I fix CVE-2026-34522?

Upgrade sillytavern to 1.17.0 or later.

## Is CVE-2026-34522 being exploited?

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

## Other vulnerabilities in SillyTavern

- [CVE-2026-34524](https://insights.sbomify.com/CVE-2026-34524/): SillyTavern: Path Traversal in `/api/chats/export` and `/api/chats/delete` allows arbitrary file read/delete within user data root (high 8.3)
- [CVE-2026-26286](https://insights.sbomify.com/CVE-2026-26286/): SillyTavern has Server-Side Request Forgery (SSRF) via Asset Download Endpoint that Allows Reading Internal Services (high 7.1)
- [CVE-2026-34523](https://insights.sbomify.com/CVE-2026-34523/): SillyTavern: Path traversal allows file existence oracle (medium 5.3)
- [CVE-2026-34526](https://insights.sbomify.com/CVE-2026-34526/): SillyTavern: Incomplete IP validation in /api/search/visit allows SSRF via localhost and IPv6 (medium 5.0)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-34522 and fix it if it is affected.

What it is: CVE-2026-34522 is a high-severity path traversal vulnerability in SillyTavern, published on 2 Apr 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-34522 exists.

Affected packages and fixed versions:
- sillytavern (npm): affected all versions; fixed in 1.17.0
- sillytavern (npm): affected all versions; fixed in 1.17.0

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-34522/ (Markdown: https://insights.sbomify.com/CVE-2026-34522/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-34522
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-34522
- OSV: https://osv.dev/vulnerability/CVE-2026-34522

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-34522/
Summaries are generated and may contain mistakes; the official description above is the record.
