Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.5%top 57%

CVE-2026-52830: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in leshchenko1979 fast-mcp-telegram

0
Critical
VulnerabilityCVE-2026-52830cvecve-2026-52830cwe-22cwe-287
Published: 07/02/2026 (07/02/2026, 20:39:35 UTC)
Source: CVE Database V5
Vendor/Project: leshchenko1979
Product: fast-mcp-telegram

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.

CVSS v3.1

Score 9.4critical

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
Low
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L

Affected software

GitHub Actionsmore threats →ai
leshchenko1979/fast-mcp-telegram
pkg:github/leshchenko1979/fast-mcp-telegram
Affected versions
<0.19.1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/10/2026, 08:49:37 UTC

Technical Analysis

The vulnerability in fast-mcp-telegram (CVE-2026-52830) involves improper limitation of a pathname to a restricted directory (CWE-22). Before version 0.19.1, the software validates HTTP Bearer tokens by concatenating the raw token into a session file path without normalizing or sanitizing path separators. Although the exact reserved token 'telegram' is rejected, tokens containing path traversal sequences (e.g., '../fast-mcp-telegram/telegram') can be used to authenticate as the default legacy session if the corresponding session file exists. This bypasses the intended control preventing session collisions between multi-user HTTP sessions and the default or legacy account. The vulnerability is resolved in version 0.19.1.

Potential Impact

An unauthenticated remote attacker can exploit this vulnerability to bypass session token restrictions and authenticate as the default legacy session user. This leads to unauthorized access with high confidentiality and integrity impact, and a low impact on availability. The attacker can access and invoke prefixed MCP tools for the default account, potentially compromising sensitive operations.

Mitigation Recommendations

This vulnerability is fixed in fast-mcp-telegram version 0.19.1. Users should upgrade to version 0.19.1 or later to remediate this issue. No other mitigation or temporary workaround is documented.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-06-08T18:11:06.662Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 6a46d2df27e9c797191734e5

Added to database: 07/02/2026, 21:06:39 UTC

Last enriched: 07/10/2026, 08:49:37 UTC

Last updated: 08/16/2026, 00:41:14 UTC

Views: 95

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses