Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2026-1664
February 03, 2026
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
https://github.com/cloudflare/agents.git (GITHUB):
Affected version(s) >=agents@0.0.37 <agents@0.3.7
Fix Suggestion:
Update to version agents@0.3.7
https://github.com/cloudflare/agents.git (GITHUB):
Affected version(s) >=agents@0.0.37 <agents@0.3.7
Fix Suggestion:
Update to version agents@0.3.7
https://github.com/cloudflare/agents.git (GITHUB):
Affected version(s) >=agents@0.0.37 <agents@0.3.7
Fix Suggestion:
Update to version agents@0.3.7
https://github.com/cloudflare/agents.git (GITHUB):
Affected version(s) >=agents@0.0.37 <agents@0.3.7
Fix Suggestion:
Update to version agents@0.3.7
agents (NPM):
Affected version(s) >=0.0.0-a3b7e23 <0.3.7
Fix Suggestion:
Update to version 0.3.7
agents (NPM):
Affected version(s) >=0.0.0-a3b7e23 <0.3.7
Fix Suggestion:
Update to version 0.3.7
agents (NPM):
Affected version(s) >=0.0.0-a3b7e23 <0.3.7
Fix Suggestion:
Update to version 0.3.7
agents (NPM):
Affected version(s) >=0.0.0-a3b7e23 <0.3.7
Fix Suggestion:
Update to version 0.3.7
Do you need more information?
Contact Us
CVSS v4
Base Score:
6.9
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
LOW
Vulnerable System Integrity
LOW
Vulnerable System Availability
NONE
Subsequent System Confidentiality
LOW
Subsequent System Integrity
LOW
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.2
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
CHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE
Weakness Type (CWE)
Authorization Bypass Through User-Controlled Key
EPSS
Base Score:
0.02