Researchers Reveal One-Click Microsoft 365 Copilot Data-Exfiltration Flaw
SearchLeak matters less as a single Copilot bug than as a template for the next wave of AI-agent attacks: it shows how prompt injection turns two ordinary, individually low-risk web weaknesses, an HTML-rendering race condition and an allowlisted domain capable of server-side request forgery, into a working data-exfiltration chain the moment an LLM with retrieval access sits in the request path. Varonis Threat Labs disclosed the chain on June 15, 2026, tracked as CVE-2026-42824; Microsoft's own advisory scores it CVSS 6.5 with a Critical severity rating, while NVD's independent analysis scores the same flaw 7.5 High, a documented scoring disagreement over whether the required click counts as user interaction. In Microsoft 365 Copilot Enterprise Search, a crafted link's 'q' parameter is read as an instruction, an injected image tag fires during response streaming before sanitization completes, and Bing's CSP-allowlisted image-search endpoint carries stolen mailbox, calendar, OneDrive, and SharePoint data to the attacker. Microsoft patched the flaw server-side in early June 2026, before Varonis published; no in-the-wild exploitation was found.
Why this is a template, not just a bug
SearchLeak is worth attention less because Copilot shipped a flaw and more because none of its three component weaknesses is new, and none is dangerous alone. What makes them dangerous together is that an LLM with retrieval access now sits between a URL parameter and a browser's render pipeline. Any team running an enterprise AI copilot or retrieval-augmented agent that accepts free-text instructions through a URL parameter, streams model output into the DOM before sanitizing it, and allowlists a domain in its Content Security Policy that can be made to fetch attacker-supplied URLs server-side, has the same three ingredients Varonis Threat Labs chained here. That combination is common to copilot-style search products generally, not unique to Microsoft.
How the chain works
Dolev Taler, the Varonis Threat Labs researcher credited with the discovery, breaks SearchLeak into three stages. Microsoft 365 Copilot Enterprise Search's URL accepts a q parameter meant for natural-language queries; Copilot instead treats its contents as instructions, a technique Varonis calls parameter-to-prompt (P2P) injection. Microsoft's safeguard wraps AI output in code blocks so browsers render it as text, but that wrapping happens only after generation finishes, while the browser renders the streamed response as it arrives, so an attacker's injected image tag fires its outbound request before sanitization runs. The page's Content Security Policy blocks image loads from arbitrary domains but allowlists bing.com; Bing's "Search by Image" endpoint fetches a supplied URL server-side, so pointing it at an attacker's server with stolen text encoded in the path exfiltrates data without the victim's browser ever contacting the attacker directly. Each link is a known bug class alone: prompt injection, a sanitizer race condition, and server-side request forgery (SSRF). Chaining them through an AI response pipeline is the new part.
What happened, briefly
Varonis disclosed SearchLeak on June 15, 2026, after Microsoft had already mitigated it server-side at the start of the month, so the fix predates the public writeup and required no customer action. Microsoft assigned CVE-2026-42824. The path could reach email content including one-time codes and password-reset links, calendar and meeting details, and OneDrive or SharePoint files indexed by Copilot, essentially anything the signed-in user's Microsoft Graph permissions cover. Because the malicious link resolves to a genuine microsoft.com address, standard URL-reputation and anti-phishing filtering has no signal to act on. Varonis published a working proof-of-concept; neither Varonis nor Microsoft reported evidence of in-the-wild exploitation before the patch.
Resolving the CVSS disagreement
Microsoft's own advisory classifies the flaw as CWE-77 (command injection) and assigns it a CVSS 3.1 base score of 6.5 (vector AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N), scoring the click as required user interaction, alongside a qualitative "Critical" severity label. The National Vulnerability Database's independent analysis scores the same flaw 7.5 High, using a vector that marks user interaction as not required. NVD's own listing flags the mismatch directly. Both describe the same vulnerability; the gap is a scoring judgment about whether the one-click requirement counts as "user interaction" in CVSS terms, not a factual dispute about what the flaw does or how serious its consequences are.
A checklist for anyone running copilot-style search
- •Check whether URL or query-parameter input to your AI assistant is isolated from its instruction channel, not just treated as data.
- •Check whether model output streams into the DOM before or after sanitization; a race condition here is invisible if code review only checks the final rendered state.
- •Review CSP allowlists for any domain that performs server-side fetches on caller-supplied URLs; an allowlisted SSRF-capable endpoint is an exfiltration channel no matter how trustworthy the domain looks.
- •Treat AI search features with mailbox, file, or calendar retrieval access as a data-loss surface requiring export-level monitoring, not just a chat feature.
Not an isolated incident
Varonis's own research history shows this is a recurring pattern: Reprompt (January 2026) used the same parameter-to-prompt technique against Copilot Personal, and EchoLeak (2025, CVE-2025-32711) was an earlier zero-click Copilot data-leak bug disclosed by Aim Security. A separate high-severity Copilot Chat information-disclosure flaw, CVE-2025-53787, was disclosed in 2025. Dor Yardeni, a Varonis director of security research, told Dark Reading that the underlying risk is not Copilot-specific: any LLM-powered assistant combining external input, internal data access, and output rendering in one flow "can potentially be abused in similar ways," which puts the fix on platform design choices like prompt isolation and output sanitization rather than on user behavior.
Key Points
- 1Varonis Threat Labs disclosed SearchLeak (CVE-2026-42824, Critical), chaining prompt injection, an HTML rendering race condition, and Bing SSRF into one-click Copilot data theft.
- 2None of the three chained bugs is new or AI-specific alone; an LLM with retrieval access made old web flaws newly weaponizable.
- 3Teams running copilot-style search should audit parameter-to-instruction isolation, output-streaming sanitization timing, and CSP allowlists that permit server-side fetches on attacker input.
Scoring Rationale
SearchLeak is a well-documented vulnerability chain in widely deployed enterprise AI (M365 Copilot Enterprise Search), with a primary technical disclosure from Varonis Threat Labs, direct corroboration from Microsoft's own MSRC advisory and NVD, and coverage across a dozen-plus reputable security and tech outlets. The CVSS discrepancy is now resolved rather than merely flagged: Microsoft's own CNA score is 6.5 (vector ends UI:R, reflecting the one-click requirement) against NVD's independent 7.5 High (UI:N); both are Medium-to-High numerically even though Microsoft's qualitative severity label is Critical, and NVD's own page documents the mismatch. Impact is tempered by server-side patching before public disclosure and no observed in-the-wild exploitation, but raised versus the prior score by confirmed broad, high-quality coverage and the technique's demonstrated reusability, Reprompt, EchoLeak, and CVE-2025-53787 show this is a recurring Copilot attack pattern directly relevant to any team operating retrieval-augmented AI agents. This places it at the top of Notable, just short of Major.
Sources
Public references used for this report.
View 10 more sources
- One-Click Microsoft 365 Copilot Flaw Could Have Let Attackers Steal Emails, Files, and MFA Codesthehackernews.com
- New attack turned Microsoft 365 Copilot into 1-click data theft toolbleepingcomputer.com
- Copilot 'SearchLeak' Attack Allows 1-Click Data Theftdarkreading.com
- Critical Copilot vulnerability allowed hackers to steal 2FA code from usersarstechnica.com
- Microsoft 365 Copilot can be turned into a one-click data theft tooltechradar.com
- Critical Microsoft 365 Copilot Vulnerability Allows Attackers to Steal Data in One Clickcybersecuritynews.com
- This Copilot vulnerability could expose emails, 2FA codes, and other sensitive datamashable.com
- Hackers turn Microsoft 365 Copilot into a one-click data theft tooltech.yahoo.com
- Critical vulnerability in Microsoft 365 Copilot (EchoLeak, 2025)fieldeffect.com
- CVE-2025-53787: Microsoft 365 Copilot Information Vulnerabilitysentinelone.com
Practice interview problems based on real data
1,625 SQL & Python problems across 15 industry datasets — the exact type of data you work with.
Try 250 free problems
