Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker crafts URL with injected script payload
-
DeliveryTricks victim into requesting GET /proxy/<script>...</script>
-
ExploitServer fetch() throws on invalid URL
-
ExecutionUnescaped URL concatenated into HTTP 500 response body
-
PersistVictim browser renders and executes injected JavaScript
-
ImpactAttacker 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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 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
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
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.
Primary rating from Vendor (https://github.com/SillyTavern/SillyTavern).
CVSS VectorVendor: https://github.com/SillyTavern/SillyTavern
Lifecycle Timeline
2DescriptionCVE.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
- Source (user-controlled input)
- Entry point:
GET /proxy/:url(*)
- 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.
- Sink (dangerous operation)
- Sink location:
src/middleware/corsProxy.js:40 - Vulnerable behavior: reflected XSS in CORS proxy error response
Exploitation Preconditions
- The attacker can inject controllable content into a rendered response.
- The vulnerable rendering context does not apply strict output encoding/sanitization.
- 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
- Never concatenate raw user input into HTML error responses.
- If URL echo is required, HTML-escape it or force plain-text output.
- Re-enable/strengthen CSP to reduce reflected injection impact.
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 Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
EUVD-2026-33405
GHSA-xc4x-2452-5gc9
NVD
CVE.org
EPSS
Exploit-DB