# CVE-2026-34522: SillyTavern path traversal in chat import API

Source: https://junglewise.ai/threats/cve-2026-34522-sillytavern-path-traversal-in-chat-import-api  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-04-02. Updated: 2026-07-24  
License: CC BY 4.0 with a link back

CVE-2026-34522 · Severity: high · CVSS 8.1 · Published 2026-04-02

SillyTavern is a locally installed interface used to interact with AI models for text and image generation. A security flaw allows logged-in users to save files to unauthorized locations on the host computer's hard drive by manipulating character names during a chat import. This could allow an attacker to disrupt the system or place malicious files in sensitive folders, potentially compromising the stability and integrity of the host machine.

Technologies: [sillytavern (npm)](https://junglewise.ai/threats/technologies/sillytavern). Vendors: [npm](https://junglewise.ai/threats/vendors/npm).

## Quick answers

**Is CVE-2026-34522 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-34522 being exploited in the wild.

**How severe is CVE-2026-34522?** High severity, with a CVSS score of 8.1, published 2 April 2026.

**Which products and versions are affected?** sillytavern (npm) SEMVER:introduced=0,fixed=1.17.0.

**Is there a fix for CVE-2026-34522?** Yes. sillytavern (npm): upgrade to 1.17.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-34522 attacked?** It is attacked over the network, in a network appliance.

**Am I affected by CVE-2026-34522?** Check whether you run sillytavern (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- sillytavern (npm): upgrade to 1.17.0 or later

  ```sh
  npm install sillytavern@1.17.0
  ```


## Technical details

A path traversal vulnerability exists in the `/api/chats/import` endpoint of SillyTavern due to insufficient sanitization of the `character_name` parameter. The application uses this parameter to construct a destination file path via `path.join()` without neutralizing directory traversal sequences (e.g., `../`). An authenticated attacker can exploit this by submitting a crafted import request with a manipulated `character_name` to write arbitrary JSONL files to any location writable by the service account. This vulnerability is tracked as CVE-2026-34522 and was addressed in version 1.17.0 by implementing proper input sanitization.

## Affected products

- SillyTavern SillyTavern < 1.17.0

## Identifiers

- CVE-2026-34522
- GHSA-xvww-xhx6-22pf

## Timeline

- 2026-03-28: patched: Version 1.17.0 released
- 2026-03-30: advisory: GitHub Security Advisory published
- 2026-04-02: disclosed: CVE published to NVD

## References

- [https://github.com/SillyTavern/SillyTavern/releases/tag/1.17.0](https://github.com/SillyTavern/SillyTavern/releases/tag/1.17.0)
- [https://github.com/SillyTavern/SillyTavern/security/advisories/GHSA-xvww-xhx6-22pf](https://github.com/SillyTavern/SillyTavern/security/advisories/GHSA-xvww-xhx6-22pf)

## Related threats

- [SillyTavern SSRF in SearXNG search proxy API](https://junglewise.ai/threats/cve-2026-46372-sillytavern-ssrf-in-searxng-search-proxy-api)
- [SillyTavern SSRF in CORS proxy middleware](https://junglewise.ai/threats/cve-2026-44652-sillytavern-ssrf-in-cors-proxy-middleware)
- [SillyTavern reflected XSS in CORS proxy middleware](https://junglewise.ai/threats/cve-2026-44651-sillytavern-reflected-xss-in-cors-proxy-middleware)
- [SillyTavern path traversal and directory deletion in extensions API](https://junglewise.ai/threats/cve-2026-44650-sillytavern-path-traversal-and-directory-deletion-in-extensions)
- [SillyTavern authentication bypass via SSO header injection](https://junglewise.ai/threats/cve-2026-44649-sillytavern-authentication-bypass-via-sso-header-injection)
