Skip to main content

CVE-2026-34523

MEDIUM
Path Traversal (CWE-22)
2026-04-01 https://github.com/SillyTavern/SillyTavern GHSA-525j-2hrj-m8fp
5.3
CVSS 3.1 · Vendor: https://github.com/SillyTavern/SillyTavern
View

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.

Impact

CVSS 5.3 (AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N) reflects low severity because the attack has no authentication barrier and is trivially exploitable, but the impact is limited to confidentiality (file existence enumeration only). EPSS exploitation probability assessment would likely be moderate to high due to simplicity of the attack vector and lack of user interaction requirement. No KEV status or public proof-of-concept code is noted beyond the curl command in the advisory itself, indicating this is not yet confirmed as actively exploited at scale, though the vulnerability is straightforward enough for weaponization if an attacker gains knowledge of the flaw. The attack complexity is low (AC:L) and requires no privileges (PR:N), making this attractive for reconnaissance by semi-skilled attackers. Real-world risk depends on deployment context: internet-facing SillyTavern instances with standard filesystem layouts are at moderate risk for information disclosure that could aid further reconnaissance. The limited impact (no code execution, no data modification, no service disruption) positions this as important for patching but not critical compared to RCE or authentication bypass vulnerabilities. Organizations running SillyTavern should prioritize this as a tier-2 remediation given the ease of exploitation and the potential for information leakage about system structure.

Exploit ScenarioDerived

An unauthenticated attacker discovers a SillyTavern instance on the internet and begins sending crafted requests with percent-encoded traversal sequences to static file routes (e.g., /characters/%2E%2E%2F%2E%2E%2F%2E%2E%2FUsers/admin/.ssh/id_rsa). By observing HTTP response codes, the attacker maps the server filesystem structure, identifying the presence of sensitive paths such as /root/.bash_history, /etc/passwd, or application data directories. The attacker gains no direct file contents but leverages this enumeration to refine further attacks, such as targeted credential harvesting or identification of backup locations. Public proof-of-concept code exists in the advisory (curl command), making this attack trivially reproducible by any actor with network access to the SillyTavern port.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.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

Unauthenticated path traversal in SillyTavern static file route handlers allows remote attackers to enumerate filesystem structure by distinguishing 404 (file does not exist) from 403 (file exists but blocked) responses when submitting percent-encoded directory traversal sequences. The vulnerability affects versions prior to 1.17.0 and impacts multiple static file endpoints (/characters/*, /user/files/*, /assets/*, /user/images/*, /backgrounds/*, /User%20Avatars/*), disclosing whether arbitrary files exist on the server filesystem without authentication. File contents are not exposed due to the send module's root directory enforcement, limiting impact to information disclosure, but the fix is available and should be applied immediately.

RemediationAI

Upgrade SillyTavern to version 1.17.0 or later immediately. This patched version contains the fix to the createRouteHandler function that validates path boundaries before executing fs.existsSync. For installations using npm, execute 'npm install sillytavern@1.17.0' or higher. If immediate upgrade is not possible, the underlying mitigation is to restrict network access to the SillyTavern HTTP port to trusted networks only, limiting exposure of the file enumeration capability to authenticated or internal users. The patch address is documented in the official GitHub advisory at https://github.com/SillyTavern/SillyTavern/security/advisories/GHSA-525j-2hrj-m8fp; consult that advisory for any version-specific upgrade instructions or breaking changes.

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

The vulnerability exists in the createRouteHandler function (src/users.js:947-963) which constructs file paths by decoding percent-encoded URL parameters without validating path boundaries. The handler uses decodeURIComponent on user-supplied input (req.params[0]), allowing encoded traversal sequences like %2E%2E%2F to become ../ after decoding. The fs.existsSync check executes against the traversal-resolved path before the send module's root directory restriction is applied, creating a timing-based information leak. When res.sendFile is invoked with the resolved path, the send module correctly enforces the root boundary and returns 403 Forbidden, but by that point the fs.existsSync call has already confirmed file existence. This is a classic example of CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) combined with an information disclosure flaw stemming from conditional error handling. The root cause is the absence of path.normalize() validation or realpath checks to ensure the decoded filePath remains within the intended directory before any filesystem operations occur.

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 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

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
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None

Lifecycle Timeline

2
Patch released
Apr 02, 2026 - 02:30 nvd
Patch available
CVE Published
Apr 01, 2026 - 21:40 nvd
MEDIUM 5.3

DescriptionCVE.org

Summary

A path traversal vulnerability in the static file route handler allows any unauthenticated user to determine whether files exist anywhere on the server's filesystem. By sending percent-encoded ../ sequences (%2E%2E%2F) in requests to static file routes, an attacker can check for the existence of files (404 if it doesn't exist, 403 means it exists).

Details

The vulnerability is in createRouteHandler (src/users.js:947-963), which backs all user-data static file routes:

javascript
function createRouteHandler(directoryFn) {
    return async (req, res) => {
        const directory = directoryFn(req);
        const filePath = decodeURIComponent(req.params[0]);
        const exists = fs.existsSync(path.join(directory, filePath)); // no boundary check here
        if (!exists) {
            return res.sendStatus(404);
        }
        return res.sendFile(filePath, { root: directory });
    };
}

req.params[0] contains the raw (percent-encoded) wildcard from the URL. After decodeURIComponent, a request path like /characters/%2E%2E%2F%2E%2E%2FUsers/kirakira decodes to ../../Users/kirakira, and path.join resolves it outside the intended directory. res.sendFile correctly blocks the file from being served (the send module's root check returns 403), but fs.existsSync had already run, and the 403/404 distinction reveals the result.

Affected routes (they all use the same handler, so they're all affected):

  • /characters/*
  • /user/files/*
  • /assets/*
  • /user/images/*
  • /backgrounds/*
  • /User%20Avatars/*

PoC

bash
curl -o /dev/null -s -w "%{http_code}\n" "http://localhost:8000/characters/%2E%2E%2F%2E%2E%2F%2E%2E%2F%2E%2E%2F%2E%2E%2F%2E%2E%2F%2E%2E%2FUsers/kirakira/something"

Impact

While file contents cannot be read (the send module blocks actual delivery), anyone who can reach the SillyTavern HTTP port can check the existence of files on the host filesystem.

Resolution

The issue was addressed in version 1.17.0.

Threat Intelligence Overview

EPSS Score
0.1%
Top 80% 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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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

Attack Technique

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