Staging Environment: Content and features may be unstable or change without notice.
Search for packages
Package details: pkg:npm/agents@0.0.0-9e2f4e7
purl pkg:npm/agents@0.0.0-9e2f4e7
Next non-vulnerable version 0.3.10
Latest non-vulnerable version 0.3.10
Risk 3.1
Vulnerabilities affecting this package (3)
Vulnerability Summary Fixed by
VCID-hazd-1zmu-dubz
Aliases:
CVE-2026-1664
GHSA-r7x9-8ph7-w8cg
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
0.3.7
Affected by 2 other vulnerabilities.
VCID-wfzh-76nh-subz
Aliases:
GHSA-w5cr-2qhr-jqc5
Cloudflare Agents has a Reflected Cross-Site Scripting (XSS) vulnerability in AI Playground site
0.3.10
Affected by 0 other vulnerabilities.
VCID-xr1u-jyxs-ekdm
Aliases:
CVE-2026-1721
GHSA-cvhv-6xm6-c3v4
Summary A Reflected Cross-Site Scripting (XSS) vulnerability was discovered in the AI Playground's OAuth callback handler. The `error_description` query parameter was directly interpolated into an HTML script tag without proper escaping, allowing attackers to execute arbitrary JavaScript in the context of the victim's session. Root cause The OAuth callback handler in `site/ai-playground/src/server.ts` directly interpolated the `authError` value, sourced from the `error_description` query parameter, into an inline `<script>` tag. Impact An attacker could craft a malicious link that, when clicked by a victim, would: * Steal user chat message history - Access all LLM interactions stored in the user's session. * Access connected MCP Servers - Interact with any MCP servers connected to the victim's session (public or authenticated/private), potentially allowing the attacker to perform actions on the victim's behalf Mitigation: * PR:  https://github.com/cloudflare/agents/pull/841 https://github.com/cloudflare/agents/pull/841 * Agents-sdk users should upgrade to agents@0.3.10 * Developers using configureOAuthCallback with custom error handling in their own applications should ensure all user-controlled input is escaped before interpolation.
0.3.10
Affected by 0 other vulnerabilities.
Vulnerabilities fixed by this package (0)
Vulnerability Summary Aliases
This package is not known to fix vulnerabilities.

Date Actor Action Vulnerability Source VulnerableCode Version
2026-06-12T20:58:11.033661+00:00 GitLab Importer Affected by VCID-xr1u-jyxs-ekdm https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/agents/CVE-2026-1721.yml 38.6.0
2026-06-12T20:58:04.584165+00:00 GitLab Importer Affected by VCID-wfzh-76nh-subz https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/agents/GHSA-w5cr-2qhr-jqc5.yml 38.6.0
2026-06-12T20:55:36.337989+00:00 GitLab Importer Affected by VCID-hazd-1zmu-dubz https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/agents/CVE-2026-1664.yml 38.6.0