CVE-2026-34522
HIGHAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to SillyTavern application
-
DeliverySend POST request to /api/chats/import
-
ExploitInject path traversal sequences in character_name parameter
-
ExecutionWrite malicious files outside chats directory
-
ImpactModify 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 |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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)
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
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
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
Lifecycle Timeline
2DescriptionCVE.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_nameused 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:
printf '{"user_name":"u","chat_metadata":{}}\n{"name":"u","mes":"owned"}\n' >/tmp/poc.jsonlTrigger arbitrary write:
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/importObserved 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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
GHSA-xvww-xhx6-22pf
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB