Insecure Direct Object Reference (IDOR) via Header-Based Email Routing
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-639.
Summary
Summary An Insecure Direct Object Reference has been found to exist in `createHeaderBasedEmailResolver()` function within the Cloudflare Agents SDK. The issue occurs because the `Message-ID` and `References` headers are parsed to derive the target agentName and agentId without proper validation or origin checks, allowing an external attacker with control of these headers to route inbound mail to arbitrary Durable Object instances and namespaces . Root cause The `createHeaderBasedEmailResolver()` function lacks cryptographic verification or origin validation for the headers used in the routing logic, effectively allowing external input to dictate internal object routing. Impact Insecure Direct Object Reference (IDOR) in email routing lets an attacker steer inbound mail to arbitrary Agent instances via spoofed Message-ID. Mitigation: * PR: https://github.com/cloudflare/agents/blob/main/docs/email.md ] provides the necessary architectural context for coding agents to mitigate the issue by refactoring the resolver to enforce strict identity boundaries. * Agents-sdk users should upgrade to [email protected]
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | agents | 0.0.104 – 0.3.6 | — | No fix listed | CNA |
| — | agents (npm) | before 0.3.7 | 0.3.7 | Patch available | GHSA-r7x9-8ph7-w8cg |
- agents Vendor— Affected 0.0.104 – 0.3.6 Fixed in — No fix listed CNA
- agents (npm) Vendor— Affected before 0.3.7 Fixed in 0.3.7 Patch available GHSA-r7x9-8ph7-w8cg
Remediation
- Fix · GHSA-r7x9-8ph7-w8cg agents (npm) Fixed in 0.3.7 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-1664
- 2026-10-03 Alias added: GHSA-r7x9-8ph7-w8cg
References
Sources
- CVE-2026-1664 · CVE Program
- CVE-2026-1664 · NVD
- FIRST EPSS
- GHSA-r7x9-8ph7-w8cg · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences