/

CVE-2026-54253

Severity:

HIGH RISK

(8.2)

Reflected XSS (CWE-79) in TS3 Manager Download API

CVE-2026-54253

Deferred

Vulnerability type

Category:

Cross-Site Scripting

CWE:

CWE-79

Impact:

Session Hijacking and Administrative Server Control

Severity:

HIGH RISK

(8.2)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

TS3 Manager contains a reflected cross-site scripting vulnerability in the API download handler, where attacker-controlled input is returned as HTML without sufficient browser protections. If a logged-in operator follows a crafted link, script execution in the manager origin may expose the operator token and decoded ServerQuery credentials, potentially enabling control of the managed TeamSpeak server.

Affected context

The issue occurs in TS3 Manager deployments where the download API reflects a query parameter through an HTML response without effective output encoding or a Content Security Policy. Risk is increased when an authenticated operator can be induced to visit a top-level link and the session token is accessible to client-side scripts. The impact is especially serious when the token or JWT contains administrative ServerQuery credentials.

Exploit preconditions

  • Attack surface: The /api/download HTTP handler and its reflected error response
  • Required access: A valid logged-in operator session and operator interaction with a crafted link
  • Trigger point: Processing an attacker-controlled port query parameter and returning the resulting error text as HTML
  • Why exploitation is possible: Unencoded reflected data can execute in the manager origin, while a script-readable token can be used to access application functionality and retrieve sensitive decoded JWT contents

Why this happens

The vulnerability results from reflecting attacker-controlled input into an HTML response without context-appropriate output encoding or a restrictive Content Security Policy. This is a reflected cross-site scripting condition mapped to CWE-79, because untrusted data is interpreted as browser-executable markup or script in the application's origin. The risk is amplified by storing an authentication token without protective cookie attributes and by exposing sensitive administrative credentials through a client-accessible application flow.

Potential impact

  • An attacker may execute script in the manager origin
  • An attacker could read the exposed authentication token
  • An attacker may retrieve sensitive ServerQuery credentials
  • An attacker could hijack the operator session
  • An attacker could modify or control the managed TeamSpeak server
  • Confidentiality and integrity of managed server data may be affected

General mitigation guidance

Mitigation generally focuses on treating all query parameters and error content as untrusted data.

Common defensive patterns include:

  • Apply context-aware HTML output encoding or return structured, non-HTML error responses
  • Use a restrictive Content Security Policy that limits script execution and reduces XSS impact
  • Configure authentication cookies with HttpOnly, Secure, and an explicit appropriate SameSite policy
  • Avoid exposing cleartext administrative credentials or reusable privileged tokens to browser-accessible code
  • Minimize token scope, lifetime, and privileges, and separate operator authentication from server administration credentials
  • Validate query parameters against strict type and range requirements before processing them
  • Require explicit authorization checks for sensitive socket and autofill operations

How teams detect issues like this

Organizations can identify similar issues through:

  • Static analysis rules for concatenating request parameters into HTML responses
  • Code review checks for response methods that send unescaped error messages as text/html
  • Tests that submit unexpected values to query parameters and verify that responses contain no executable markup
  • Review of cookie declarations for missing HttpOnly, Secure, or explicit SameSite attributes
  • Monitoring for unusual operator-session use, token access, and administrative ServerQuery activity
  • Policy enforcement requiring structured error responses, output encoding, and restrictive browser security headers
  • Automated security review tools that flag reflected input and client-accessible privileged tokens

Sources

SourceLink
github.comgithub.com/joni1802/ts3-manager/commit/48df540786d2784c5d7b9bd55786d63e31288d07
github.comgithub.com/joni1802/ts3-manager/releases/tag/v2.2.6
github.comgithub.com/joni1802/ts3-manager/security/advisories/GHSA-3cgm-7p4g-gffj

Frequently asked

questions

It can be triggered through a remotely delivered crafted link, but exploitation generally requires a logged-in operator to follow that link.

The attacker does not necessarily need an existing TS3 Manager account, but must be able to deliver a link to an authenticated operator and rely on that operator's interaction.

Prevent untrusted values from being interpreted as HTML by using context-aware output encoding or structured responses, and apply defensive cookie attributes and restrictive browser security headers.

Treat all request data as untrusted, test reflected responses, keep privileged credentials out of browser-accessible flows, enforce least privilege, and use automated checks for XSS and insecure cookie configurations.

Find out what's already
exploitable in your codebase.