Skip to main content

SillyTavern CVE-2026-44651

| EUVDEUVD-2026-33405 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-05-12 https://github.com/SillyTavern/SillyTavern GHSA-xc4x-2452-5gc9
6.9
CVSS 4.0 · Vendor: https://github.com/SillyTavern/SillyTavern
View

Attack ChainAIDerived

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

  1. Access
    Attacker crafts URL with injected script payload
  2. Delivery
    Tricks victim into requesting GET /proxy/<script>...</script>
  3. Exploit
    Server fetch() throws on invalid URL
  4. Execution
    Unescaped URL concatenated into HTTP 500 response body
  5. Persist
    Victim browser renders and executes injected JavaScript
  6. Impact
    Attacker exfiltrates session tokens or API keys

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires three concurrent conditions: the SillyTavern CORS proxy endpoint (GET /proxy/:url(*)) must be reachable by the victim's browser - instances restricted to localhost-only or behind network authentication are not exploitable from an external attacker; the victim must be induced to load the attacker-crafted proxy URL in a browser context (e.g., by clicking a link, loading a malicious character card, or following a community post); and the response must be rendered as HTML rather than consumed programmatically. No special server configuration is required to trigger the vulnerable code path - any fetch() failure against a crafted URL invokes the error handler. Exploitation is limited to browser-rendered responses: purely automated server-to-server requests do not achieve XSS impact. SillyTavern deployments restricted to localhost or behind basic authentication have meaningfully reduced exposure.

Impact

The provided CVSS 4.0 vector scores this at 6.9 (AV:N/AC:L/AT:N/PR:N/UI:N), but the UI:N metric is inconsistent with reflected XSS mechanics: the attack inherently requires a victim to navigate to or be socially engineered into loading a crafted URL in a browser - this should be scored UI:A (Active) in CVSS 4.0, which would reduce the effective score. The discrepancy should be verified with the reporter. EPSS at 0.05% (15th percentile) is very low, and the absence of a CISA KEV listing and any public exploit code indicate that exploitation remains theoretical at time of analysis. Impact is bounded to confidentiality and integrity at low severity (VC:L/VI:L per CVSS 4.0) - token theft and UI manipulation are realistic consequences, but arbitrary system compromise is not. SillyTavern's typical deployment model - personal or hobbyist instances, often on localhost or behind a trusted LAN - further constrains the realistic attacker pool; instances exposed to the open internet are the primary concern. Overall, this is a moderate-priority issue: meaningful risk for publicly exposed deployments, manageable risk for localhost-only instances, and fully resolved by upgrading to 1.18.0.

Exploit ScenarioDerived

An attacker crafts a URL such as /proxy/%3Cscript%3Ealert(document.cookie)%3C/script%3E and embeds it in a shared character card, community forum post, or direct message targeting SillyTavern users. When the victim's browser follows the link, the server's fetch() call fails on the invalid URL, the unescaped script tag is reflected in the HTTP 500 response body, and the browser executes the injected JavaScript within the victim's SillyTavern session, potentially exfiltrating API keys or session tokens to an attacker-controlled server. No published proof-of-concept exploit has been identified at time of analysis, but the source-to-sink chain is simple and well-documented in the advisory.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jul 23, 2026

Reflected XSS in SillyTavern's CORS proxy middleware (all versions prior to 1.18.0) allows unauthenticated network attackers to inject and execute arbitrary JavaScript in a victim's browser by crafting a malicious URL that triggers the server's unescaped HTTP 500 error response. The server concatenates the raw attacker-controlled URL parameter directly into the response body at src/middleware/corsProxy.js:40 without HTML encoding, enabling token theft and session manipulation against any user who loads a crafted proxy link. No active exploitation has been confirmed (not in CISA KEV) and EPSS is 0.05% (15th percentile), indicating low real-world exploitation activity; a vendor patch is available in version 1.18.0.

RemediationAI

