Skip to main content

CVE-2026-34522

HIGH
Path Traversal (CWE-22)
2026-04-01 https://github.com/SillyTavern/SillyTavern GHSA-xvww-xhx6-22pf
8.1
CVSS 3.1 · Vendor: https://github.com/SillyTavern/SillyTavern
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to SillyTavern application
  2. Delivery
    Send POST request to /api/chats/import
  3. Exploit
    Inject path traversal sequences in character_name parameter
  4. Execution
    Write malicious files outside chats directory
  5. Impact
    Modify application or system files

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Attacker must be authenticated with valid credentials to SillyTavern. Access to /api/chats/import endpoint available to authenticated users. character_name parameter in import request processed without path sanitization or validation.

Impact

Real-world risk assessment reveals moderate-to-high priority requiring prompt attention. The CVSS 8.1 score accurately reflects technical severity: network-accessible (AV:N), low attack complexity (AC:L), and devastating integrity/availability impact (I:H/A:H) offset only by low-privilege authentication requirement (PR:L). EPSS data not provided, but the attack surface is concerning-SillyTavern is commonly self-hosted by individuals and small communities who may delay patching. The authentication requirement (PR:L) significantly reduces immediate internet-scale exploitation risk compared to unauthenticated flaws, but authenticated access is often easily obtained in these collaborative self-hosted environments through shared credentials or social engineering. No CISA KEV listing confirms this is not yet observed in active mass exploitation campaigns. However, the GitHub advisory includes detailed proof-of-concept code with complete curl commands, lowering the technical barrier for opportunistic attackers. SSVC factors: Exploitation status is PoC-level, automatable once authenticated (low complexity), technical impact is significant (arbitrary file write), and affected population is the installed base of pre-1.17.0 instances. The absence of confidentiality impact (C:N) limits data exfiltration risk, but integrity/availability attacks enable ransomware staging, log poisoning, configuration tampering, or denial-of-service through disk exhaustion. Priority: patch within 30 days for internet-facing instances, especially those with multiple users or weak authentication controls.

Exploit ScenarioDerived

An authenticated attacker with valid session credentials targets a shared SillyTavern instance hosting multiple users' AI chat histories. The attacker crafts a malicious chat import request to /api/chats/import, injecting traversal sequences into the character_name parameter (e.g., '../../../../var/www/html/shell' or '../../../../.ssh/authorized_keys'). By uploading a weaponized JSONL file and setting character_name to escape the chats directory, the attacker writes arbitrary content to sensitive system locations accessible by the Node.js process user. This could enable web shell deployment in publicly accessible directories, SSH key injection for persistence, cron job tampering, or log file poisoning to conceal subsequent attacks. In multi-tenant scenarios, attackers could overwrite other users' chat files or application configuration

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 01, 2026

Authenticated path traversal in SillyTavern's chat import API enables authenticated users to write arbitrary files outside intended directories. Attackers exploit unsanitized 'character_name' parameters in /api/chats/import (versions prior to 1.17.0) to inject traversal sequences (e.g., '../../../../tmp/malicious'), causing file writes to arbitrary filesystem locations accessible to the service account. With CVSS 8.1 (AV:N/AC:L/PR:L), this requires low-privilege authentication but no user intera

Earlier versions of this analysis (1)
v1 Apr 01, 2026 - 22:16 CVSS 8.1

Authenticated path traversal in SillyTavern's chat import API enables authenticated users to write arbitrary files outside intended directories. Attackers exploit unsanitized 'character_name' parameters in /api/chats/import (versions prior to 1.17.0) to inject traversal sequences (e.g., '../../../../tmp/malicious'), causing file writes to arbitrary filesystem locations accessible to the service account. With CVSS 8.1 (AV:N/AC:L/PR:L), this requires low-privilege authentication but no user interaction, delivering high integrity and availability impact through disk abuse and malicious file placement. Vendor patch available in version 1.17.0. No CISA KEV listing or public exploit identified at time of analysis, though detailed proof-of-concept exists in the security advisory.

RemediationAI

