Skip to content

CVE-2026-1664 Insecure Direct Object Reference (IDOR) via Header-Based Email Routing

MediumCVSS 6.9 EPSS 0.46%
Published
Updated
Exploit status
No public exploit known

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:

Affected products

ProductAffected versionsFixed in
agents >= 0.0.104, <= 0.3.6 No fix listed
npm agents(npm) < 0.3.7 0.3.7

References