{"answers":{"affected":"2 open source packages ship an affected version, including agents.","exploited":"There is no known exploitation of CVE-2026-1664 in the wild and no public exploit code.","fix":"Upgrade agents to 0.3.7 or later.","what":"CVE-2026-1664 is a medium-severity missing authorization vulnerability in agents, published on 3 Feb 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-1664 and fix it if it is affected.\n\nWhat it is: CVE-2026-1664 is a medium-severity missing authorization vulnerability in agents, published on 3 Feb 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-1664 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- agents (npm): affected all versions; fixed in 0.3.7\n- agents (npm): affected all versions; fixed in 0.3.7\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-1664/ (Markdown: https://insights.sbomify.com/CVE-2026-1664/index.md)","id":"CVE-2026-1664","markdown":"https://insights.sbomify.com/CVE-2026-1664/index.md","name":"CVE-2026-1664","record":{"aliases":["GHSA-r7x9-8ph7-w8cg"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Cloudflare Agents SDK","requires_auth":"none","summary":"Attackers can route inbound emails to arbitrary agent instances by spoofing headers, potentially accessing or modifying data in unauthorized Durable Objects.","user_interaction":"not_required","vuln_class":"missing_authorization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"cloudflare","cpe":[],"cvss":{"score":6.9,"severity":"medium","source":"cna","vector":"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","version":"4.0"},"cwes":[{"id":"CWE-639","name":"Authorization Bypass Through User-Controlled Key"}],"description":"Summary\n\nAn 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 .\n\nRoot cause\n\nThe `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.\n\nImpact\n\nInsecure Direct Object Reference (IDOR) in email routing lets an attacker steer inbound mail to arbitrary Agent instances via spoofed Message-ID.\n\nMitigation:\n\n  *  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.\n  *  Agents-sdk users should  upgrade to agents@0.3.7","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Insecure Direct Object Reference (IDOR) via Header-Based Email Routing","id":"CVE-2026-1664","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"missing_authorization","year":"2026"},"n_packages":2,"n_references":1,"next":{"headline":"Command Injection in nvm via NVM_AUTH_HEADER in wget code path","id":"CVE-2026-1665"},"packages":[{"ecosystem":"npm","fixed":["0.3.7"],"introduced":["0"],"last_affected":[],"package":"agents","purl":null,"source":"GHSA-r7x9-8ph7-w8cg"},{"ecosystem":"npm","fixed":["0.3.7"],"introduced":["0"],"last_affected":[],"package":"agents","purl":"pkg:npm/agents","source":"GHSA-r7x9-8ph7-w8cg"}],"prev":{"headline":"Missing Authorization in GitLab","id":"CVE-2026-1663"},"products":[],"published":"2026-02-03","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-02-03","vendors":[]},"summary":"Attackers can route inbound emails to arbitrary agent instances by spoofing headers, potentially accessing or modifying data in unauthorized Durable Objects.","url":"https://insights.sbomify.com/CVE-2026-1664/"}