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

- Severity: Medium 6.9 (CVSS:4.0, scored by cloudflare) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.41%, higher than 36% of CVEs (2026-12-01)
- Published: 2026-02-03T11:39:18.810Z
- Modified: 2026-06-17T10:16:16.637Z
- Also known as: GHSA-r7x9-8ph7-w8cg
- Weaknesses: CWE-639
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: cloudflare

## 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

(As written by CVE List.)

## Affected

- agents: from 0.0.104 up to 0.3.6
- agents (npm): before 0.3.7

## Every score

- cloudflare: CVSS:4.0 6.9 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N`

## References

- <https://github.com/cloudflare/agents> (package)
- <https://github.com/cloudflare/agents/security/advisories/GHSA-r7x9-8ph7-w8cg> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-1664> (advisory)
- <https://github.com/cloudflare/agents/blob/main/docs/email.md> (web)

## Sources

- CVE List: [CVE-2026-1664](https://www.cve.org/CVERecord?id=CVE-2026-1664), CVE Terms of Use, modified 2026-02-03
- GitHub Advisory Database: [GHSA-r7x9-8ph7-w8cg](https://github.com/advisories/GHSA-r7x9-8ph7-w8cg), CC-BY-4.0, modified 2026-02-22
- NVD: [CVE-2026-1664](https://nvd.nist.gov/vuln/detail/CVE-2026-1664), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-1664 · Whole record: https://cve.day/CVE-2026-1664.json · Rebuilt by cve.day 2026-11-25T22:59:13.390Z
