CVE-2026-1664
Last modified
CVE-2026-1664 is a medium-severity vulnerability rated 6.9/10 on the CVSS scale. 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. EPSS estimates a 0.37% chance of exploitation in the next 30 days.
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: * 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
Metrics
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-1664?
How severe is CVE-2026-1664?
How do I fix CVE-2026-1664?
How Strix Helps
- Uncovering a hidden BOLA in Appsmith's snapshot logicStrix autonomously discovered a BOLA/IDOR vulnerability in Appsmith's snapshot deletion path.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-16634TOML::XS versions before 0.06 for Perl bundle an unsupported…9.8
- CVE-2026-16635The Pronamic Pay plugin for WordPress is vulnerable to Privi…8.8
- CVE-2026-16636The FluentSMTP – WP SMTP Plugin with Amazon SES, SendGrid, M…7.2
- CVE-2026-16637OPeNDAP Hyrax allows SSRF and credential disclosure via unva…6.5
- CVE-2026-16638Improper Neutralization of Input During Web Page Generation …6.1
- CVE-2026-16639Authentication Bypass Using an Alternate Path or Channel vul…9.8
- CVE-2026-16640Improper Neutralization of Input During Web Page Generation …6.1
- CVE-2026-16641Vulnerability in Drupal Commerce Elavon. This issue affects …9.8
- CVE-2026-16642Vulnerability in Drupal Email Login OTP. This issue affects …5.7
- CVE-2026-16643Vulnerability in Drupal Lunr exposed filters. This issue aff…5.7
- CVE-2026-16644Incorrect Authorization vulnerability in Drupal Webform REST…9.1
- CVE-2026-16645Missing Authorization vulnerability in Drupal PhotoSwipe - R…9.1
Are you affected by CVE-2026-1664?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
