Executive brief
SillyTavern is a user interface for interacting with AI models. A security flaw allows unauthenticated users to remotely delete all installed extensions on the system. This results in the permanent loss of third-party tools and configurations, potentially disrupting the user's AI workflows and requiring a full reinstallation of extensions.
Technical details
A path traversal vulnerability exists in the 'POST /api/extensions/delete' endpoint (and several related endpoints) due to improper input validation. The application uses the 'sanitize-filename' library, which converts a single dot (".") into an empty string. When this empty string is passed to 'path.join(basePath, "")', it resolves to the 'basePath' itself—the root extensions directory. Because the application performs a recursive deletion ('fs.promises.rm' with 'recursive: true') on the resulting path, an attacker can wipe the entire extensions folder. This requires no authentication in default configurations and can be exploited via a single HTTP request. The issue is fixed in version 1.18.0 by validating the input after sanitization.
Affected products
- SillyTavern SillyTavern <= 1.17.0
Timeline
- 2026-05-11: advisory: GitHub Security Advisory published
- 2026-05-29: disclosed: CVE published to NVD
- 2026-05-29: patched: Vulnerability fixed in version 1.18.0