Eslam Hamed
Technical Lead & AI Solutions Architect
Building enterprise AI systems, cloud platforms, and production-ready software
ShareLeak and PipeLeak: When a Form Can Give Orders to Your Company's AI Agent
On April 15, Capsule Security published two findings that make the same point twice. In its test on Microsoft Copilot Studio, text typed into a SharePoint form took over an agent and had it email customer records to an outside address. On Salesforce Agentforce, a public lead form did the same with sales leads, and the attacker needed no account. Microsoft fixed its flaw in January and gave it a CVE. Salesforce says it has fixed the scenario Capsule described, and Capsule says its retest showed no change. If your company runs an agent that reads what outsiders submit, the question is whether yours has the same shape.
I read both of Capsule's write-ups, Microsoft's CVE entry, Noma Security's write-up of ForcedLeak, an earlier Agentforce flaw of the same kind, and the reporting in VentureBeat and Dark Reading. The short answer: both flaws are real, and each vendor has acknowledged its own. Both were shown on deployments the researchers built, and nothing I found says either was used against a real company. What should worry a buyer is not either bug. It is the design both agents shared: they read text from strangers, they could reach company data, and they held an email action that would send to whatever address it was given.
What Capsule found
ShareLeak, in Copilot Studio. Copilot Studio is Microsoft's low-code tool for building agents, which can be connected to SharePoint and given actions such as sending email. Capsule's agent was set up to process SharePoint form submissions. Each submission started the agent on its own; no employee had to ask. The text from the form's comment field went into the agent's context next to its system instructions, with no sanitising and no separation, so the model had no reliable way to tell the company's instructions from the stranger's. In the test, the planted text told the agent to read customer records from a connected SharePoint list and email them to an address the attacker controlled, and it did. Capsule says Microsoft's safety mechanisms flagged the request and the data left anyway.
PipeLeak, in Agentforce. Here Capsule built what it calls a minimal, typical setup: a public lead form made with Salesforce's Digital Experiences, saving to the Lead object, and an agent with two custom actions. One read lead records. The other sent email through Salesforce's standard email action, to whatever recipient it was given. The attacker writes instructions into the form's free-text field and waits. When an employee asks the agent to review the new lead, the agent follows the lead's text instead, reads more lead records than the one it was asked about, and emails them out. The form needed no login. Capsule's chief executive, Naor Paz, told VentureBeat the testing never hit a limit on how much it could send.
The difference matters. ShareLeak needed nobody inside the company to act. PipeLeak waited for an employee's routine request, the kind the agent exists to answer.
What is documented
In date order, with the earlier Agentforce case for context:
- September 25, 2025. Noma Labs discloses ForcedLeak, an Agentforce prompt injection through a Web-to-Lead form, rated CVSS 9.4. Salesforce had enforced trusted URLs for Agentforce on September 8.
- November 24 to December 5, 2025. Capsule finds ShareLeak, reports it to Microsoft two days later, and Microsoft confirms it on December 5.
- December 2025. Capsule finds PipeLeak and reports it to Salesforce, which acknowledges it in January and responds formally in February.
- January 15, 2026. Microsoft deploys its fix, according to Capsule's timeline.
- January 22, 2026. Microsoft publishes CVE-2026-21520, crediting Capsule Security. The entry says the flaw is fully mitigated, customers have nothing to do, and it has not been exploited.
- April 15, 2026. Capsule publishes both write-ups, ShareLeak in coordination with Microsoft. VentureBeat reports that Salesforce has issued no CVE or public advisory for PipeLeak.
- April 15 and 16, 2026. Salesforce tells Dark Reading and VentureBeat it has remediated the issue. Capsule tells VentureBeat a retest showed no change.
What each claim rests on, and what it does not show:
| Claim | What the record shows | What it does not show |
|---|---|---|
| ShareLeak is a real Microsoft flaw | A CVE crediting Capsule, fixed on Microsoft's side | The mechanism. Microsoft's entry names no form, list or email |
| Microsoft's checks noticed | Capsule says they flagged the request and the data still left | What the flag did, or who would have seen it |
| PipeLeak needs no login | Capsule's public test form took the attack with no account | A real company's form being abused |
| Salesforce has fixed PipeLeak | Salesforce says it fixed the scenario Capsule described | What changed. Capsule says custom topics behave the same |
| Data was stolen | Both were shown on the researchers' own setups | Any victim. Microsoft's entry marks its flaw not exploited |
What the companies say
Microsoft says little, which is normal for a fix made on its own servers. Its entry calls CVE-2026-21520 a Copilot Studio information disclosure vulnerability, classed as command injection: an unauthenticated attacker could get at sensitive information over the network, with no privileges and no user interaction. The CVSS base score is 7.5, which the scale calls High; Microsoft's own severity rating is Critical. The entry does not say what was changed.
Capsule presents the CVE as a rare step for a prompt injection. It is less rare than that. Since June 2024 Microsoft's policy has been to issue CVEs for critical cloud-service flaws even when customers have nothing to install, and in June 2025 it gave EchoLeak, which it described as AI command injection in Microsoft 365 Copilot, CVE-2025-32711. What is new is the product. Copilot Studio is where companies build their own agents.
Salesforce answered Capsule in February, in a response Capsule quotes in its write-up, and split the report in two. On prompt injection, it said its product security and engineering teams were already working on it. On the data leaving, it called it a "configuration-specific issue rather than a platform-level vulnerability": its out-of-the-box email actions require human approval, and the same requirement is available as a setting for custom actions. Capsule's test used custom actions. After publication, a Salesforce spokesperson told VentureBeat the company had "remediated the specific scenario described" and that human approval is on by default for email-based agent actions. Salesforce told Dark Reading that its safeguards include instruction isolation, tool-use restrictions and human oversight.
Capsule does not accept the configuration answer. Its write-up argues that an agent which needs a person to approve every email is no longer doing the job it was bought for, and that the real problem is a default that lets untrusted data redirect an agent without any warning. In its words, "Secure defaults matter." It told VentureBeat it retested after Salesforce's statement and saw unchanged behaviour on custom topics.
Neither side has shown its working. Salesforce has not said what it changed, and Capsule's retest exists as a statement to one outlet, not a published test. Both positions rest on the same fact, though: the email action was the only thing between a stranger's text and an outside inbox, and whether it asked a human first was a setting.
One more thing a buyer should know: Capsule sells runtime security for AI agents, both write-ups end with a pitch for it, and it published them alongside its launch from stealth with a $7 million seed round. That does not weaken findings both vendors acknowledged. It is a reason to read the findings and the product claims separately.
The earlier case: ForcedLeak
This is the second time in seven months that a lead form has been turned against Agentforce. In September 2025 Noma Labs disclosed ForcedLeak. Instructions planted in the description field of a Web-to-Lead form waited until an employee asked the agent about the lead. The data then left as a request for an image, sent to a domain on Salesforce's allowlist that had expired and that Noma bought for $5. Salesforce's fix, in place by September 8, was to enforce trusted URLs for Agentforce and Einstein AI, so agent output cannot be sent to untrusted URLs, and to take back the expired domain.
That closed the route ForcedLeak used. PipeLeak never needed a URL. It used an email action the agent had been given on purpose, and an allowlist for links and images says nothing about who an email may go to. Each way out of an agent needs its own control.
What the record does not support
- That Microsoft's fix was bypassed. One write-up this week said Microsoft's January patch failed to stop the data leaving. Capsule's write-up says the vulnerability has been patched, and Microsoft's entry calls it fully mitigated. The flagged-but-sent result comes from Capsule's research. I found no primary source that says the fix failed.
- That any form can drive any agent. Both attacks needed an agent wired to read that form and holding an email action. ShareLeak's agent was set to process form submissions; PipeLeak's had a custom email action with no approval step. Capsule says its setups are typical. Nobody has published how many real deployments look like them.
- That data-loss tools are blind to it. VentureBeat reported that data-loss prevention never fired because the mail went out through a legitimate Outlook action. Capsule's own write-up does not mention DLP, so treat that as reported, not shown.
An agent problem, not a vendor problem
Simon Willison called it the lethal trifecta in June 2025: access to private data, exposure to untrusted content, and the ability to communicate externally. Both agents had all three by design, and so do most agents worth deploying at work. OWASP's Top 10 for Agentic Applications, published in December, lists this as its first risk, agent goal hijack, and Capsule maps both findings to it. Patching one product does not remove the shape. Designing around it does.
- Treat content as data. A form field is input, never instruction. In both cases the stranger's text sat in the same context as the system instructions, with nothing to mark it as foreign. In February the stranger's text was a GitHub issue title, put straight into the prompt of Cline's issue-triage bot. Filters help, and Capsule itself calls them imperfect. They lower the odds; they do not draw a boundary.
- Separate reading from acting. The agent that reads what the public submits should not be the one that can send company data out, and Capsule's own advice includes switching off the email tool while the agent handles untrusted input. If it must send, give it a send with the recipient fixed in code, such as a reply to the submitter or a note to the lead's owner, not an address field the model fills in.
- Control egress on every channel. ForcedLeak was closed with an allowlist for URLs; PipeLeak walked out through email. Allowlist outside recipients the way you allowlist domains, and count links, images, webhooks and file shares as channels too.
- Put approvals outside the model, and make them rare. Salesforce's human approval is the right kind of control, because the model cannot grant it to itself. Capsule's objection, that teams automating with agents will not switch on approval for every email, has weight too. The way through is a narrow action that sends routine mail without asking and stops for anything new: an unfamiliar outside address, a bulk export, a record nobody asked about.
- Enforce least privilege below the model. PipeLeak's agent read lead records beyond the one it was asked to review. A read tool for this job should fetch one record, the one in question, with the rights of the employee who asked, enforced where the data lives.
- Keep the evidence. Log every tool call with its arguments, and alert on outside recipients and unusual volumes, as Capsule also recommends. An agent's summary of what it did is not a log of what it did.
Keeping drafting apart from sending is how I build agents that talk to the public. On MerlinX, the agent platform I designed at DXWand for businesses' WhatsApp, Instagram, Messenger and web chat, the model drafts inside one bounded turn, ordinary code checks the draft, and a separate outbox sends it.
If you run one
- List every agent that reads something outsiders can write: web forms, leads, cases, inbound email, reviews, chat. Each of those is an instruction channel.
- For each one, list every tool that can move data outside the company: email actions, HTTP calls, webhooks, and links or images in its output.
- Where an agent has both, remove the send, or fix its recipient in code.
- In Agentforce, check that every custom action that sends email requires approval. Salesforce says its out-of-the-box email actions do; Capsule's test used custom ones.
- In Copilot Studio there was nothing to install. If you had agents triggered by SharePoint forms before Microsoft's fix in mid-January, look through what they sent in that period.
- Test it yourself: put a harmless instruction in a test submission, aimed at a mailbox you own, and confirm nothing reaches it.
Where that leaves it
Two vendors, two forms, one shape. Microsoft fixed its flaw. Salesforce says it fixed the scenario it was shown, and the researchers dispute how far that goes. Neither fix changes what made the attacks possible: an agent that reads what strangers type, can see company data and can send email. The control that holds is not a line in the prompt. It is a send action that cannot go anywhere the model decides.
Putting agents near real systems and data? I help teams design the controls before something goes wrong. See how we can work together.