CVE-2026-52830
fast-mcp-telegram: Bearer token path traversal bypasses reserved Telegram session protection
Also known as GHSA-rxw2-pc8j-vxwm, PYSEC-2026-2473
Mitigation
- Upgrade fast-mcp-telegram to 0.19.1 or later.
Who should check
- Projects that depend on PyPI package fast-mcp-telegram (< 0.19.1)
- Anyone running leshchenko1979 fast-mcp-telegram < 0.19.1
Vulnerability facts
- Affected
- fast-mcp-telegram < 0.19.1
- Fixed in
- 0.19.1
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Remote, no login needed
- CVSS
- 9.4 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:LOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: Low
- EPSS
- 0.65% chance of exploitation in 30 days (percentile 46, 2026-11-26)
- CWE
- CWE-22, CWE-287
- Modified
Description
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| PyPI fast-mcp-telegram | < 0.19.1 | 0.19.1 | osv |
| leshchenko1979 fast-mcp-telegram | < 0.19.1 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-52830. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-52830.md Affected: fast-mcp-telegram < 0.19.1 Fixed in: 0.19.1 Steps: 1. Search this machine and project for fast-mcp-telegram (PyPI), leshchenko1979 fast-mcp-telegram: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Exploits and PoCs
Other
- https://web.archive.org/web/20250926152207/https://github.com/leshchenko1979/fast-mcp-telegram
- https://github.com/alexeyleshchenko/fast-mcp-telegram
- https://github.com/pypa/advisory-database/tree/main/vulns/fast-mcp-telegram/PYSEC-2026-2473.yaml
- https://pypi.org/project/fast-mcp-telegram
- https://github.com/leshchenko1979/fast-mcp-telegram
FAQ
Is CVE-2026-52830 being exploited?
There is no confirmed exploitation: CVE-2026-52830 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 0.65% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-52830?
Critical: CVSS 9.4 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2026-52830?
fast-mcp-telegram < 0.19.1.
Is there a fix for CVE-2026-52830?
Yes. Fixed in 0.19.1. Upgrade fast-mcp-telegram to 0.19.1 or later.
How do I check if I'm affected by CVE-2026-52830?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.