CVE-2026-34526
MEDIUMVulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Credential Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Impact | CVSS 5.0 with vector AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N indicates network-accessible, low-complexity attack requiring low privileges (authenticated user) with no user interaction, cross-site scope, and low confidentiality impact. The authentication requirement (PR:L) narrows the attacker pool to authenticated users or those who can bypass authentication if CSRF is disabled. EPSS and KEV status are not provided in input data, so exploitation probability cannot be quantified from intelligence signals. However, the presence of functional proof-of-concept code (detailed in input) demonstrating HTTP 400 vs 500 differentiation confirms the bypass is practical and reproducible. The port restriction (default ports only) significantly limits real-world impact compared to unrestricted SSRF, as many internal services operate on non-standard ports. Risk is moderate: while the vulnerability is genuine and exploitable, the authentication requirement, port limitation, and information-disclosure-only impact (no code execution or service disruption) make this lower priority than network-accessible RCE or pre-auth SSRF vulnerabilities. Organizations running SillyTavern with untrusted authenticated users or with CSRF disabled should prioritize patching. |
| Exploit ScenarioDerived | An authenticated user with valid session credentials sends a POST request to /api/search/visit with the URL parameter set to 'http://localhost/' or 'http://[::1]/' instead of a dotted-quad IPv4 address. The server's hostname validation regex fails to block these alternative localhost representations, and the request proceeds past validation. The attacker's HTTP client forces the server to connect to its own loopback interface on port 80, potentially retrieving responses from internal services, metadata endpoints, or diagnostic information exposed on that port. The full response body is returned to the attacker in the HTTP response, enabling reconnaissance of internal network topology or service versions. Proof-of-concept code demonstrates this with curl commands showing HTTP 400 (blocked) for 127.0.0.1 but HTTP 500 (validation passed, then connection refused) for localhost and [::1], confirming the bypass. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 01, 2026
Server-side request forgery in SillyTavern's search endpoint allows authenticated users to bypass hostname validation and force the server to fetch from internal hosts on default ports (80/443) using alternative hostname representations. The vulnerability exists in v1.16.0 and earlier because the IPv4 validation regex only matches literal dotted-quad notation (e.g., 127.0.0.1), failing to block localhost, IPv6 loopback ([::1]), or DNS names resolving to internal addresses. The port restriction limits severity compared to fully unrestricted SSRF, but the full response body is returned to the attacker, enabling information disclosure. Patch available in v1.17.0.
RemediationAI
Upgrade SillyTavern to version 1.17.0 or later, which includes improved IPv6 address validation and corrected hostname matching logic. For users unable to upgrade immediately, apply the following mitigations: restrict network access to the SillyTavern instance to trusted users only, disable CSRF protections only if operationally necessary (enabling them prevents unauthenticated exploitation), disable or restrict the /api/search/visit endpoint if the search functionality is not required, and implement network-level egress filtering to block outbound connections to internal IP ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 127.0.0.0/8) from the SillyTavern process. Consult the official GitHub advisory at https://github.com/advisories/GHSA-wm7j-m6jm-8797 for additional vendor-recommended steps.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability resides in src/endpoints/search.js line 419 where hostname validation uses a restrictive regex pattern /^\d+\.\d+\.\d+\.\d+$/ designed to block dotted-quad IPv4 addresses. However, this pattern fails to recognize alternative representations of localhost and loopback addresses: the hostname 'localhost' is alphanumeric and does not match; IPv6 loopback notation '[::1]' contains colons and brackets outside the regex scope; and DNS hostnames like 'localtest.me' that resolve to 127.0.0.1 are not statically validated. A secondary port check (urlObj.port !== '') only permits requests to default ports (80 and 443), which reduces the attack surface but does not prevent SSRF via these alternative hostname formats. The root cause is inadequate input validation (CWE-918: Server-Side Request Forgery) due to incomplete hostname normalization before regex matching. The affected product is the npm package 'sillytavern' running on Node.js.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N
Primary rating from Vendor (https://github.com/SillyTavern/SillyTavern) · only source for this CVE.
CVSS VectorVendor: https://github.com/SillyTavern/SillyTavern
Lifecycle Timeline
2DescriptionCVE.org
Details
Distinct from CVE-2025-59159 and CVE-2026-26286 (all fixed in v1.16.0). This endpoint is still unpatched.
In 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:
localhost(hostname, not dotted-quad)[::1](IPv6 loopback)- 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.
PoC
- Start SillyTavern v1.16.0 normally
- Send requests to compare blocked vs bypassed (requires a valid session cookie or CSRF disabled):
# Blocked - dotted-quad matched by regex
curl -s -o /dev/null -w "%{http_code}" -X POST http://127.0.0.1:8000/api/search/visit \
-H "Content-Type: application/json" \
-d '{"url": "http://127.0.0.1/", "html": true}'
# Returns: 400 (blocked)
# Bypassed - "localhost" is not dotted-quad
curl -s -o /dev/null -w "%{http_code}" -X POST http://127.0.0.1:8000/api/search/visit \
-H "Content-Type: application/json" \
-d '{"url": "http://localhost/", "html": true}'
# Returns: 500 (passed validation, fetch attempted, ECONNREFUSED because nothing on port 80)
# Bypassed - IPv6 loopback is not dotted-quad
curl -s -o /dev/null -w "%{http_code}" -X POST http://127.0.0.1:8000/api/search/visit \
-H "Content-Type: application/json" \
-d '{"url": "http://[::1]/", "html": true}'
# Returns: 500 (passed validation, fetch attempted)The 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.
Impact
Server-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.
Resolution
The issue was addressed in version 1.17.0 by improving IPv6 address validation
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.
Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.
GHSA-wm7j-m6jm-8797
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB