Staging Environment: Content and features may be unstable or change without notice.
Search for packages
Package details: pkg:npm/agents@0.3.7
purl pkg:npm/agents@0.3.7
Next non-vulnerable version 0.3.10
Latest non-vulnerable version 0.3.10
Risk 3.1
Vulnerabilities affecting this package (2)
Vulnerability Summary Fixed by
VCID-43pr-du6k-d3hr
Aliases:
GHSA-w5cr-2qhr-jqc5
Cloudflare Agents has a Reflected Cross-Site Scripting (XSS) vulnerability in AI Playground site 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.
0.3.10
Affected by 0 other vulnerabilities.
VCID-83qu-da4r-pyhm
Aliases:
CVE-2026-1721
GHSA-cvhv-6xm6-c3v4
Cloudflare Agents is Vulnerable to Reflected Cross-Site Scripting in the AI Playground's OAuth callback handler 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 (1)
Vulnerability Summary Aliases
VCID-gm15-y4sr-xygx Cloudflare Agents SDK has Insecure Direct Object Reference (IDOR) via Header-Based Email Routing An Insecure Direct Object Reference (CWE-639) 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. CVE-2026-1664
GHSA-r7x9-8ph7-w8cg

Date Actor Action Vulnerability Source VulnerableCode Version
2026-06-06T06:52:15.293007+00:00 GitLab Importer Affected by VCID-83qu-da4r-pyhm https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/agents/CVE-2026-1721.yml 38.6.0
2026-06-06T06:52:08.151811+00:00 GitLab Importer Affected by VCID-43pr-du6k-d3hr https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/agents/GHSA-w5cr-2qhr-jqc5.yml 38.6.0
2026-06-05T21:58:07.919164+00:00 GHSA Importer Fixing VCID-gm15-y4sr-xygx https://github.com/advisories/GHSA-r7x9-8ph7-w8cg 38.6.0
2026-06-04T16:56:04.595239+00:00 GithubOSV Importer Fixing VCID-gm15-y4sr-xygx https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/02/GHSA-r7x9-8ph7-w8cg/GHSA-r7x9-8ph7-w8cg.json 38.6.0
2026-06-02T04:49:56.421323+00:00 GitLab Importer Fixing VCID-gm15-y4sr-xygx https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/agents/CVE-2026-1664.yml 38.6.0