{"id":"CVE-2026-34526","aliases":["CVE-2026-34526","GHSA-wm7j-m6jm-8797"],"related":[],"kind":"vulnerability","state":"published","title":"SillyTavern: Incomplete IP validation in /api/search/visit allows SSRF via localhost and IPv6","summary":"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, in src/endpoints/search.js, the hostname is checked against /^\\d+\\.\\d+\\.\\d+\\.\\d+$/. This only matches literal dotted-quad IPv4 (e.g. 127.0.0.1, 10.0.0.1). It does not catch: localhost (hostname, not dotted-quad), [::1] (IPv6 loopback), and DNS names resolving to internal addresses (e.g. localtest.me -> 127.0.0.1). A separate port check (urlObj.port !== '') limits exploitation to services on default ports (80/443), making this lower severity than a fully unrestricted SSRF. This issue has been patched in version 1.17.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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, in src/endpoints/search.js, the hostname is checked against /^\\d+\\.\\d+\\.\\d+\\.\\d+$/. This only matches literal dotted-quad IPv4 (e.g. 127.0.0.1, 10.0.0.1). It does not catch: localhost (hostname, not dotted-quad), [::1] (IPv6 loopback), and DNS names resolving to internal addresses (e.g. localtest.me -> 127.0.0.1). A separate port check (urlObj.port !== '') limits exploitation to services on default ports (80/443), making this lower severity than a fully unrestricted SSRF. This issue has been patched in version 1.17.0.","source":"cvelist"},{"lang":"en","text":"### Details\nDistinct from CVE-2025-59159 and CVE-2026-26286 (all fixed in v1.16.0). This endpoint is still unpatched.\n\nIn `src/endpoints/search.js` line 419, the hostname is checked against `/^\\d+\\.\\d+\\.\\d+\\.\\d+$/`. This only matches literal dotted-quad IPv4 (e.g. `127.0.0.1`, `10.0.0.1`). It does not catch:\n- `localhost` (hostname, not dotted-quad)\n- `[::1]` (IPv6 loopback)\n- DNS names resolving to internal addresses (e.g. `localtest.me` -> 127.0.0.1)\n\nA separate port check (`urlObj.port !== ''`) limits exploitation to services on default ports (80/443), making this lower severity than a fully unrestricted SSRF.\n\n### PoC\n1. Start SillyTavern v1.16.0 normally\n2. Send requests to compare blocked vs bypassed (requires a valid session cookie or CSRF disabled):\n```bash\n# Blocked — dotted-quad matched by regex\ncurl -s -o /dev/null -w \"%{http_code}\" -X POST http://127.0.0.1:8000/api/search/visit \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"url\": \"http://127.0.0.1/\", \"html\": true}'\n# Returns: 400 (blocked)\n\n# Bypassed — \"localhost\" is not dotted-quad\ncurl -s -o /dev/null -w \"%{http_code}\" -X POST http://127.0.0.1:8000/api/search/visit \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"url\": \"http://localhost/\", \"html\": true}'\n# Returns: 500 (passed validation, fetch attempted, ECONNREFUSED because nothing on port 80)\n\n# Bypassed — IPv6 loopback is not dotted-quad\ncurl -s -o /dev/null -w \"%{http_code}\" -X POST http://127.0.0.1:8000/api/search/visit \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"url\": \"http://[::1]/\", \"html\": true}'\n# Returns: 500 (passed validation, fetch attempted)\n```\n\nThe 400 vs 500 difference confirms `localhost` and `[::1]` pass the IP check. The 500 is ECONNREFUSED (nothing listening on port 80), not a validation rejection.\n\n### Impact\nServer-side request forgery with partial restrictions. An authenticated user can force the server to fetch from internal hosts on default ports (80/443) using hostnames or IPv6 addresses that bypass the IP check. The full response body is returned. Lower severity than a fully unrestricted SSRF due to the port limitation.\n\n## Resolution\n\nThe issue was addressed in version 1.17.0 by improving IPv6 address validation","format":"markdown","source":"ghsa"},{"lang":"es","text":"SillyTavern es una interfaz de usuario instalada localmente que permite a los usuarios interactuar con modelos de lenguaje grandes de generación de texto, motores de generación de imágenes y modelos de voz de texto a voz. Antes de la versión 1.17.0, en src/endpoints/search.js, el nombre de host se verifica contra /^\\d+\\.\\d+\\.\\d+\\.\\d+$/. Esto solo coincide con IPv4 literal en formato de cuarteto de puntos (p. ej., 127.0.0.1, 10.0.0.1). No detecta: localhost (nombre de host, no cuarteto de puntos), [::1] (bucle invertido IPv6) y nombres DNS que resuelven a direcciones internas (p. ej., localtest.me  ->  127.0.0.1). Una verificación de puerto separada (urlObj.port !== '') limita la explotación a servicios en puertos predeterminados (80/443), haciendo que esto sea de menor gravedad que un SSRF completamente sin restricciones. Este problema ha sido parcheado en la versión 1.17.0.","source":"nvd"}],"published":"2026-04-01T21:42:24.000Z","modified":"2026-07-24T21:10:00.143Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N","score":5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N","score":5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N","score":5,"rating":"MEDIUM"}],"cwes":["CWE-918"],"affected":[{"ranges":[{"version":"< 1.17.0","status":"affected"}],"vendor":"SillyTavern","product":"SillyTavern","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.17.0"}],"ecosystem":"npm","package":"sillytavern","purl":"pkg:npm/sillytavern","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.17.0"}],"vendor":"sillytavern","product":"sillytavern","cpe":"cpe:2.3:a:sillytavern:sillytavern:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/SillyTavern/SillyTavern/security/advisories/GHSA-wm7j-m6jm-8797","tags":["exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/SillyTavern/SillyTavern/releases/tag/1.17.0","tags":["release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34526","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/SillyTavern/SillyTavern","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-04-02T17:47:59.886Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-34526","url":"https://www.cve.org/CVERecord?id=CVE-2026-34526","licence":"CVE Terms of Use","modified":"2026-04-02T17:48:03.787Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-wm7j-m6jm-8797","url":"https://github.com/advisories/GHSA-wm7j-m6jm-8797","licence":"CC-BY-4.0","modified":"2026-04-06T17:37:51.914Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-34526","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34526","licence":"Public domain","modified":"2026-07-24T21:10:00.143Z"}],"updatedAt":"2026-11-25T22:59:17.825Z","epss":{"score":0.00242,"percentile":0.1648,"date":"2026-12-01T12:00:22.000Z"}}