CVE-2026-1664
Description
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 agents@0.3.7
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
agentsnpm | < 0.3.7 | 0.3.7 |
Affected products
1Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
4News mentions
15- Lens Agents brings policy control to AI across cloud and desktopHelp Net Security · May 4, 2026
- Pipelock: Open-source AI agent firewallHelp Net Security · May 4, 2026
- Week in review: High-severity LPE vulnerability in the Linux kernel, cPanel 0-day exploited for monthsHelp Net Security · May 3, 2026
- Great responsibility, without great powerCisco Talos Intelligence · Apr 30, 2026
- Webinar: How to Automate Exposure Validation to Match the Speed of AI AttacksThe Hacker News · Apr 29, 2026
- AI-powered honeypots: Turning the tables on malicious AI agentsCisco Talos Intelligence · Apr 29, 2026
- What Anthropic’s Mythos Means for the Future of CybersecuritySchneier on Security · Apr 28, 2026
- Microsoft Patches Entra ID Role Flaw That Enabled Service Principal TakeoverThe Hacker News · Apr 28, 2026
- Bridging the AI Agent Authority Gap: Continuous Observability as the Decision EngineThe Hacker News · Apr 24, 2026
- IR Trends Q1 2026: Phishing reemerges as top initial access vector, as attacks targeting public administration persistCisco Talos Intelligence · Apr 22, 2026
- Bad Apples: Weaponizing native macOS primitives for movement and executionCisco Talos Intelligence · Apr 21, 2026
- The n8n n8mare: How threat actors are misusing AI workflow automationCisco Talos Intelligence · Apr 15, 2026
- The Increasing Role of AI in Vulnerability ResearchWordfence Blog · Apr 10, 2026
- Microsoft Patch Tuesday, March 2026 EditionKrebs on Security · Mar 11, 2026
- How AI Assistants are Moving the Security GoalpostsKrebs on Security · Mar 8, 2026