{"answers":{"affected":"3 open source packages ship an affected version, including fast-mcp-telegram.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-52830 exists.","fix":"Upgrade fast-mcp-telegram to 0.19.1 or later.","what":"CVE-2026-52830 is a critical path traversal vulnerability in leshchenko1979 fast-mcp-telegram, published on 2 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-52830 and fix it if it is affected.\n\nWhat it is: CVE-2026-52830 is a critical path traversal vulnerability in leshchenko1979 fast-mcp-telegram, published on 2 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-52830 exists.\n\nAffected packages and fixed versions:\n- fast-mcp-telegram (PyPI): affected all versions; fixed in 0.19.1\n- fast-mcp-telegram (PyPI): affected all versions; fixed in 0.19.1\n- fast-mcp-telegram (PyPI): affected all versions; fixed in 0.19.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-52830/ (Markdown: https://insights.sbomify.com/CVE-2026-52830/index.md)","id":"CVE-2026-52830","markdown":"https://insights.sbomify.com/CVE-2026-52830/index.md","name":"CVE-2026-52830","record":{"aliases":["GHSA-rxw2-pc8j-vxwm","PYSEC-2026-2473"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass","data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Telegram MCP Server","requires_auth":"none","summary":"Remote attackers can bypass reserved session protections via path traversal in Bearer token validation, accessing default account sessions.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":9.4,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L","version":"3.1"},"cwes":[{"id":"CWE-287","name":"Improper Authentication"},{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"fast-mcp-telegram: Bearer token path traversal bypasses reserved Telegram session protection","id":"CVE-2026-52830","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":3,"n_references":2,"next":{"headline":"Nuclio: Unsanitized cron trigger event headers/body injected into CronJob shell command leads to persistent RCE","id":"CVE-2026-52831"},"packages":[{"ecosystem":"PyPI","fixed":["0.19.1"],"introduced":["0"],"last_affected":[],"package":"fast-mcp-telegram","purl":null,"source":"GHSA-rxw2-pc8j-vxwm"},{"ecosystem":"PyPI","fixed":["0.19.1"],"introduced":["0"],"last_affected":[],"package":"fast-mcp-telegram","purl":"pkg:pypi/fast-mcp-telegram","source":"GHSA-rxw2-pc8j-vxwm"},{"ecosystem":"PyPI","fixed":["0.19.1"],"introduced":["0"],"last_affected":[],"package":"fast-mcp-telegram","purl":"pkg:pypi/fast-mcp-telegram","source":"PYSEC-2026-2473"}],"prev":{"headline":"ZEBRA: IPv4-Mapped Mempool Misbehavior Update Aborts Zebra Address Book","id":"CVE-2026-52829"},"products":["fast-mcp-telegram"],"published":"2026-07-02","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-07-06","vendors":["leshchenko1979"]},"summary":"Remote attackers can bypass reserved session protections via path traversal in Bearer token validation, accessing default account sessions.","url":"https://insights.sbomify.com/CVE-2026-52830/"}