# CVE-2026-52830: fast-mcp-telegram: Bearer token path traversal bypasses reserved Telegram session protection

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.4
- **CVSS:** 9.4 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.65% (percentile 46, 2026-11-26)
- **CWE:** CWE-22, CWE-287
- **Aliases:** GHSA-rxw2-pc8j-vxwm, PYSEC-2026-2473
- **Published:** 2026-07-02T20:38:50.000Z
- **Modified:** 2026-10-25T21:10:00.770Z

## Who should check

- Projects that depend on PyPI package fast-mcp-telegram (\< 0.19.1)
- Anyone running leshchenko1979 fast-mcp-telegram \< 0.19.1

## 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

- PyPI `fast-mcp-telegram`: affected \< 0.19.1; fixed 0.19.1 (osv)
- leshchenko1979 fast-mcp-telegram: \< 0.19.1 (cvelist)

## Mitigation

- Upgrade fast-mcp-telegram to 0.19.1 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://github.com/leshchenko1979/fast-mcp-telegram/security/advisories/GHSA-rxw2-pc8j-vxwm>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-52830>
- exploit: <https://github.com/advisories/GHSA-rxw2-pc8j-vxwm>
- other: <https://web.archive.org/web/20250926152207/https://github.com/leshchenko1979/fast-mcp-telegram>
- other: <https://github.com/alexeyleshchenko/fast-mcp-telegram>
- other: <https://github.com/pypa/advisory-database/tree/main/vulns/fast-mcp-telegram/PYSEC-2026-2473.yaml>
- other: <https://pypi.org/project/fast-mcp-telegram>
- other: <https://github.com/leshchenko1979/fast-mcp-telegram>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-52830>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-rxw2-pc8j-vxwm> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2026-2473> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-52830> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-52830>
