What the Microsoft 365 Android Token Vulnerability Involved
The Microsoft 365 Android vulnerability is a token exposure flaw where a leftover debug setting in six popular Microsoft 365 apps allowed any other app on the same device to request and obtain account tokens without user interaction, bypassing normal trust checks and potentially granting silent access to email, files, calendars, and messages. Microsoft 365 apps on Android are designed to share authentication tokens so users sign in once and move between Word, Excel, PowerPoint, and other tools. That sharing should be limited to trusted Microsoft apps. In this case, a development flag setIsDebugMode(true) disabled the verification step and turned the single sign-on pipeline into an account token theft path for any malicious Android app installed on the device. Microsoft has patched the issue, but existing tokens may still be valid unless administrators revoke them.

How the Debug Flag Enabled Silent Account Token Theft
Researchers at Enclave traced the bug to a single line left active in a shared Microsoft SDK: setIsDebugMode(true). In production builds of Word, PowerPoint, Excel, Microsoft 365 Copilot, Microsoft Loop, and OneNote for Android, this flag skipped the usual check that limits token handoff to trusted Microsoft apps. Any local app could request FOCI (Family of Client IDs) refresh tokens, which Microsoft uses for cross-app single sign-on. Those tokens can be refreshed and reused over long periods, and their network activity looks routine in logs, so abuse would be hard to spot. Enclave demonstrated a proof-of-concept third-party app that pulled tokens in the background and read email without a password, login screen, or Android permission prompt. Microsoft classifies this as local spoofing: a malicious app already on the device is enough to exploit the flaw.
What IT Teams Must Check: Versions, Devices, and Tokens
For IT administrators, the priority is to close any remaining exposure and check for signs of account token theft. First, verify that all managed Android devices run patched versions of Word, PowerPoint, Excel, Microsoft 365 Copilot, Loop, and OneNote from Google Play. NVD lists the patched Word for Android build as 16.0.19822.20190, with earlier versions affected; other apps were updated through the same Play Store channel. Push updates through mobile device management and block devices that remain on old builds. Second, remember that an Android security patch does not invalidate FOCI refresh tokens already issued. For accounts that used vulnerable apps alongside untrusted or broadly permitted third-party apps, revoke refresh tokens and force a new sign-in. Finally, review third-party app installation policies and enforce stricter controls on unmanaged or lightly managed Android endpoints accessing Microsoft 365.
User Actions: Update, Monitor, and Strengthen Account Security
End users who rely on Microsoft 365 Android apps should treat this as a serious but fixable risk. Update Word, Excel, PowerPoint, OneNote, Microsoft Loop, and Microsoft 365 Copilot through the Google Play Store, ensuring automatic updates are turned on. Remove any suspicious or unnecessary apps, especially those installed outside trusted app stores, because exploitation requires another local app to request tokens. Next, review recent account activity in your Microsoft 365 account for unfamiliar sign-ins, new inbox rules, or unusual file access. If anything looks wrong, sign out of all sessions and change your password. Enable multifactor authentication for work and personal accounts where allowed to add a second barrier if tokens are misused. Remember that the original flaw did not show prompts or warnings, so proactive monitoring is essential even if nothing appears obviously wrong on your device.
Lessons for Secure Development and Android Governance
This incident shows how a single debug flag can turn convenient single sign-on into an account token theft channel when development shortcuts reach production. setIsDebugMode(true) was meant for debugging but disabled a key trust boundary between Microsoft 365 apps and everything else on the device. Because the flag sat in a shared SDK, the same mistake propagated across multiple apps with billions of downloads. According to Enclave’s public write-up, the issue highlights that “a malicious app already on the device is all it takes” when local spoofing checks fail. For organizations, Android governance now belongs alongside Microsoft 365 identity controls. IT teams should treat mobile app configuration and update verification as part of the core IT security checklist, especially as projects like Microsoft’s Android-focused initiatives expand mobile access to email, documents, collaboration, and AI-powered Copilot workflows.






