
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-1664 is an Insecure Direct Object Reference (IDOR) vulnerability in the Cloudflare Agents SDK affecting the createHeaderBasedEmailResolver() function. It allows unauthenticated remote attackers to route inbound email to arbitrary Durable Object instances by spoofing Message-ID and References email headers. All versions of the agents npm package prior to 0.3.7 are affected. The vulnerability was published on February 3, 2026, with a CVSS v4.0 base score of 6.9 (Medium) (Github Advisory).
The root cause is classified as CWE-639 (Authorization Bypass Through User-Controlled Key). The createHeaderBasedEmailResolver() function parses the Message-ID and References email headers to derive the target agentName and agentId for routing inbound mail, but performs no cryptographic verification or origin validation on these header values. Because email headers are fully attacker-controlled, an external sender can craft a malicious email with spoofed headers that reference arbitrary Durable Object namespaces and instance IDs, causing the SDK to route the message to unintended agent instances. No authentication or special privileges are required to exploit this vulnerability — only the ability to send an email to the target system (Github Advisory, Cloudflare Agents Repo).
Successful exploitation allows an attacker to steer inbound email to arbitrary Cloudflare Durable Object agent instances and namespaces that they should not have access to. This results in low confidentiality and integrity impacts on both the vulnerable system and subsequent systems, as unauthorized agents may receive and process email content intended for other instances. Availability is not directly impacted. The vulnerability could enable unauthorized access to agent state or trigger unintended agent behavior depending on how the targeted Durable Object processes received email (Github Advisory).
No public proof-of-concept exploit code or evidence of in-the-wild exploitation has been reported. The EPSS score is approximately 0.023% (7th percentile), indicating a low near-term exploitation probability. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires no authentication, no user interaction, and no special privileges — only the ability to send a crafted email — making it technically straightforward for any attacker with email access to the target system (Github Advisory).
agents < 0.3.7) that uses createHeaderBasedEmailResolver() to handle inbound email via Cloudflare Email Routing.agentName and agentId values through application behavior, documentation, or error messages exposed by the target service.Message-ID and/or References headers containing the target agentName and agentId values in the format expected by the resolver (e.g., Message-ID: <agentId.agentName@domain>).createHeaderBasedEmailResolver() function parses the headers without validation and routes the message to the specified Durable Object instance.Message-ID or References headers containing structured identifiers (e.g., UUIDs or agent name patterns) that do not correspond to legitimate prior outbound messages from the system.Message-ID in sent mail logs) (Github Advisory).Users of the Cloudflare Agents SDK should upgrade the agents npm package to version 0.3.7 or later, which refactors the createHeaderBasedEmailResolver() function to enforce strict identity boundaries and eliminate reliance on unvalidated header values for routing (Github Advisory). As a workaround prior to patching, developers can implement custom email resolver logic that validates the origin and authenticity of Message-ID and References headers before using them for routing decisions. The Cloudflare Agents email documentation at docs/email.md provides architectural context for implementing secure resolver patterns (Cloudflare Agents Repo).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."