sillytavern
Affected
- introduced
0, fixed1.18.0(semver)
Fixed versions
1.18.0
Fix
- Fixed version
1.18.0npm install [email protected]
Advisory
Also known as: CVE-2026-44651
SillyTavern has a reflected XSS vulnerability in the CORS proxy middleware
Resolution
Fixed in SillyTavern 1.18.0: a user-provided URL is no longer reflected in the HTTP response body.
Overview
src/middleware/corsProxy.js:40Root 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
GET /proxy/:url(*)Reflected XSS in CORS proxy error responsesrc/middleware/corsProxy.js:40src/middleware/corsProxy.js:40Exploitation Preconditions
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
Medium Basis: The source's own band: MODERATE
0, fixed 1.18.0 (semver)1.18.0
1.18.0npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0