Skip to main content

SillyTavern EUVDEUVD-2026-33401

| CVE-2026-44649 CRITICAL
Authentication Bypass by Spoofing (CWE-290)
2026-05-12 https://github.com/SillyTavern/SillyTavern GHSA-gxx6-h3g6-vwjh
9.8
CVSS 3.1 · Vendor: https://github.com/SillyTavern/SillyTavern
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Reach SillyTavern app port directly
  2. Delivery
    Enumerate handles via /api/users/list
  3. Exploit
    Send /login with spoofed Remote-User header
  4. Install
    Receive authenticated session cookie
  5. C2
    Fetch CSRF token
  6. Execute
    Call admin APIs
  7. Impact
    Full 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 Remote-User: admin-user, receives an authenticated session cookie, fetches a CSRF token, and calls admin APIs - full account takeover with no password. A working PoC is published in the advisory, but no exploitation in the wild has been reported.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

SillyTavern < 1.18.0

Affected Packages

npm sillytavern fix: 1.18.0

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

Vendor (https://github.com/SillyTavern/SillyTavern) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 9.8 CRITICAL

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/SillyTavern/SillyTavern).

CVSS VectorVendor: https://github.com/SillyTavern/SillyTavern

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

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:

js
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:

js
app.use('/api/users', usersPublicRouter);  // line 236 (public)
app.use(requireLoginMiddleware);           // line 239 (auth gate)

src/endpoints/users-public.js:26-57:

js
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

bash
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

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.1%
Top 79% exploitable
Prevalence
Low
self-hosted hobbyist LLM chat front-end; limited enterprise footprint
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Out-of-Cycle
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Very High

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy