CVE-2026-34523: SillyTavern Path Traversal Vulnerability
MODERATECVE-2026-34523 is a MODERATE (CVSS 5.3) 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 path traversal allows file existence oracle. Remediation is available by upgrading affected packages to version 1.17.0.
CVE-2026-34523 at a Glance
Security Impact
CVSS: 5.3
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:L/I:N/A:N).
How to Fix CVE-2026-34523
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.17.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-34523, 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.17.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-34523 Affected SillyTavern Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
sillytavern
|
npm |
< 1.17.0
|
1.17.0
|
References
Frequently Asked Questions
What is CVE-2026-34523?
Which SillyTavern versions are affected?
What version fixes CVE-2026-34523?
Is sillytavern affected?
What is the CVSS score of CVE-2026-34523?
What CWE is associated with CVE-2026-34523?
How can I check npm dependencies for CVE-2026-34523?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-525j-2hrj-m8fp",
"modified" : "2026-04-06T17:24:20Z",
"published" : "2026-04-01T21:40:22Z",
"aliases" : [ "CVE-2026-34523" ],
"summary" : "SillyTavern: Path Traversal allows file existence oracle",
"details" : "### Summary\n\nA 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).\n\n### Details\n\nThe vulnerability is in `createRouteHandler` (`src/users.js:947–963`), which backs all user-data static file routes:\n\n```javascript\nfunction createRouteHandler(directoryFn) {\n return async (req, res) => {\n const directory = directoryFn(req);\n const filePath = decodeURIComponent(req.params[0]);\n const exists = fs.existsSync(path.join(directory, filePath)); // no boundary check here\n if (!exists) {\n return res.sendStatus(404);\n }\n return res.sendFile(filePath, { root: directory });\n };\n}\n```\n\n`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.\n\nAffected routes (they all use the same handler, so they're all affected):\n\n- `/characters/*`\n- `/user/files/*`\n- `/assets/*`\n- `/user/images/*`\n- `/backgrounds/*`\n- `/User%20Avatars/*`\n\n### PoC\n\n```bash\ncurl -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\"\n```\n\n### Impact\n\nWhile 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.\n\n### Resolution\n\nThe issue was addressed in version 1.17.0.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "sillytavern"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.17.0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.16.0"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/SillyTavern/SillyTavern/security/advisories/GHSA-525j-2hrj-m8fp"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-34523"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/SillyTavern/SillyTavern"
}, {
"type" : "WEB",
"url" : "https://github.com/SillyTavern/SillyTavern/releases/tag/1.17.0"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-04-01T21:40:22Z",
"nvd_published_at" : "2026-04-02T18:16:29Z"
}
}