Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Network-reachable SSRF with no auth (PR:N); scope changes as server reaches internal systems (S:C); confidentiality-only, limited impact (C:L), consistent with vendor's CVSS 4.0 VC:L.
Primary rating from Vendor (https://github.com/SillyTavern/SillyTavern).
CVSS VectorVendor: https://github.com/SillyTavern/SillyTavern
Lifecycle Timeline
4DescriptionCVE.org
Resolution
SillyTavern 1.18.0 added a generic server-side request filter (Private Request Whitelisting). Since we expect users to use the application in a trusted environment, the filter is disabled by default, however it is strongly advised to be enabled and properly configured when an instance is being hosted over a network, as suggested by a console warning message and an officially published security checklist for administrators.
Documentation:
- https://docs.sillytavern.app/administration/config-yaml/#private-address-whitelisting
- https://docs.sillytavern.app/administration/#security-checklist
Note on future SSRF findings
Since the request filter applies to the entire application, no SSRF vulnerabilities against individual endpoints will be accepted, unless it has been proven that a properly configured and enabled filter can be bypassed in an undocumented way. Only advisories disclosed before the 1.18.0 release will be posted if their concern is SSRF.
Overview
- Vulnerability Type: SSRF
- Affected Location:
src/middleware/corsProxy.js:31 - Trigger Scenario: SSRF in optional CORS proxy
Root Cause
corsProxyMiddleware forwards req.params.url directly into fetch(url, ...). It only blocks circular requests to its own host and does not enforce destination allowlist or private/loopback restrictions, enabling SSRF.
Source-to-Sink Chain
- Source (user-controlled input)
- Entry point:
GET /proxy/:url(*)
- Data flow
- Code analysis shows concrete propagation into this sink:
- vulnerability title:
SSRF in optional CORS proxy - sink location reached by attacker-controlled input:
src/middleware/corsProxy.js:31 - The same sink behavior is confirmed by controlled execution observations.
- Sink (dangerous operation)
- Sink location:
src/middleware/corsProxy.js:31 - Vulnerable behavior: SSRF in optional CORS proxy
Exploitation Preconditions
- The attacker can control or influence a URL/endpoint parameter.
- The server can access internal or sensitive network targets.
- Outbound request validation or redirect controls are insufficient.
Risk
This issue can be used to pivot network access and reach unintended internal resources.
Impact
An attacker may access internal network services or metadata endpoints and exfiltrate sensitive responses.
Remediation
- Enforce strict destination allowlist for proxy targets.
- Block loopback, link-local, RFC1918, and metadata address ranges.
- Apply the same destination validation to redirects.
AnalysisAI
Server-Side Request Forgery in SillyTavern's optional CORS proxy middleware allows unauthenticated remote attackers to pivot through the server and reach internal network resources, cloud metadata endpoints, or RFC1918 services. All versions up to and including 1.17.0 (npm package pkg:npm/sillytavern) are affected via the GET /proxy/:url(*) endpoint, where corsProxyMiddleware in src/middleware/corsProxy.js:31 forwards attacker-controlled URLs directly to fetch() without destination allowlisting or private-range blocking. No public exploit has been identified at time of analysis, and the EPSS score of 0.01% (2nd percentile) reflects negligible observed exploitation activity; however, publicly hosted instances without network-level controls present meaningful exposure to internal service probing.
Technical ContextAI
SillyTavern is an AI companion and chat frontend application distributed as an npm package (pkg:npm/sillytavern). The vulnerability is classified under CWE-918 (Server-Side Request Forgery). The optional CORS proxy feature - intended to allow the browser-based frontend to reach external AI API endpoints that lack CORS headers - is implemented in src/middleware/corsProxy.js. At line 31, the corsProxyMiddleware handler receives the full URL from the Express route parameter req.params.url and passes it directly to Node.js's native fetch() API. The only implemented guard is a self-referential request check (blocking the proxy from calling itself), with no enforcement of destination allowlists, RFC1918 address blocking, loopback/link-local restrictions, or cloud metadata range filtering (e.g., 169.254.169.254). This is a classic source-to-sink SSRF: user-controlled input flows unvalidated into a server-side outbound network call.
RemediationAI
Upgrade to SillyTavern 1.18.0 or later, which introduces a Private Address Whitelisting filter as a generic server-side SSRF defense. The vendor-released patch is confirmed at https://github.com/SillyTavern/SillyTavern/releases/tag/1.18.0. Critically, the private address whitelist is disabled by default in 1.18.0; administrators hosting instances over any network must explicitly enable and configure it per the documentation at https://docs.sillytavern.app/administration/config-yaml/#private-address-whitelisting and follow the security checklist at https://docs.sillytavern.app/administration/#security-checklist. For instances that cannot immediately upgrade, disable the optional CORS proxy feature entirely if it is not operationally required - this eliminates the attack surface with no other functional impact. As a compensating network control, restrict access to the SillyTavern server port to trusted source IPs only, which prevents unauthenticated external callers from reaching the proxy endpoint. Blocking outbound server connections to RFC1918, loopback, and link-local ranges at the firewall layer (e.g., iptables OUTPUT rules) is an additional defense-in-depth measure that limits SSRF pivot reach even if the endpoint remains accessible.
Same weakness CWE-918 – Server-Side Request Forgery (SSRF)
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-33399
GHSA-ccfq-2454-f5xw