Fixed in SillyTavern 1.18.0: a user-provided URL is no longer reflected in the HTTP response body.
src/middleware/corsProxy.js:40When 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 (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
This issue enables script execution in the victim context and can compromise session or data integrity.
An attacker may run arbitrary JavaScript in the victim context, steal tokens, and manipulate user-visible behavior.
| Score | Percentile |
|---|---|
| 0.06% | 19.54% |
| Base score | Version | Severity | Vector |
|---|---|---|---|
| 6.9 | 4.0 | — |
|
| Type | Value |
|---|---|
| GHSA | GHSA-xc4x-2452-5gc9 ↗ |
| CVE | CVE-2026-44651 ↗ |
| CWE id | Name |
|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') |
Vulnerable version ranges and first patched releases as published by GitHub.
| Ecosystem | Package | Vulnerable range | First patched | Vulnerable functions |
|---|---|---|---|---|
| npm | sillytavern | <= 1.17.0 | 1.18.0 | — |