CVE-2026-52830CWE-22CWE-287

fast-mcp-telegram: Bearer token path traversal bypasses reserved Telegram session protection

Critical · published July 2, 2026

CVSS v3.1
9.4
EPSS
1%
Percentile
50.4
In the wild
Unconfirmed
What it is

fast-mcp-telegram is a Telegram MCP Server. Prior to 0.19.1, fast-mcp-telegram validates HTTP Bearer tokens by joining the raw token string into a session-file path. The verifier rejects the exact reserved token telegram, but it does not reject path separators or normalize the path before checking whether the session file exists. A remote HTTP client can therefore authenticate as the default legacy session with a token such as ../fast-mcp-telegram/telegram when the documented default session file ~/.config/fast-mcp-telegram/telegram.session exists. This bypasses the reserved session name control that is intended to prevent HTTP multi-user sessions from colliding with the default stdio or legacy account. With account-prefixed MCP tools enabled, the attacker still sees and calls the prefixed tools for the default account, so the prefix middleware does not stop the session selection bypass. This vulnerability is fixed in 0.19.1.

The record
Technical detail
CVSS v3.1
9.4 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L
CVSS v4.0
Not supplied
EPSS
0.00648 · 50.4th percentile
Weaknesses
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'); CWE-287 · Improper Authentication
Published
2026-07-02T20:39Z
EPSS history
Timeline
  • 02 JUL 20:39Z
    fast-mcp-telegram: Bearer token path traversal bypasses reserved Telegram session protection
    cvelistv5