← Back to scan
File as GitHub Issue repo: cloudflare/agents

Push this scan report to cloudflare/agents

Click the green button below to open GitHub’s new-issue form, pre-filled with the report title, summary table, top findings, and an embedded score-card image. No authentication needed — you review on GitHub before submitting. Repobility is credited as the scanner.

Embedded score card image

This image will render at the top of the issue body. Hosted on Repobility, refreshes automatically after re-scans.

Repobility score card

Issue title

innerHTML XSS — template literal with server-supplied data

Curate findings to include

Pick exactly which findings appear in the issue body. By default the top 5 are included. Uncheck noise, check what matters.

Top 5 (default)
Severity Rule Title File:line
CRIT MINED035 [MINED035] Js New Function: new Function(...) compiles strings to functions. packages/codemode/src/iframe-runtime.ts:131
HIGH MINED004 [MINED004] Weak Crypto: MD5/SHA1/DES/RC4 used for security context (not just checksums). packages/shell/src/prompt.ts:34
HIGH MINED004 [MINED004] Weak Crypto: MD5/SHA1/DES/RC4 used for security context (not just checksums). packages/shell/src/backend.ts:151
HIGH MINED031 [MINED031] React Direct State Mutation: this.state.X = Y mutates without setState. React … openai-sdk/chess-app/src/chess.tsx:84
HIGH SEC040 [SEC040] innerHTML XSS — template literal with server-supplied data: Setting .innerHTML w… packages/agents/src/experimental/memory…:114
HIGH SEC040 [SEC040] innerHTML XSS — template literal with server-supplied data: Setting .innerHTML w… packages/agents/src/experimental/memory…:67
HIGH SEC040 [SEC040] innerHTML XSS — template literal with server-supplied data: Setting .innerHTML w… experimental/gadgets-subagents/src/serv…:285
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … packages/agents/src/chat/abort-registry…:49
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … examples/playground/src/demos/multi-age…:51
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … examples/playground/src/demos/multi-age…:134
HIGH SEC135 [SEC135] Auth/permission check missing on AI-generated endpoint: Mutating HTTP endpoint g… examples/mcp-worker-authenticated/src/a…:128
HIGH SEC085 [SEC085] JS: child_process.exec with non-literal: child_process.exec with user-derived in… experimental/gadgets-gatekeeper/src/ser…:87
HIGH SEC085 [SEC085] JS: child_process.exec with non-literal: child_process.exec with user-derived in… examples/playground/src/demos/core/sql-…:56
HIGH SEC085 [SEC085] JS: child_process.exec with non-literal: child_process.exec with user-derived in… examples/codemode/src/tools.ts:158
HIGH SEC100 [SEC100] CORS permissive Access-Control-Allow-Origin: *: Permissive CORS policy (`*` orig… examples/mcp-server/src/index.ts:33
HIGH SEC100 [SEC100] CORS permissive Access-Control-Allow-Origin: *: Permissive CORS policy (`*` orig… examples/cross-domain/src/server.ts:5
HIGH SEC100 [SEC100] CORS permissive Access-Control-Allow-Origin: *: Permissive CORS policy (`*` orig… examples/a2a/src/server.ts:201
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… examples/auth-agent/src/auth.ts:35
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… examples/assistant/src/auth.ts:35
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… examples/a2a/src/server.ts:192
HIGH MINED115 Action `changesets/action` pinned to mutable ref `@v1.7.0` .github/workflows/release.yml:56
HIGH MINED115 Action `actions/cache` pinned to mutable ref `@v5` .github/workflows/release.yml:43
HIGH MINED115 Action `actions/checkout` pinned to mutable ref `@v6` .github/workflows/release.yml:27
HIGH MINED115 Action `actions/checkout` pinned to mutable ref `@v6` .github/workflows/nightly.yml:55
HIGH MINED115 Action `actions/cache` pinned to mutable ref `@v5` .github/workflows/nightly.yml:33
HIGH MINED115 Action `actions/checkout` pinned to mutable ref `@v6` .github/workflows/nightly.yml:20
HIGH MINED115 Action `ask-bonk/ask-bonk/github` pinned to mutable ref `@main` .github/workflows/bonk.yml:27
HIGH MINED115 Action `actions/checkout` pinned to mutable ref `@v6` .github/workflows/bonk.yml:24
HIGH MINED115 Action `actions/cache` pinned to mutable ref `@v5` .github/workflows/pullrequest.yml:49
HIGH MINED115 Action `actions/cache` pinned to mutable ref `@v5` .github/workflows/pullrequest.yml:33
HIGH MINED115 Action `nrwl/nx-set-shas` pinned to mutable ref `@v5` .github/workflows/pullrequest.yml:29
HIGH MINED115 Action `actions/checkout` pinned to mutable ref `@v6` .github/workflows/pullrequest.yml:23
HIGH MINED115 Action `actions/cache` pinned to mutable ref `@v5` .github/workflows/semgrep.yml:51
HIGH MINED115 Action `actions/checkout` pinned to mutable ref `@v6` .github/workflows/semgrep.yml:47
HIGH SEC020 [SEC020] Secret Printed to Logs: Debug or diagnostic code appears to print a credential-b… examples/cross-domain/src/server.ts:61
HIGH SEC020 [SEC020] Secret Printed to Logs: Debug or diagnostic code appears to print a credential-b… examples/cross-domain/src/client.tsx:35
HIGH MINED113 Express POST /authorize has no auth examples/mcp-worker-authenticated/src/a…:128
MED SEC087 [SEC087] JS: weak Math.random for crypto: Math.random() is not cryptographically secure; … site/agents/src/components/agent-visual…:186
MED SEC134 [SEC134] AI scaffold leftover — Lorem ipsum / example.com / John Doe in code: Lorem ipsum… packages/agents/src/browser/shared.ts:244
MED SEC041 [SEC041] Tabnabbing — target="_blank" without rel="noopener noreferrer": <a target="_blan… examples/playground/src/demos/core/Conn…:133
MED SEC041 [SEC041] Tabnabbing — target="_blank" without rel="noopener noreferrer": <a target="_blan… examples/mcp-worker-authenticated/src/a…:97
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … examples/playground/src/demos/core/sql-…:17
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … examples/codemode/src/tools.ts:6
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … examples/a2a/src/server.ts:62
MED JRN002 Browser storage is used for session token material site/ai-playground/src/components/McpSe…:342
MED JRN002 Browser storage is used for session token material site/ai-playground/src/components/McpSe…:70
MED WEB003 Public web service has no security.txt .well-known/security.txt
MED AGT006 React interval is created without an explicit cleanup examples/playground/src/demos/core/Sche…:98
MED WEB015 Public web app has no Content Security Policy index.html
LOW AIC003 Duplicated implementation block across source files guides/human-in-the-loop/vite.config.ts:8
LOW AIC003 Duplicated implementation block across source files experimental/session-skills/src/server.…:41
LOW AIC003 Duplicated implementation block across source files experimental/session-skills/src/client.…:82
LOW AIC003 Duplicated implementation block across source files experimental/session-skills/src/client.…:81
LOW AIC003 Duplicated implementation block across source files experimental/session-skills/src/client.…:36
LOW AIC003 Duplicated implementation block across source files experimental/session-search/src/server.…:58
LOW AIC003 Duplicated implementation block across source files experimental/session-search/src/server.…:50
LOW AIC003 Duplicated implementation block across source files experimental/session-search/src/client.…:86
LOW AIC003 Duplicated implementation block across source files experimental/session-search/src/client.…:85
LOW AIC003 Duplicated implementation block across source files experimental/session-search/src/client.…:1
LOW AIC003 Duplicated implementation block across source files experimental/session-planetscale/src/cl…:440
LOW AIC003 Duplicated implementation block across source files experimental/session-planetscale/src/cl…:87
LOW AIC003 Duplicated implementation block across source files experimental/session-planetscale/src/cl…:86
LOW AIC003 Duplicated implementation block across source files experimental/session-planetscale/src/cl…:1
LOW AIC003 Duplicated implementation block across source files experimental/session-multichat/src/serv…:8
LOW AIC003 Duplicated implementation block across source files experimental/session-multichat/src/clie…:91
LOW AIC003 Duplicated implementation block across source files experimental/session-multichat/src/clie…:40
LOW AIC003 Duplicated implementation block across source files experimental/session-multichat/src/clie…:2
LOW AIC003 Duplicated implementation block across source files experimental/session-memory/src/client.…:86
LOW AIC003 Duplicated implementation block across source files experimental/session-memory/src/client.…:85
LOW AIC003 Duplicated implementation block across source files experimental/gadgets-subagents/src/serv…:240
LOW AIC003 Duplicated implementation block across source files experimental/gadgets-subagents/src/clie…:246
LOW AIC003 Duplicated implementation block across source files experimental/gadgets-subagents/src/clie…:7
LOW AIC003 Duplicated implementation block across source files experimental/gadgets-subagents/src/clie…:5
LOW AIC003 Duplicated implementation block across source files experimental/gadgets-sandbox/src/server…:313
LOW AIC003 Duplicated implementation block across source files experimental/gadgets-sandbox/src/client…:129
LOW AIC003 Duplicated implementation block across source files experimental/gadgets-sandbox/src/client…:2
LOW AIC003 Duplicated implementation block across source files experimental/gadgets-gatekeeper/src/cli…:2
LOW AIC003 Duplicated implementation block across source files experimental/gadgets-chat/src/client.tsx:441
LOW AIC003 Duplicated implementation block across source files experimental/forever-fibers/src/app.tsx:23
LOW WEB001 Public web app has no robots.txt robots.txt
LOW WEB008 Public docs site has no llms.txt llms.txt
LOW WEB011 Public web app has no humans.txt humans.txt
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… packages/agents/src/sub-routing.ts:182
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … packages/agents/src/chat/abort-registry…:27
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … packages/agents/src/browser/shared.ts:334
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … packages/agents/src/browser/cdp-session…:74
INFO MINED052 [MINED052] Ts Any Typed: : any used as type annotation. Defeats TypeScript type safety. openai-sdk/call-my-agent/src/client.tsx:16
INFO MINED054 [MINED054] Ts As Any: Casting to any (as any) bypasses type checking entirely. packages/voice/src/voice-input.ts:107
INFO MINED054 [MINED054] Ts As Any: Casting to any (as any) bypasses type checking entirely. packages/agents/src/experimental/memory…:82
INFO MINED054 [MINED054] Ts As Any: Casting to any (as any) bypasses type checking entirely. experimental/session-skills/src/server.…:79
INFO MINED058 [MINED058] React Dangerously Set Html: dangerouslySetInnerHTML bypasses Reacts JSX escapi… examples/playground/src/components/Code…:61
INFO MINED056 [MINED056] React Key As Index: key={index} in map() — re-renders the wrong elements on re… examples/playground/src/demos/core/Stat…:280
INFO MINED056 [MINED056] React Key As Index: key={index} in map() — re-renders the wrong elements on re… examples/playground/src/demos/core/Conn…:233
INFO MINED056 [MINED056] React Key As Index: key={index} in map() — re-renders the wrong elements on re… examples/playground/src/components/Code…:83
INFO MINED049 [MINED049] Print Pii: Logging password/token/email/ssn directly to stdout. examples/cross-domain/src/server.ts:61
INFO MINED049 [MINED049] Print Pii: Logging password/token/email/ssn directly to stdout. examples/cross-domain/src/client.tsx:35
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … examples/cross-domain/src/client.tsx:32
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … .github/version-script.ts:5
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … .github/resolve-workspace-versions.ts:35
Reset to top 5 99 findings available (after auto-suppression of test files + won't-fix)

Issue body (markdown)

## Code-quality scan: `cloudflare/agents`

**Score: 63/100 (B)**  ·  99 findings  ·  scanned 2026-05-24 01:20 UTC  ·  280,299 LOC

| Severity | Count |
|---|---|
| CRITICAL | 1 |
| HIGH | 36 |
| MEDIUM | 12 |
| LOW | 33 |

📊 [Full filterable report](https://repobility.com/scan/3b58000f-bd23-4495-babe-c5bc135de534/)  ·  ![scorecard](https://repobility.com/scan/3b58000f-bd23-4495-babe-c5bc135de534/report.png?v=1779585605-s2)

### Top findings

1. **CRITICAL** `MINED035` — Js New Function
   `packages/codemode/src/iframe-runtime.ts:131` · CWE-95 · ✓ Repobility
2. **HIGH** `MINED004` — Weak Crypto
   `packages/shell/src/prompt.ts:34` · CWE-327 · ✓ Repobility
3. **HIGH** `MINED004` — Weak Crypto
   `packages/shell/src/backend.ts:151` · CWE-327 · ✓ Repobility
4. **HIGH** `MINED031` — React Direct State Mutation
   `openai-sdk/chess-app/src/chess.tsx:84` · CWE-682 · ✓ Repobility
5. **HIGH** `SEC040` — innerHTML XSS — template literal with server-supplied data
   `packages/agents/src/experimental/memory/session/search.ts:114` · CWE-79 · A03:2021 Injection (XSS)

---

**Security note**: this issue is public. If any flagged finding is a real, exploitable vulnerability, please redirect to your `SECURITY.md` policy or open a [private security advisory](https://docs.github.com/en/code-security/security-advisories/guidance-on-reporting-and-writing-information-about-vulnerabilities/privately-reporting-a-security-vulnerability) instead. We're happy to close this and re-submit privately.

---

_Filed automatically. Close this issue if not useful — we won't refile. Full report: https://repobility.com/scan/3b58000f-bd23-4495-babe-c5bc135de534/_
Already filed
'cloudflare' is on the known-megaproject org list. These projects use auto-triage bots and established security disclosure channels. Unsolicited automated issues from Repobility would be perceived as AI-generated spam. For security findings, follow the project's SECURITY.md policy. For non-security findings, open a focused PR or community discussion instead.
Megaproject â high spam risk
Could not determine 'cloudflare/agents' star count (GitHub API rate-limited or unreachable). When in doubt about repo size, prefer opening a focused PR or a discussion rather than an issue.
Already filed
53/125 findings (42%) on this scan are already flagged as test-file, won't-fix, or suppressed. The scan is too noisy to file as a single issue. Curate down to specific actionable findings, or address the FP source first.

The button opens GitHubâs new-issue page in a new tab. You will see the title + body pre-filled â review, edit if you want, then click GitHubâs "Submit new issue" button. Repobility never posts anything on your behalf.

For real security findings on big repos: use the project's SECURITY.md or private advisory flow instead of a public issue.