Rewterz

Outlook and Word Flaws Enable Malicious Code Execution

June 15, 2026
How-to-Choose-the-Right-AI-SOC-Solution-A-Practical-Guide-for-CISO

How to Choose the Right AI SOC Solution: A Practical Guide for CISOs

June 16, 2026

Critical Microsoft 365 Copilot Flaw Enables Data Theft

Severity

High

Analysis Summary

Microsoft’s SearchLeak (CVE-2026-42824) is a critical vulnerability chain affecting Microsoft 365 Copilot Enterprise that enabled attackers to exfiltrate sensitive organizational data with just a single click on a malicious link hosted on a legitimate Microsoft domain. Discovered by Researcher, the flaw received Microsoft’s highest severity rating before being fully patched. Unlike traditional vulnerabilities, SearchLeak is not a standalone bug but a sophisticated attack chain that combines AI-specific prompt manipulation with classic web security weaknesses, allowing attackers to access emails, MFA codes, calendar entries, corporate documents, and other data available to the victim within their Microsoft 365 environment.

The attack begins with a Parameter-to-Prompt (P2P) Injection vulnerability in Copilot Search. Microsoft 365 Copilot accepts a q URL parameter intended for natural-language search queries; however, attackers discovered that this parameter could also be interpreted as AI instructions. By crafting a malicious URL on a trusted Microsoft domain, attackers could instruct Copilot to search the victim’s mailbox or other accessible resources and embed the extracted information into a specially crafted image URL. Because the link originates from a legitimate Microsoft domain, traditional phishing defenses, URL reputation services, and security filters are unlikely to identify it as malicious.

The second stage exploits a race condition in Copilot’s HTML rendering process. Microsoft attempts to prevent malicious AI-generated HTML from executing by wrapping output in <code> blocks after content generation. However, during the streaming phase of Copilot’s response, attacker-controlled HTML elements—such as <img> tags—are temporarily rendered in the browser before sanitization occurs. This timing gap allows the browser to process and send requests associated with the malicious HTML before Microsoft’s security controls can neutralize the content, effectively bypassing the intended safeguards.

The final stage leverages a Server-Side Request Forgery (SSRF) technique through Bing’s image search infrastructure. Although Microsoft’s Content Security Policy (CSP) prevents direct communication with attacker-controlled domains, Bing domains are allowlisted. Attackers embed stolen data into a Bing “Search by Image” URL, causing Bing’s backend servers to retrieve the attacker-specified resource and inadvertently forward the exfiltrated information to an external server under the attacker’s control. The entire attack chain executes silently after a single click, requiring no additional user interaction. While Microsoft has patched the vulnerability server-side, organizations should continue monitoring Copilot search URLs for suspicious encoded payloads, review CSP allowlists, treat AI-generated streaming content as untrusted, and educate users to be cautious of Microsoft links containing unusually long or encoded query strings.

Impact

  • Sensitive Data Theft
  • Gain Access

Indicators of Compromise

CVE

  • CVE-2026-42824

Remediation

  • Apply Microsoft’s security updates immediately and ensure all Microsoft 365 Copilot services are running the latest patched versions.
  • Monitor Copilot Search activity for suspicious or unusually long encoded values in the q URL parameter.
  • Implement advanced email and URL filtering to detect and block malicious links containing abnormal query strings or prompt injection attempts.
  • Review and restrict Content Security Policy (CSP) allowlists to minimize exposure to trusted domains that can perform server-side URL fetching.
  • Treat AI-generated content as untrusted input and ensure proper sanitization occurs before content is rendered to users.
  • Enable comprehensive logging and monitoring for Microsoft 365, Copilot interactions, and data access events to identify suspicious activity.
  • Deploy Data Loss Prevention (DLP) controls to detect and prevent unauthorized access or exfiltration of sensitive corporate information.
  • Apply the principle of least privilege by limiting user access to only the data and resources required for their roles.