{"id":"CVE-2026-1664","published":"2026-02-03T11:39:18Z","modified":"2026-02-03T14:46:36Z","title":"Insecure Direct Object Reference (IDOR) via Header-Based Email Routing","vendor":null,"product":null,"tier":"tail","description":{"text":"Summary\n\nAn 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 .\n\n\n\n\nRoot cause\n\nThe `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.\n\n\n\n\nImpact\n\nInsecure Direct Object Reference (IDOR) in email routing lets an attacker steer inbound mail to arbitrary Agent instances via spoofed Message-ID.\n\n\n\n\n\nMitigation:\n\n  *  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.\n  *  Agents-sdk users should  upgrade to agents@0.3.7","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00406,"percentile":0.3564,"provenance":"source"},"cwes":[{"id":"CWE-639","name":"Authorization Bypass Through User-Controlled Key"}],"references":[{"url":"https://github.com/cloudflare/agents","tags":[]}],"priority":{"score":12.0,"factors":[{"name":"EPSS percentile","points":7.13},{"name":"CVSS severity","points":4.83}]},"affectedVersions":[{"vendor":null,"product":null,"versions":[">= 0.0.104, <= 0.3.6"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-02-03T14:38:24.747542Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"agents","vulnerableRanges":["<0.3.7"],"patched":["0.3.7"],"from":["GHSA-r7x9-8ph7-w8cg"],"provenance":"source"}],"summary":{"text":"The Cloudflare Agents SDK's createHeaderBasedEmailResolver() function derives the target agent name and ID from the Message-ID and References email headers without validating them or checking their origin, so inbound mail can be routed to arbitrary Durable Object instances and namespaces. An attacker who can send email to the affected application and control those headers (no authentication or user interaction is indicated) can steer messages to arbitrary Agent instances by spoofing the Message-ID.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:44:25Z"},"euvd":{"id":"EUVD-2026-5307","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-1664","published":"2026-02-03","fixed":"0.3.7","kev":false},{"cve":"CVE-2026-1721","published":"2026-02-13","fixed":"0.3.10","kev":false,"link":{"from":"CVE-2026-1664","to":"CVE-2026-1721","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:agents","fromFixed":"0.3.7","toFixed":"0.3.10","daysApart":10},{"kind":"similar","provenance":"machine","score":0.21,"basis":"same package + description similarity"}]}}],"package":"npm:agents"}}