# EchoLeak explained: the CVE-2025-32711 attack chain

> EchoLeak (CVE-2025-32711) step by step: four bypasses, the dates, Microsoft's 9.3 and NVD's 7.5 scores, and a check to run on your own agent.

Source: https://trotta.email/learn/echoleak

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 December 3, 2026

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

| Field | Record |
| --- | --- |
| Title | M365 Copilot Information Disclosure Vulnerability |
| Description | "Ai command injection in M365 Copilot allows an unauthorized attacker to disclose information over a network." |
| Weakness | CWE-74, injection |
| Published | June 11, 2025 |
| Microsoft's score | 9.3, critical (CVSS 3.1) |
| NVD's score | 7.5, high (CVSS 3.1) |
| Exploited | No, according to Microsoft's advisory |
| Customer action | None. Microsoft says it fully mitigated the flaw |
| Credited finders | Aim 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.

| Step | Safeguard | How it was passed |
| --- | --- | --- |
| 1 | XPIA, Microsoft's cross prompt injection filter | The email read like a request to its human reader, and asked for the email not to be mentioned |
| 2 | Removal of outside links from answers | Reference-style Markdown links were not removed |
| 3 | The link still needed a click | An image written the same way, which the client loads by itself |
| 4 | Content Security Policy on where images load from | A 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:

```text
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?

| Date | Event |
| --- | --- |
| January 2025 | Aim Labs builds a proof of concept and reports it to Microsoft |
| April 2025 | First remediation work reported |
| May 2025 | Server-side fix deployed |
| June 11, 2025 | CVE and advisory published, research disclosed |
| June 17, 2025 | Advisory revised to add an acknowledgement |
| September 6, 2025 | Case study posted to arXiv |
| February 20, 2026 | Advisory 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`:

```python
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](https://trotta.email/learn/lethal-trifecta-email).

## 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](https://trotta.email/learn/owasp-agentic-top-10-and-email), 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](https://trotta.email/learn/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

- [Microsoft Security Response Center, CVE-2025-32711 advisory](https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-32711)
- [Microsoft Security Update Guide data for CVE-2025-32711, with revision history](https://api.msrc.microsoft.com/sug/v2.0/en-US/vulnerability/CVE-2025-32711)
- [Microsoft Security Update Guide data, acknowledgements for CVE-2025-32711](https://api.msrc.microsoft.com/sug/v2.0/en-US/acknowledgement?$filter=cveNumber%20eq%20%27CVE-2025-32711%27)
- [NIST National Vulnerability Database record for CVE-2025-32711 (CVE API)](https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2025-32711)
- [CVE record, CVE-2025-32711](https://www.cve.org/CVERecord?id=CVE-2025-32711)
- [Reddy and Gujral, EchoLeak: The First Real-World Zero-Click Prompt Injection Exploit in a Production LLM System, arXiv:2509.10540](https://arxiv.org/abs/2509.10540)
- [OWASP Top 10 for Agentic Applications 2026, ASI01: Agent Goal Hijack](https://genai.owasp.org/agentic-applications-2026/asi01-agent-goal-hijack/)

## Related

- [Zero-click AI attacks](https://trotta.email/learn/zero-click-ai-attacks) Guides
- [The lethal trifecta for an AI agent with email](https://trotta.email/learn/lethal-trifecta-email) Guides
- [LLM data exfiltration](https://trotta.email/learn/llm-data-exfiltration) Guides
- [How to prevent prompt injection in an email agent](https://trotta.email/learn/prevent-prompt-injection-in-email-agents) Guides
- [Data exfiltration through agents](https://trotta.email/threats/data-exfiltration-through-agents) Threat library
- [The OWASP Top 10 for Agentic Applications, mapped to email](https://trotta.email/learn/owasp-agentic-top-10-and-email) Guides

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

[Get an inbox](https://trotta.email/signup) [Read the docs](https://trotta.email/docs)
