EchoLeak, CVE-2025-32711, step by step

EchoLeak is CVE-2025-32711, a zero-click prompt injection flaw in Microsoft 365 Copilot. One crafted email could make Copilot send data from the victim's context to an attacker. Aim Labs reported it, Microsoft fixed it on its own side, and the June 11, 2025 advisory said customers had nothing to do.

Updated

What are the key facts about CVE-2025-32711?

FieldRecord
TitleM365 Copilot Information Disclosure Vulnerability
Description"Ai command injection in M365 Copilot allows an unauthorized attacker to disclose information over a network."
WeaknessCWE-74, injection
PublishedJune 11, 2025
Microsoft's score9.3, critical (CVSS 3.1)
NVD's score7.5, high (CVSS 3.1)
ExploitedNo, according to Microsoft's advisory
Customer actionNone. Microsoft says it fully mitigated the flaw
Credited findersAim Labs (part of Aim Security) and Estevam Arantes of Microsoft

Why two scores? Both say the flaw is reachable over the network, with no privileges and no action by the victim. Microsoft marks the scope as changed and adds a low integrity impact (S:C/C:H/I:L). NVD marks the scope unchanged with no integrity impact (S:U/C:H/I:N). Say which one you are quoting.

How did the EchoLeak attack work?

An attacker sends an ordinary looking email to someone in the organization. Later the victim asks Copilot a work question, and retrieval brings that email into the same context as internal data. A case study on arXiv, by Pavan Reddy and Aditya Sanjay Gujral, then describes four bypasses.

StepSafeguardHow it was passed
1XPIA, Microsoft's cross prompt injection filterThe email read like a request to its human reader, and asked for the email not to be mentioned
2Removal of outside links from answersReference-style Markdown links were not removed
3The link still needed a clickAn image written the same way, which the client loads by itself
4Content Security Policy on where images load fromA Microsoft Teams preview address on the allowed list fetched the attacker's URL

Data from the context travelled inside the address of the image, and the attacker could read it in server logs. To the victim it looked like a broken image, if anything. Aim Labs called this class of flaw an LLM scope violation: content from outside made the model use data from inside.

Why did reference-style Markdown matter?

Markdown can write a link in two ways. A cleaner that looks for the first form alone misses the second.

Two ways to write one link
Inline:     [report](https://files.attacker.example/a)

Reference:  [report][1]

            [1]: https://files.attacker.example/a

Put ! in front and it becomes an image, which many clients load with no click.

What is the EchoLeak timeline?

DateEvent
January 2025Aim Labs builds a proof of concept and reports it to Microsoft
April 2025First remediation work reported
May 2025Server-side fix deployed
June 11, 2025CVE and advisory published, research disclosed
June 17, 2025Advisory revised to add an acknowledgement
September 6, 2025Case study posted to arXiv
February 20, 2026Advisory revised to update the CWE value

The January to May entries come from the case study. Its authors say they worked from public information and did not reproduce the attack. The advisory dates come from Microsoft.

How do you check your own agent for the same leak?

Check model output with something that ignores Markdown syntax. This function finds every web address and returns those whose host is not on your list.

outside_urls.py
import html
import re
from urllib.parse import urlsplit

ALLOWED_HOSTS = {"trotta.email", "trotta.io"}
URL = re.compile(r"""(?:https?:)?//[^\s<>()\[\]"'`]+""", re.I)


def outside_urls(model_output: str) -> list[str]:
    """Every web address in the text, whatever syntax wraps it, that is not on your list."""
    flagged = []
    for match in URL.findall(html.unescape(model_output)):
        url = match.rstrip(".,;:!?*_")  # trailing punctuation
        try:
            parts = urlsplit(url)
            host = (parts.hostname or "").lower()
        except ValueError:
            host = ""
        # "@" and "\" make browsers and parsers disagree about the host. Never allow them.
        odd = "\\" in url or "@" in url.split("//", 1)[1].split("/", 1)[0]
        if odd or host not in ALLOWED_HOSTS:
            flagged.append(url)
    return flagged

Run against inline links, reference links, images, an img tag and lookalike hosts, it flagged each outside address. Treat it as a backstop. Addresses split up or encoded in other ways can pass, and an allowed host that fetches other addresses defeats it, which is what step 4 did.

  • Show model output as plain text where you can.
  • Block remote images in whatever renders it, for example with the policy img-src 'self'.
  • Check that every allowed host refuses to fetch other addresses.
  • Keep mail from outside apart from internal data. See the lethal trifecta.

What does EchoLeak teach beyond Copilot?

The case study recommends partitioning prompts, filtering input and output, giving the model least privilege by the origin of content, and strict content security policies. Each single layer in this chain failed, so none should stand alone. OWASP's ASI01, Agent Goal Hijack, uses EchoLeak as an example scenario.

Where does Trotta Mail fit?

Trotta Mail is a mailbox, not an add-on to Copilot, and it cannot change how another product renders answers. For agents whose mail it holds, it screens before delivery, removes hidden text, marks instructions aimed at a model, defangs risky links and screens what the agent sends. No filter catches everything. For the wider pattern, see zero-click AI attacks.

Questions

Is EchoLeak still exploitable?

Microsoft's advisory says the vulnerability was fully mitigated on its side and there is no action to take. The design pattern behind it can recur in other assistants.

Was EchoLeak used against anyone?

Microsoft lists it as not exploited. The case study also reports no sign of exploitation in the wild.

Who found EchoLeak?

Microsoft's advisory credits Aim Labs, part of Aim Security, and Estevam Arantes of Microsoft.

Why is EchoLeak called zero-click?

The victim did not need to click or open anything from the attacker. Asking Copilot an ordinary question was enough to pull the email in.

Sources

Give your agent an inbox of its own. Free for three agent inboxes and you. No card.