The primary fix is to upgrade SillyTavern to version 1.18.0 or later, in which the user-provided URL is no longer reflected in the HTTP response body. The patch is confirmed by GitHub Security Advisory GHSA-xc4x-2452-5gc9 and available at https://github.com/SillyTavern/SillyTavern/releases/tag/1.18.0. If an immediate upgrade is not feasible, the most effective compensating control is to restrict network access to the /proxy/ endpoint so that only localhost or explicitly trusted users can reach it - SillyTavern 1.18.0 also introduces IP whitelisting and rate limiting features that reduce attack surface more broadly, giving additional incentive to upgrade. Enforcing a strict Content Security Policy (CSP) on the server is a viable defense-in-depth measure that would limit the impact of any remaining reflected injection, but it does not eliminate the vulnerability and carries a trade-off of potentially breaking legitimate frontend functionality if CSP directives are misconfigured. There is no code-level workaround short of patching or removing the CORS proxy endpoint entirely.

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 AI character roleplay frontend distributed as the npm package sillytavern (CPE: pkg:npm/sillytavern). It includes a built-in CORS proxy so the browser can reach external AI backends without cross-origin restrictions. The proxy is exposed via the route GET /proxy/:url(*), where the URL segment is taken directly from req.params.url and passed to Node.js fetch(). When fetch() throws - as it will for any malformed or unreachable URL - the exception handler at corsProxy.js:40 constructs its 500 response via raw string concatenation: res.status(500).send('Error occurred while trying to proxy to: ' + url + ' ' + error). No HTML encoding is applied before writing to the response body. This is a classic CWE-79 (Improper Neutralization of Input During Web Page Generation - Cross-site Scripting) flaw: the attacker-controlled url value flows from the route parameter source directly into the HTML sink with no sanitization, allowing injection of arbitrary script tags or event handlers that execute in the victim's browser context.

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 6.9 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
vuln.today AI 6.1 MEDIUM

Reflected XSS requires victim browser interaction (UI:R) and changes execution scope to the victim's context (S:C); no privileges or special configuration needed to reach the proxy endpoint.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/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
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
CVSS changed
May 29, 2026 - 19:22 NVD
6.9 (MEDIUM)
CVE Published
May 12, 2026 - 22:23 nvd
MEDIUM

DescriptionCVE.org

Resolution

Fixed in SillyTavern 1.18.0: a user-provided URL is no longer reflected in the HTTP response body.

Overview

  • Vulnerability Type: XSS
  • Affected Location: src/middleware/corsProxy.js:40
  • Trigger Scenario: reflected XSS in CORS proxy error response

Root Cause

When fetch(url) throws, the code sends: res.status(500).send('Error occurred while trying to proxy to: ' + url + ' ' + error). The url value is attacker-controlled (req.params.url) and is not HTML-escaped before rendering.

Source-to-Sink Chain

  1. Source (user-controlled input)
  • Entry point: GET /proxy/:url(*)
  1. Data flow
  • Code analysis shows concrete propagation into this sink:
  • vulnerability title: Reflected XSS in CORS proxy error response
  • sink location reached by attacker-controlled input: src/middleware/corsProxy.js:40
  • The same sink behavior is confirmed by controlled execution observations.
  1. Sink (dangerous operation)
  • Sink location: src/middleware/corsProxy.js:40
  • Vulnerable behavior: reflected XSS in CORS proxy error response

Exploitation Preconditions

  1. The attacker can inject controllable content into a rendered response.
  2. The vulnerable rendering context does not apply strict output encoding/sanitization.
  3. A victim user opens the affected page or response.

Risk

This issue enables script execution in the victim context and can compromise session or data integrity.

Impact

An attacker may run arbitrary JavaScript in the victim context, steal tokens, and manipulate user-visible behavior.

Remediation

  1. Never concatenate raw user input into HTML error responses.
  2. If URL echo is required, HTML-escape it or force plain-text output.
  3. Re-enable/strengthen CSP to reduce reflected injection impact.

Threat Intelligence Overview

EPSS Score
0.0%
Top 85% exploitable
Prevalence
Low
niche self-hosted AI roleplay frontend, primarily hobbyist 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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
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
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

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

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

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