{"id":76231,"date":"2026-02-03T15:46:11","date_gmt":"2026-02-03T12:16:11","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2026-1664-insecure-direct-object-reference-idor-via-header-based-email-routing\/"},"modified":"2026-02-03T15:46:11","modified_gmt":"2026-02-03T12:16:11","slug":"cve-2026-1664-insecure-direct-object-reference-idor-via-header-based-email-routing","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2026-1664-insecure-direct-object-reference-idor-via-header-based-email-routing\/","title":{"rendered":"CVE-2026-1664 &#8211; Insecure Direct Object Reference (IDOR) via Header-Based Email Routing"},"content":{"rendered":"<p>CVE ID : CVE-2026-1664<\/p>\n<p>Published :  Feb. 3, 2026, 12:16 p.m. | 1\u00a0hour, 1\u00a0minute ago<\/p>\n<p>Description : Summary<\/p>\n<p>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 .<\/p>\n<p>Root cause<\/p>\n<p>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.<\/p>\n<p>Impact<\/p>\n<p>Insecure Direct Object Reference (IDOR) in email routing lets an attacker steer inbound mail to arbitrary Agent instances via spoofed Message-ID.<\/p>\n<p>Mitigation:<\/p>\n<p>  *  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.<br \/>\n  *  Agents-sdk users should  upgrade to agents@0.3.7<\/p>\n<p>Severity: 6.9 | MEDIUM<\/p>\n<p>Visit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID : CVE-2026-1664 Published : Feb. 3, 2026, 12:16 p.m. | 1\u00a0hour, 1\u00a0minute ago 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 &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-76231","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/76231","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=76231"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/76231\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=76231"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=76231"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=76231"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}