Microsoft 365 Copilot Vulnerability: Mermaid Diagram Attack Enables Data Exfiltration
By
gnabgib
Hot, fresh, and worth queueing round the block for.
Summary
A security researcher discovered a vulnerability in Microsoft 365 Copilot where specially crafted Office documents could trigger indirect prompt injection attacks. When asked to summarize these documents, Copilot would execute arbitrary instructions to fetch sensitive tenant data (like recent emails), hex encode it, and embed it in a Mermaid diagram disguised as a login button. The diagram contained CSS styles with a hyperlink to an attacker's server, which would transmit the encoded sensitive data when clicked, allowing attackers to exfiltrate information through web server logs.
Key quotes
· 5 pulledWhen Microsoft 365 Copilot (M365 Copilot) was asked to summarize a specially crafted Microsoft Office document, an indirect prompt injection payload triggered the execution of arbitrary instructions to fetch sensitive tenant data
M365 Copilot then generated a simple mermaid diagram, resembling a login button, and a notice that the content cannot be viewed without clicking the login button
This mermaid diagram 'button' contained CSS style elements with a hyperlink to an attacker's server
The hyperlink contained the hex encoded sensitive tenant data, and when clicked, the sensitive tenant data was transmitted to the attacker's web server
From there, the attacker could decode the hex data collected in the attacker's web server logs
You might also wanna read
Microsoft releases critical security patch for SharePoint deserialization vulnerability
Microsoft has released May updates for SharePoint servers that patch a highly critical security vulnerability (CVE-2026-45659, CVSS 8.8). Th
Microsoft patches high-severity SharePoint RCE vulnerability CVE-2026-45659
Microsoft has patched a high-severity remote code execution vulnerability (CVE-2026-45659) in SharePoint that affects SharePoint Server Subs
Microsoft uncovers supply chain attack: Compromised @antv npm packages steal CI/CD credentials via Mini Shai-Hulud malware
Microsoft has identified an active supply chain attack targeting the @antv npm package ecosystem. A threat actor compromised an @antv mainta
FBI warns of Kali365 phishing platform targeting Microsoft 365 accounts
The FBI has issued a public service announcement warning about Kali365, a growing phishing-as-a-service platform that targets Microsoft 365
Microsoft uncovers npm supply chain attack stealing cloud and CI/CD credentials via typosquatted packages
Microsoft identified an active supply chain attack (Mini Shai-Hulud campaign) targeting the npm package ecosystem. On May 28, 2026, a threat

Microsoft's NLWeb Protocol Faces Early Security Flaw, Exposing Sensitive Data
Researchers discovered a critical vulnerability in Microsoft's NLWeb protocol, which was recently introduced as a revolutionary tool for int
