ZeroHour

CVE-2026-58201

niche

Azure Bearer Token Leak via URL Concatenation in Lokka MCP Server (<2.1.2)

CVSS 4.0
8.7 high
EPSS
Published
()
Modified
AI analysis

Lokka, an open-source Model Context Protocol (MCP) server for Microsoft 365, contains a server-side request forgery-style URL parsing flaw (CWE-918) in its Lokka-Microsoft tool: prior to version 2.1.2, the code in src/mcp/src/main.ts appends a user-controlled path value to the management.azure.com base URL using direct string concatenation. A crafted path containing characters that alter URL authority parsing can redirect the outgoing request to an attacker-controlled host, and the Azure Resource Manager bearer token attached for authentication is then sent to that host. An attacker able to influence the path value — for example via a malicious or compromised MCP client, untrusted tool input, or injected prompt content — obtains the victim's ARM bearer token, resulting in high confidentiality impact against the associated Azure/Microsoft 365 resources. Anyone running Lokka prior to 2.1.2 with Azure authentication is affected, and the issue is fixed in version 2.1.2. No public proof-of-concept is known, there is no evidence of exploitation in the wild, and the flaw is not listed in the CISA KEV catalog.

What to do: Upgrade Lokka to version 2.1.2 or later, which fixes the unsafe URL construction in the Lokka-Microsoft tool. If older versions were used with untrusted clients or content, revoke and reissue the Azure credentials/tokens used by the server and review Azure sign-in and ARM audit logs for token use from unexpected hosts. Apply least-privilege permission scopes to any tokens granted to the MCP server to limit the blast radius of a leaked bearer token.

Affected
Lokka (MCP server for Microsoft 365), Lokka-Microsoft tool< 2.1.2
Estimated exposure
nichelikely hundreds to low thousands of developer/AI-assistant setups (no install or exposure counts available; clearly a rough estimate) — Lokka is an open-source MCP server installed manually per developer workstation or agent host, and no package-download statistics, active-install counts, or internet-scan data were provided, so this is only an order-of-magnitude guess.

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

Lokka is a Model Context Protocol server for Microsoft 365, including Microsoft Graph and other services. Prior to 2.1.2, the Lokka-Microsoft tool in src/mcp/src/main.ts uses direct URL string concatenation to append the user-controlled path value to the management.azure.com base URL. A specially crafted path can alter URL authority parsing and cause an Azure Resource Manager bearer token to be sent to an unintended host. This issue is fixed in version 2.1.2.

Weakness
CWE-918
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

In the news

No ingested article mentions this CVE yet.