Upgrade immediately to SillyTavern version 1.17.0 or later, which addresses the path traversal vulnerability through input sanitization of the character_name parameter. The fix is available through standard npm update procedures (npm update sillytavern) or by pulling the latest release from the GitHub repository at https://github.com/SillyTavern/SillyTavern. For users unable to upgrade immediately, implement temporary mitigations: restrict /api/chats/import endpoint access through reverse proxy rules (nginx/Apache location blocks), implement filesystem permissions to limit write access for the SillyTavern service account to only the intended chats directory, or disable the import functionality entirely if not operationally required. Review filesystem audit logs for suspicious file creation patterns outside expected directories (grep for recently created files with 'imported.jsonl' suffix in unexpected paths). After patching, verify the fix by attempting the proof-of-concept attack from the advisory-properly patched systems should reject traversal sequences. Consult the official security advisory at https://github.com/SillyTavern/SillyTavern/security/advisories/GHSA-xvww-xhx6-22pf for additional vendor guidance and validated patch instructions.

Affected Packages

npm sillytavern fix: 1.17.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

This vulnerability affects the npm package 'sillytavern' (pkg:npm/sillytavern), a local-first AI chat interface application built on Node.js. The flaw resides in the chat import functionality at /api/chats/import endpoint, specifically in the handling of file uploads for character chat histories. The vulnerable code in src/endpoints/chats.js (lines 680-766) directly concatenates user-supplied 'character_name' parameter into filesystem path operations via Node.js path.join() without input validation or sanitization. This represents a classic CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) implementation flaw. The application intends to store imported chats in a structured directory hierarchy (<user>/chats/<avatar>/), but the lack of path traversal defenses allows attackers to inject directory traversal sequences (../) that escape the intended sandbox. Node.js path.join() does not inherently prevent traversal attacks when components contain unvalidated user input. The vulnerability exists in both JSON and JSONL import code paths, affecting multiple file format handlers within the same endpoint.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/SillyTavern/SillyTavern) PRIMARY 8.1 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H

Primary rating from Vendor (https://github.com/SillyTavern/SillyTavern) · only source for this CVE.

CVSS VectorVendor: https://github.com/SillyTavern/SillyTavern

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch released
Apr 02, 2026 - 02:30 nvd
Patch available
CVE Published
Apr 01, 2026 - 21:36 nvd
HIGH 8.1

DescriptionCVE.org

Summary

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.

Details

character_name is used unsafely as part of the destination filename and then passed into path.join(...) without sanitization.

Evidence:

  • Import handler entrypoint:

<https://github.com/SillyTavern/SillyTavern/blob/b7bb8be35a5c779b4db12a4a5b94d7e49096071c/src/endpoints/chats.js#L680-L686>

  • Unsanitized character_name used in output filename:

<https://github.com/SillyTavern/SillyTavern/blob/b7bb8be35a5c779b4db12a4a5b94d7e49096071c/src/endpoints/chats.js#L719-L723>

  • Same write pattern in JSONL import branch:

<https://github.com/SillyTavern/SillyTavern/blob/b7bb8be35a5c779b4db12a4a5b94d7e49096071c/src/endpoints/chats.js#L759-L766>

  • Endpoint auth context (authenticated user access):

<https://github.com/SillyTavern/SillyTavern/blob/b7bb8be35a5c779b4db12a4a5b94d7e49096071c/src/server-main.js#L239>

Example payload:

  • character_name=../../../../tmp/st_poc

This causes the final destination path to escape from <user>/chats/<avatar>/... and write to an attacker-controlled location such as /tmp/... (or any writable path for the service account).

PoC

Prerequisites:

  • Valid authenticated session cookie (cookie.txt)
  • Valid CSRF token ($TOKEN)

Prepare payload:

bash
printf '{"user_name":"u","chat_metadata":{}}\n{"name":"u","mes":"owned"}\n' >/tmp/poc.jsonl

Trigger arbitrary write:

bash
curl -b cookie.txt -H "x-csrf-token: $TOKEN" \
  -F "avatar=@/tmp/poc.jsonl" \
  -F "file_type=jsonl" \
  -F "avatar_url=a.png" \
  -F "character_name=../../../../tmp/st_poc" \
  -F "user_name=u" \
  http://TARGET:8000/api/chats/import

Observed result:

  • A file is created outside chats directory, for example:

/tmp/st_poc - <timestamp> imported.jsonl

Impact

  • Integrity: attacker can create files in unintended filesystem locations.
  • Availability: can be used for disk abuse and disruptive file placement.
  • Can become more severe when chained with other local processing behaviors.

Resolution

The issue was addressed in version 1.17.0

Threat Intelligence Overview

EPSS Score
0.1%
Top 83% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

40
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +40
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

Affected Products (CPE)CVE.org

pkg:npm/sillytavern

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy