Skip to main content

CVE-2026-34524

HIGH
Path Traversal (CWE-22)
2026-04-01 https://github.com/SillyTavern/SillyTavern GHSA-vprr-q85p-79mf
8.8
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Authenticate to chat application
  2. Delivery
    Supply crafted avatar_url parameter with '..' traversal
  3. Exploit
    Bypass weak filename validator
  4. Execution
    Access arbitrary files in user data directory
  5. Impact
    Read or delete sensitive configuration 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

Authenticated user account required on SillyTavern chat endpoint. Attacker must send crafted requests with avatar_url parameter containing traversal segments (e.g., '..') to read/delete arbitrary files under user data root directory. No victim interaction needed.

Impact

Real-world risk is HIGH for exposed deployments despite requiring authentication (PR:L). The CVSS 8.3 score accurately reflects the severity: network-accessible (AV:N), low attack complexity (AC:L), no user interaction required (UI:N), and impact across confidentiality and integrity (C:H/I:H/A:L). The publicly available proof-of-concept includes complete working curl commands with detailed exploitation steps, significantly lowering the skill barrier. SSVC analysis indicates high technical impact (arbitrary file read/delete of credential stores), clear exploitation status (POC public), and high automatability (simple HTTP API calls). The vulnerability is particularly dangerous in multi-user SaaS deployments or internet-facing instances where authenticated users could steal API secrets from secrets.json or sabotage other users by deleting configuration files. Single-user localhost installations face lower practical risk but remain vulnerable if the application is network-accessible. No CISA KEV listing exists, suggesting no confirmed widespread active exploitation, but the POC publication timeline and straightforward attack vector warrant immediate patching priority.

Exploit ScenarioDerived

An authenticated attacker with valid session credentials obtains a CSRF token through normal application use, then crafts malicious HTTP POST requests to the /api/chats/export endpoint with avatar_url set to '..' and file set to 'secrets.json'. The server's path.join() operation resolves the traversal, reading and returning the contents of the secrets file containing API keys, database credentials, or third-party service tokens. The attacker then issues a DELETE request with avatar_url='..' and chatfile='settings.json' to destroy the victim's application configuration, causing denial of service and potentially locking the legitimate user out of their account. In multi-tenant deployments, this enables cross-user data theft and sabotage. Publicly available exploit code exists with complete working proof-of-concept commands requiring only standard HTTP tools like curl.

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

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

Alert me

AnalysisAIv1 – Apr 01, 2026

Path traversal in SillyTavern's chat API allows authenticated attackers to read and delete sensitive configuration files (secrets.json, settings.json) outside the intended chats directory by exploiting insufficient input validation on the avatar_url parameter. The vulnerability (CVSS 8.3) permits traversal using '..' segments due to a regex validator that only blocks '/' and NUL bytes. Publicly available exploit code exists with working proof-of-concept commands provided in the GitHub advisory. EPSS data not available, but the straightforward exploitation path (AV:N/AC:L/PR:L) and availability of working POC code present significant risk for multi-user or internet-facing SillyTavern deployments. Vendor-released patch available in version 1.17.0.

RemediationAI

Upgrade immediately to SillyTavern version 1.17.0 or later, which addresses the path traversal vulnerability through improved input validation. The patch enhances the validateFileName middleware to properly reject '..' traversal sequences in addition to the existing '/' and NUL byte blocks. Organizations unable to upgrade immediately should implement network-level access controls to restrict the /api/chats/* endpoints to trusted users only and consider disabling remote network access entirely if the application is intended for single-user localhost operation. Review application logs for suspicious avatar_url parameters containing '..' sequences to identify potential exploitation attempts. Verify that secrets.json and settings.json files have not been accessed or modified by unauthorized users. Full remediation details and security advisory available at https://github.com/SillyTavern/SillyTavern/security/advisories/GHSA-vprr-q85p-79mf.

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

SillyTavern is a Node.js-based chat interface application (npm package). The vulnerability stems from CWE-22 (Path Traversal) in the middleware input validation layer. The validateFileName.js module uses a regex pattern that blocks forward slashes and NUL bytes but fails to sanitize '..' traversal sequences. When user-supplied avatar_url values are passed to Node.js path.join() operations in the /api/chats/export and /api/chats/delete endpoints, the '..' segments resolve upward from the intended <user>/chats/ directory to the parent <user>/ directory. This allows authenticated attackers to construct file paths that reference sensitive files like secrets.json (API credentials) and settings.json (application configuration) stored in the user data root, bypassing directory containment controls. The endpoints are protected by authentication and CSRF tokens but do not perform secondary path canonicalization checks.

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

NVD PRIMARY 8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

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

Lifecycle Timeline

3
CVSS changed
Jul 24, 2026 - 21:22 NVD
8.3 (HIGH) 8.8 (HIGH)
Patch released
Apr 02, 2026 - 02:30 nvd
Patch available
CVE Published
Apr 01, 2026 - 21:41 nvd
HIGH 8.3

DescriptionNVD

Summary

A Path Traversal vulnerability in chat endpoints allows an authenticated attacker to read and delete arbitrary files under their user data root (for example secrets.json and settings.json) by supplying avatar_url="..".

Details

The input validator used by avatar_url blocks only / and NUL bytes, but does not block traversal segments like ...

Evidence:

  • Weak validator regex (does not reject ..):

<https://github.com/SillyTavern/SillyTavern/blob/b7bb8be35a5c779b4db12a4a5b94d7e49096071c/src/middleware/validateFileName.js#L24-L27>

  • Vulnerable delete path construction:

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

  • Vulnerable export path construction:

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

  • Endpoint auth context (authenticated user access):

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

Because avatar_url=".." is accepted, path.join(<user>/chats, "..") resolves to <user>/, enabling direct access to files outside the chats directory.

PoC

Prerequisites:

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

Read sensitive file (secrets.json):

bash
curl -b cookie.txt -H "x-csrf-token: $TOKEN" -H "content-type: application/json" \
  -d '{"avatar_url":"..","is_group":false,"file":"secrets.json","format":"jsonl","exportfilename":"x"}' \
  http://TARGET:8000/api/chats/export

Delete sensitive file (settings.json):

bash
curl -b cookie.txt -H "x-csrf-token: $TOKEN" -H "content-type: application/json" \
  -d '{"avatar_url":"..","chatfile":"settings.json"}' \
  http://TARGET:8000/api/chats/delete

Impact

  • Confidentiality: exposed per-user secrets and config data.
  • Integrity/Availability: attacker can delete critical per-user files and break account operation.
  • Risk is significant in multi-user or remotely reachable deployments.

Resolution

The issue was addressed in version 1.17.0

Executive ViewAI

Why It Matters

SillyTavern versions prior to 1.17.0 contain a path traversal vulnerability in the chat API that allows authenticated users to read and delete sensitive configuration files containing secrets and settings. Organizations operating multi-user or internet-facing SillyTavern instances face immediate risk of credential exposure and system misconfiguration through a simple, low-complexity attack requiring only valid user authentication.

Business Impact: High
Compensating Controls

Vendor-released patch: version 1.17.0. Until patched, implement strict network access controls limiting SillyTavern to authenticated internal users only; disable internet-facing access; monitor file system access to secrets.json and settings.json; enforce principle of least privilege on service accounts running SillyTavern.

Threat Intelligence Overview

EPSS Score
0.0%
Top 86% 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.0%
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
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
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)NVD

pkg:npm/sillytavern

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