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
Share

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/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
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
Privileges Required
None
User Interaction
None
Scope
X

Lifecycle Timeline

4
Source Code Evidence Fetched
Jul 23, 2026 - 19:10 vuln.today
Analysis Generated
Jul 23, 2026 - 19:10 vuln.today
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.

AnalysisAI

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.

Technical ContextAI

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.

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.

Share

CVE-2026-44651 vulnerability details – vuln.today

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