Mittel

SillyTavern has a reflected XSS vulnerability in the CORS proxy middleware

  • Veröffentlicht: 12.05.2026
  • Aktualisiert: 11.10.2026 10:22

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.

Betroffene Software

Klicken Sie auf eine Technologie, um alle zugehörigen Schwachstellen anzuzeigen.

PlattformPaketAnfällige VersionenBehoben in
npm-Paket sillytavern < 1.18.0 1.18.0

Verweise

CVSS-Wert -
CVSS-Vektor
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
Schwäche (CWE)
CWE-79
Plattform
npm
Paket
sillytavern
Veröffentlicht
12.05.2026
Aktualisiert
11.10.2026 10:22

Quellen und Lizenzen

OSV / GitHub Advisory Database - GHSA-xc4x-2452-5gc9 - CC BY 4.0

Schwachstellenhistorie: sillytavern

Alle veröffentlichten Schwachstellen dieses Pakets (npm-Paket), neueste zuerst. Zeigt, ob es ein einmaliger Ausrutscher ist oder ein Paket, das man im Auge behalten muss.

Alle (11) im Archiv
Einträge insgesamt
11
Erste → letzte
10.2025 05.2026
Ohne Fix
0
In Angriffen ausgenutzt
0

Verteilung nach Schweregrad

  • Kritisch 3
  • Hoch 4
  • Mittel 4

Veröffentlichungen pro Jahr

  1. 2025: 1
  2. 2026: 10
Schweregrad:
  1. Hoch · 8.5 CVE-2026-46372 < 1.18.0 1.18.0
  2. SillyTavern has a reflected XSS vulnerability in the CORS proxy middleware dieser Eintrag
    Mittel CVE-2026-44651 < 1.18.0 1.18.0
  3. Kritisch · 9.1 CVE-2026-44650 < 1.18.0 1.18.0
  4. Kritisch · 9.8 CVE-2026-44649 < 1.18.0 1.18.0
  5. Kritisch · 9.6 CVE-2025-59159 < 1.13.4 1.13.4

Erkennen Sie Schwachstellen in Ihrer Anwendung

Mit der DockRay-Integration und aktivierter Softwareinventarisierung prüft DockRay gemeldete Komponentenversionen auf bekannte Schwachstellen und benachrichtigt Sie über bestätigte Treffer. Die Abdeckung hängt von der unterstützten Technologie und den verfügbaren Meldungen ab.

Anwendung verbinden
DockRay Newsletter

Anwendungssicherheit in Ihrem Postfach

Wichtige Schwachstellen, konkrete Empfehlungen und praktische Tipps für Ihre Anwendungen. Wählen Sie Ihre Technologien und verfolgen Sie, was für Ihr Projekt relevant ist.

  • Eine tägliche Zusammenfassung neuer Schwachstellen, auch kritischer.
  • Benachrichtigungen über wichtige Updates.
  • Praktische Tipps zur Sicherheit und Überwachung von Anwendungen.

Leer lassen, um Meldungen zu allen Technologien zu erhalten.

Kostenlos anmelden. In jeder E-Mail mit einem Klick abmelden.