A three-stage vulnerability chain in Microsoft 365 Copilot Enterprise Search could have let a legitimate Microsoft-hosted link pull emails, MFA codes, and files from a victim's tenant.
Tl;dr: in June 2026, Varonis Threat Labs disclosed SearchLeak (CVE-2026-42824), a Microsoft 365 Copilot Enterprise Search vulnerability. If exploited, it can expose emails, MFA (Multi-Factor Authentication) codes, and SharePoint / OneDrive files through a legitimate microsoft.com link that evades phishing and URL filters. With no confirmed attacks in the wild, and the vulnerability already patched, this article examines the proof-of-concept for SearchLeak.
What's the Exact Timeline?
On June 4, 2026, Microsoft addressed the vulnerability on its backend. The fix requires no action from tenant administrators. On June 15, 2026, Varonis Threat Labs publicly disclosed SearchLeak.
At the time of writing, no confirmed exploitation in the wild has been reported.
What Could a SearchLeak Exploit Have Reached?
Since SearchLeak worked against Microsoft 365 Copilot Enterprise, any organization with Search enabled could have potentially been affected. In fact, these orgs were probably exposed prior to the patch.
Copilot Enterprise doesn't have its own access level and operates with the user's own permissions. Therefore, the scope of exposure would have scaled as much as individuals' access would have allowed.
In practice, the data at risk included:
Email content
One-time passcodes and password-reset links delivered by email
Calendar events, meeting notes, and attendee information
SharePoint documents and OneDrive files
Contracts, customer information, and other indexed business content the user's account could reach
For an employee with broad access in a high-target sector, like someone in finance, legal, or IT, SearchLeak could have exposed a meaningful volume of the organization's sensitive material.
Note: The fix landed before the public write-up. This means the vulnerability existed, unpatched, for some period before June 4 that isn't fully documented in public reporting. Organizations with Copilot Enterprise Search enabled could have been exposed.
How Could an Attacker Exploit SearchLeak?
Microsoft 365 Copilot Enterprise Search is the tenant-wide search feature built into Copilot that indexes and retrieves content a signed-in user has access to. This means emails, meeting notes, SharePoint documents, OneDrive files, and other Microsoft Graph-connected data.
Varonis researchers found that the search feature's 'q' URL parameter can be prompt injected; in that case, Copilot could have followed the search query as a command, instead of looking at the words like search terms.
While there are no confirmed SearchLeak attacks, here's how a potential exploit scenario would look like in practice:
An employee receives a link that looks like an ordinary Microsoft 365 link. They click it. What they don't know, is that the link has been embedded with instructions for Copilot to search the victim's email archive and encode extracted content into outbound image request URLs. Copilot acts on the instructions.
After searching the archive, Copilot returns results. The browser sends outbound HTTP requests containing stolen data embedded in image URLs.
Microsoft's own Bing service unknowingly delivers the stolen data straight to the attacker, who could just read it off their own server logs, thus gaining access to sensitive company data.
How the Three Weaknesses Enabled One-Click Email Theft
SearchLeak was possible due to three separate weaknesses in Microsoft 365 Copilot Enterprise, each weaponizing the next.
1. Copilot treats the search URL’s q parameter as an executable instruction. Copilot’s search feature feeds whatever text is in the q parameter directly into the AI model’s prompt context, with no separation between "data to search for" and "instructions to execute." This happens because LLMs have no built-in structural boundary between trusted commands and untrusted input.
2. Copilot’s output sanitizer runs after streamed content has already rendered. Copilot delivers its responses incrementally (streaming); the browser starts rendering pieces of the output as they arrive, rather than waiting for the full response. According to the Varonis researchers, between rendering and sanitization, there’s a brief time frame where unsanitized HTML is already displayed in the browser before the sanitizer has had a chance to process it. Consequently, an attacker-controlled image tag can execute during that gap, because the safety check arrives a moment too late to stop it.
Note: Copilot’s HTML sanitization is different from the CDR (Content Disarm and Reconstruction) technology. Sanitization targets potentially unsafe HTML and scripts before rendering in the browser, while CDR processes files such as documents or PDFs by stripping active content and reconstructing a safe version of the file.
Note: Copilot’s HTML sanitization is different from the CDR (Content Disarm and Reconstruction) technology. Sanitization targets potentially unsafe HTML and scripts before rendering in the browser, while CDR processes files such as documents or PDFs by stripping active content and reconstructing a safe version of the file.
3. Bing's image-fetch endpoint is allowlisted in Copilot's Content Security Policy. Normally, a CSP (Content Security Policy) restricts the actions that the code comprising the site is allowed to do. In this case, it should have stopped exactly the kind of exfiltration attempted in this hypothetical. However, Bing is a legitimate, first-party Microsoft service that Copilot relies on for features like image search, so Bing's domain is explicitly allowlisted in the CSP as a trusted source. Because the CSP only restricts what the victim's browser can contact directly and never inspects the behavior of a trusted domain it already lets through, a request routed via Bing to an attacker's server bypasses the policy entirely.
What to Do About SearchLeak?
Microsoft's fix was applied entirely on the backend, meaning there's no patch to deploy. However, to stay on the safe side and clean any exposure residue, here's what can be done in retrospect:
Check Historical Logs If log retention allows it, it's worth performing a retrospective review of Copilot Enterprise Search session logs. Look specifically at search URLs, and for unusual outbound requests to Bing's image-search endpoints that correlate with Copilot sessions.
Treat Even Trusted-Domain Links as an Attack Surface Standard phishing awareness training tells people to be suspicious of unfamiliar domains. SearchLeak is a reminder that a genuinely trusted domain can still carry attacker-controlled instructions when the application on the other end interprets URL parameters as commands. It seems that, for the time being, even legitimate links should be treated with a zero-trust approach and scanned accordingly.
Revisit Data Governance Copilot inherits the requesting user's full permissions, so the actual damage of any similar future exploits scale directly with how tightly (or loosely) sensitivity labels and access scopes are managed. Scrutinize access controls now, to reduce the exposure of the vulnerability that comes next.
Not the First, and Definitely Not the Last
After Reprompt, SearchLeak is Varonis's second public demonstration of this exact attack pattern.
Both cases combine P2P (Parameter-to-Prompt) injection and more conventional web vulnerabilities to exfiltrate data, signalling that similar chains are likely to surface in other AI assistants.
The Case for File-Level Security Policies
SearchLeak exploited Copilot, but its actual target was file content: SharePoint documents, OneDrive files, email attachments.
Once that content is surfaced by Copilot, exported, forwarded, or re-shared, it moves into a completely different layer that AI-specific guardrails were never built to watch.
This is the layer MetaDefender Cloud™ is built for, based on the "Trust no file. Trust no device™." broader philosophy.
Its Metascan™ Multiscanning technology deploys 20+ engines, adding detection coverage for cases where a file itself becomes the payload. The Deep CDR™ technology takes a "trust no file" approach, stripping down files and rebuilding them, while removing active content in the process. It doesn’t even wait to detect infection, becoming increasingly effective against Zero-Days. Proactive DLP™ inspects file content for sensitive data patterns before it moves, redacting the kind of information SearchLeak targeted (credentials, personal data, business-sensitive documents).
To be clear: none of these would have stopped SearchLeak's specific chain, which required a fix to Copilot's prompt-handling itself, which Microsoft applied.
But it illustrates a broader point: AI-layer fixes close the door on one exploitation technique, while file-level controls provide a second, independent layer for the same underlying risk: sensitive data leaving an organization through a channel nobody's watching.
Given how many enterprise AI assistants now touch and route file content, pairing AI-interaction security with file-level inspection tools is a reasonable use case. With its growing integration stack, MetaDefender Cloud is designed to embed advanced file security directly into your existing workflows.
You can see it in action at metadefender.com and explore its multi-layered file-security and threat intelligence capabilities right now. No account needed.
FAQ
What is SearchLeak (CVE-2026-42824)?
SearchLeak is a proof-of-concept for a three-step attack chain leveraging a Microsoft 365 Copilot Enterprise vulnerability (CVE-2026-42824); it allowed attackers to exploit the search function of Copilot, treating it as a prompt, rather than a search query.
Is SearchLeak still exploitable, or has it been patched?
SearchLeak is based on a vulnerability which was patched before the proof-of-concept was documented. Because it was fixed server-side by Microsoft, enterprise administrators and end-users did not need to manually deploy patches.
What data could SearchLeak have exposed?
Any data the specific Copilot agent had access to; usually this means email content, one-time passcodes / password-reset links, calendar events, meeting notes, SharePoint and OneDrive files.
How did the SearchLeak attack actually work?
SearchLeak leverages Microsoft 365 Copilot to exfiltrate sensitive data via parameter-to-prompt injection, rendering race conditions, and CSP laundering through Bing. By exploiting the trusted nature of Copilot and Bing, attackers could bypass security controls, allowing unauthorized data access.
Why didn't phishing filters or URL scanners catch SearchLeak?
SearchLeak embedded attacker-controlled instructions onto a trusted domain link. Since the link in itself was legitimate, URL / phishing scanners did not flag it.
Could file security tools stop SearchLeak?
No; SearchLeak was only fixed by a Copilot prompt-handling fix. File security tools only add an additional control layer, protecting the data which might have been exfiltrated via SearchLeak.
How can organizations tell if they were affected by SearchLeak?
SearchLeak was a proof-of-concept attack chain; it doesn't exist in the wild. Moreover, Microsoft already patched the Copilot vulnerability which could have started it all; therefore, it's highly unlikely organizations could be breached by SearchLeak specifically.
What is parameter-to-prompt (P2P) injection?
A parameter-to-prompt injection is a vulnerability where text is embedded into instructions processed by an LLM; the injection involves the specific variables, vectors, and attack surfaces used to breach the AI's intended logic.
