CVE-2026-1664

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
CVSS

No CVSS.

References
Configurations

No configuration.

History

15 Apr 2026, 00:35

Type Values Removed Values Added
Summary
  • (es) Resumen Se ha encontrado una Referencia Directa Insegura a Objeto que existe en la función 'createHeaderBasedEmailResolver()' dentro del SDK de Cloudflare Agents. El problema ocurre porque los encabezados 'Message-ID' y 'References' se analizan para derivar el agentName y el agentId de destino sin la validación adecuada o comprobaciones de origen, permitiendo a un atacante externo con control de estos encabezados enrutar el correo entrante a instancias y espacios de nombres arbitrarios de Durable Object. Causa raíz La función 'createHeaderBasedEmailResolver()' carece de verificación criptográfica o validación de origen para los encabezados utilizados en la lógica de enrutamiento, permitiendo efectivamente que la entrada externa dicte el enrutamiento interno de objetos. Impacto La Referencia Directa Insegura a Objeto (IDOR) en el enrutamiento de correo electrónico permite a un atacante dirigir el correo entrante a instancias arbitrarias de Agent a través de un Message-ID falsificado. Mitigación: * PR: https://github.com/cloudflare/agents/blob/main/docs/email.md ] proporciona el contexto arquitectónico necesario para que los agentes de codificación mitiguen el problema refactorizando el resolvedor para hacer cumplir límites de identidad estrictos. * Los usuarios del SDK de Agents deben actualizar a agents@0.3.7

03 Feb 2026, 12:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-02-03 12:16

Updated : 2026-04-15 00:35


NVD link : CVE-2026-1664

Mitre link : CVE-2026-1664

CVE.ORG link : CVE-2026-1664


JSON object : View

Products Affected

No product.

CWE
CWE-639

Authorization Bypass Through User-Controlled Key