Web-to-Lead and Web-to-Case exist so that strangers can write into your CRM. That was a fair trade when the only reader of a lead description was a sales rep. Once an Agentforce agent reads the same record and treats its text as context, the form becomes a way for anyone on the internet to put instructions in front of a model that can query and act on your org.
This is not hypothetical. Two public research chains, one in 2025 and one in 2026, started at a Web-to-Lead form and ended with CRM data leaving the org. This post covers what they showed, which fields count as hostile input, and the controls that matter more than any prompt wording.
What ForcedLeak showed in 2025
Noma Labs published ForcedLeak on 25 September 2025 and rated it CVSS 9.4. The chain had four parts:
- The attacker submitted a Web-to-Lead form with instructions hidden in the Description field, the one free-text field long enough to carry a real payload.
- Later, an employee asked the agent to check that lead and respond to it, an ordinary request.
- The hidden text told the agent to gather lead email addresses and place them in the URL of an image.
- The image host was a domain on the org's allowlist whose registration had lapsed. The researchers bought it, so the browser rendering the agent's answer sent the data to a server they controlled.
The researchers reported it on 28 July 2025. Salesforce began enforcing Trusted URLs for Agentforce and Einstein generative AI on 8 September 2025 and re-secured the expired domain.
What SalesBleed showed in 2026
Zenity Labs published SalesBleed on 24 September 2026. It started at a public Web-to-Lead form again. When a user asked the agent to help with the newest lead, the injected text told it to query Accounts with the same subagent's Query Records tool, put values such as a company name and deal size into the subdomain of an attacker hostname, and print that URL as an image tag. Rendering the image, or Slack building a link preview, triggered a DNS lookup that carried the data out before any HTTP request was made.
The URL filter that should have stopped it did not recognise some top-level domains and disagreed with the browser about where a URL ends. The researchers reported it on 1 June 2026, and Salesforce confirmed the fix on 18 August 2026. Their write-up points out the structural problems that a fix to the filter does not change: Web-to-Lead endpoints are public by design, a malicious lead persists and runs every time someone reviews it, and the default subagent could read both Leads and Accounts.
The lesson from the pair: output filtering is a backstop. The boundary is what the agent can read and where it can send.
Salesforce's controls, and what they do
Salesforce's notice on the Agentforce allowlist describes the current model. Agents cannot generate links to URLs that are neither on the Trusted URLs list nor in the agent's instructions. From 28 February 2026, the *.salesforce.com wildcard was removed from the default configuration, and admins are asked to list the specific domains their agents need instead of re-adding a wildcard.
Two details from that notice matter for a review. First, an entry on Trusted URLs applies across the whole org, not only to agents, so every entry is also a browser content policy decision. Second, managing the list needs Customize Application and Modify All Data, so the people who can widen it are already your most privileged users.
Map the public write surfaces
List every field an outsider can write, then every place an agent reads it.
| Write surface | Fields an outsider controls | Where an agent might read them |
|---|---|---|
| Web-to-Lead | Lead Description, Company, name and any custom fields on the form | Lead summary prompts, lead qualification actions |
| Web-to-Case | Case Subject, Description, custom fields | Case summary and reply drafting |
| Email-to-Case | Case Subject, Description, EmailMessage body | Service replies, case classification flows |
| Experience Cloud guest forms and screen flows | Any field the guest profile can create or edit | Grounding on the created record |
| Chat, messaging and survey intake | Transcript and free-text answers | Conversation summaries, follow-up actions |
The dangerous combination is a free-text field from the left column bound into a prompt template, read by an action, or passed into a prompt from a record-triggered flow.
Controls that work
Keep hostile text out of instruction position. If a template does not need the raw description, do not bind it. When it does, put it in a clearly delimited block that the instructions describe as untrusted data to summarise, never to follow. Delimiters reduce the risk. They do not remove it, which is why the next three controls exist.
Shrink what the agent can reach. An agent that summarises leads does not need Account or Opportunity access. Give its running user only the objects and fields its actions use, and scope each action to the record in front of it rather than letting it run arbitrary queries. The follow-up post on the agent user covers this in detail.
Close the exits. Review Setup, Trusted URLs line by line: remove wildcards, remove hosts you no longer own, and keep img-src only for hosts that genuinely serve images to your users. Check Remote Site Settings and Named Credentials the same way, since an action that can call out is also an exit.
Require a human for actions that send or change. Any action that emails, calls out, posts to Slack or writes records should require confirmation from the person in the conversation. An injected instruction then needs a human to approve it.
Keep reCAPTCHA on, but do not count it. Web-to-Lead and Web-to-Case support reCAPTCHA. It stops spambots. It does not stop a person typing a payload by hand.
Audit the leads you already have
A stored payload keeps working until someone deletes it. Lead Description is a long text area, which SOQL cannot filter on, so export and search locally:
sf data query --target-org prod \
--query "SELECT Id, CreatedDate, LeadSource, Description FROM Lead WHERE CreatedDate = LAST_N_DAYS:180" \
--result-format csv > leads.csv
grep -inE '<img|https?://|ignore (all|previous)|instruction|system prompt' leads.csv | head -50Expect noise (people paste links), but a description that addresses an assistant or contains markup is worth reading. Repeat the export for Case.
Where Vulkro for Salesforce fits
vulkro-sf scan looks for the shape of the chain in your source and metadata. It cannot see a payload sitting in record data, and it does not try to judge prompt wording. What it checks:
sf-forcedleak-writable-field-in-prompt: a prompt template binds a free-text field that a guest profile, or a Web-to-Lead or Web-to-Case form in the project, can write.sf-forcedleak-email-to-case: Email-to-Case is on and a template, agent action or prompt flow reads the Case or EmailMessage text.sf-forcedleak-untrusted-url-in-promptandAP-062: a template that emits URLs to untrusted hosts, and wildcard Trusted URL entries.sf-forcedleak-exfil-chain: the writable field reaches a prompt and an exit exists, such as an unconfirmed email, callout or Slack action.sf-csp-dangling-inventory: the external hosts an agent fed public input can reach, listed for a person to confirm ownership. A lapsed domain cannot be detected offline, so it says so.
On a live org, vulkro-sf org governance -t prod adds SF-AI-AGENT-003, agent actions that send data out with no confirmation step.
FAQ
Does Trusted URLs enforcement stop prompt injection?
No. It limits where an agent's output can link or load from, which blocks one exfiltration route. The injected instruction still runs, and SalesBleed showed that URL filtering can be bypassed. Combine it with least privilege and confirmation on outbound actions.
Is Web-to-Case as risky as Web-to-Lead?
Yes, when an agent reads case text. Email-to-Case is wider still, because anyone who can send an email writes the Subject, Description and message body.
Should we turn off Web-to-Lead?
Usually not. Keep the form, keep free-text fields out of instruction position, give the reading agent narrow access, and require confirmation before it sends anything.
See the Agentforce detectors and Vulkro for Salesforce, or start a 14-day trial. Related: Agentforce security: which user your agent runs as and the Aura endpoint and the guest profile.