fast-mcp-telegram: Bearer token path traversal bypasses reserved Telegram session protection
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- High · High · Low
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-287.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| leshchenko1979 | fast-mcp-telegram | before 0.19.1 | 0.19.1 | Patch available | CNA |
| — | fast-mcp-telegram (PyPI) | before 0.19.1 | 0.19.1 | Patch available | GHSA-rxw2-pc8j-vxwm |
- fast-mcp-telegram Vendorleshchenko1979 Affected before 0.19.1 Fixed in 0.19.1 Patch available CNA
- fast-mcp-telegram (PyPI) Vendor— Affected before 0.19.1 Fixed in 0.19.1 Patch available GHSA-rxw2-pc8j-vxwm
Remediation
- Fix · CNA fast-mcp-telegram (leshchenko1979) Fixed in 0.19.1
- Fix · GHSA-rxw2-pc8j-vxwm fast-mcp-telegram (PyPI) Fixed in 0.19.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-52830
- 2026-10-03 Alias added: GHSA-rxw2-pc8j-vxwm
- 2026-10-18 EPSS moved to the 50th–90th percentile
References
Other 6
- https://web.archive.org/web/20250926152207/https://github.com/leshchenko1979/fast-mcp-telegram
- https://github.com/advisories/GHSA-rxw2-pc8j-vxwm
- https://github.com/leshchenko1979/fast-mcp-telegram/security/advisories/GHSA-rxw2-pc8j-vxwm
- 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
More leshchenko1979 vulnerabilities
- TI-2026-39800 SSRF via DNS-resolution gap in _validate_url_security (file download by URL) CVSS 3.1HIGH 7.1
Sources
- CVE-2026-52830 · CVE Program
- CVE-2026-52830 · NVD
- FIRST EPSS
- GHSA-rxw2-pc8j-vxwm · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences