Read the docs
TI-2026-01348 Aliases CVE-2026-1664GHSA-r7x9-8ph7-w8cg

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

Priority LOW 37CWE-639Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
Security bypass
Confidentiality · integrity · availability
Low · Low · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-639.

Summary

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 [email protected]

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00465 40th percentileScored 2026-11-07
Fix Fixed agents (npm): 0.3.7

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
—agents0.0.104 – 0.3.6—No fix listedCNA
—agents (npm)before 0.3.70.3.7Patch availableGHSA-r7x9-8ph7-w8cg
  • agents Vendor— Affected 0.0.104 – 0.3.6 Fixed in — No fix listed CNA
  • agents (npm) Vendor— Affected before 0.3.7 Fixed in 0.3.7 Patch available GHSA-r7x9-8ph7-w8cg

Remediation

  • Fix · GHSA-r7x9-8ph7-w8cg agents (npm) Fixed in 0.3.7 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-1664
  2. 2026-10-03 Alias added: GHSA-r7x9-8ph7-w8cg

References

Sources