← Back to scan
File as GitHub Issue repo: vercel/ai

Push this scan report to vercel/ai

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

Workflow uses `secrets.SLACK_PR_REVIEW_REQUEST_URL` on a `pull_request` trigger

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. examples/next-workflow/workflow/agent-c…:57
CRIT MINED024 [MINED024] Js Eval Usage: eval() executes arbitrary code. Code injection risk. examples/ai-functions/src/generate-text…:42
CRIT MINED024 [MINED024] Js Eval Usage: eval() executes arbitrary code. Code injection risk. examples/ai-functions/src/generate-text…:21
CRIT MINED024 [MINED024] Js Eval Usage: eval() executes arbitrary code. Code injection risk. examples/ai-functions/src/generate-text…:40
CRIT MINED116 [MINED116] Workflow uses `secrets.SLACK_PR_REVIEW_REQUEST_URL` on a `pull_request` trigge… .github/workflows/slack-team-review-not…:34
CRIT MINED116 [MINED116] Workflow uses `secrets.TURBO_TOKEN` on a `pull_request` trigger: This workflow… .github/workflows/ci.yml:225
CRIT MINED116 [MINED116] Workflow uses `secrets.GR2M_PR_REVIEW_TOKEN` on a `pull_request` trigger: This… .github/workflows/auto-merge-release-pr…:29
HIGH SEC085 [SEC085] JS: child_process.exec with non-literal: child_process.exec with user-derived in… examples/mcp/src/mcp-with-auth/client.ts:48
HIGH SEC135 [SEC135] Auth/permission check missing on AI-generated endpoint: Mutating HTTP endpoint g… examples/mcp/src/elicitation-multi-step…:144
HIGH SEC135 [SEC135] Auth/permission check missing on AI-generated endpoint: Mutating HTTP endpoint g… examples/express/src/server.ts:27
HIGH SEC135 [SEC135] Auth/permission check missing on AI-generated endpoint: Mutating HTTP endpoint g… examples/angular/src/server.ts:12
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… examples/ai-e2e-next/app/api/download-c…:2
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… examples/ai-e2e-next/app/api/download-c…:2
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… examples/ai-e2e-next/app/api/chat/mcp-w…:34
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … examples/ai-e2e-next/app/stream-object/…:18
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … examples/ai-e2e-next/app/chat/upload-fi…:117
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … examples/ai-e2e-next/app/api/chat/mcp-e…:45
HIGH COMP001 [COMP001] High cognitive complexity: Function `stream_text` has cognitive complexity 61 (… examples/next-fastapi/api/index.py:31
HIGH SEC020 [SEC020] Secret Printed to Logs: Debug or diagnostic code appears to print a credential-b… examples/ai-functions/src/agent/openai/…:18
HIGH MINED113 [MINED113] Express POST /api/notify has no auth: Express route POST /api/notify declared … packages/devtools/src/viewer/server.ts:232
HIGH MINED113 [MINED113] Express POST /api/clear has no auth: Express route POST /api/clear declared wi… packages/devtools/src/viewer/server.ts:164
HIGH MINED112 [MINED112] FastAPI POST /api/chat has no auth: Handler `handle_chat_data` is registered w… examples/next-fastapi/api/index.py:129
MED SEC034 [SEC034] Log Injection / Log Forging — unsanitized user input in log: User input is logge… examples/ai-functions/src/generate-text…:12
MED SEC034 [SEC034] Log Injection / Log Forging — unsanitized user input in log: User input is logge… examples/ai-functions/src/generate-text…:27
MED SEC125 [SEC125] AI placeholder credential left in source (your-api-key-here style): AI coding as… examples/ai-functions/src/generate-text…:38
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … examples/ai-functions/src/generate-text…:42
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … examples/ai-functions/src/generate-text…:21
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … examples/ai-functions/src/generate-text…:40
MED SEC087 [SEC087] JS: weak Math.random for crypto: Math.random() is not cryptographically secure; … examples/ai-functions/src/agent/openai/…:18
MED SEC087 [SEC087] JS: weak Math.random for crypto: Math.random() is not cryptographically secure; … examples/ai-functions/src/agent/openai/…:18
MED SEC087 [SEC087] JS: weak Math.random for crypto: Math.random() is not cryptographically secure; … examples/ai-e2e-next/app/chat/tools/pag…:33
MED SEC041 [SEC041] Tabnabbing — target="_blank" without rel="noopener noreferrer": <a target="_blan… examples/ai-e2e-next/app/chat/mcp-with-…:15
MED SEC041 [SEC041] Tabnabbing — target="_blank" without rel="noopener noreferrer": <a target="_blan… examples/ai-e2e-next/app/chat/mcp-apps/…:54
MED SEC041 [SEC041] Tabnabbing — target="_blank" without rel="noopener noreferrer": <a target="_blan… examples/ai-e2e-next/app/chat/custom-so…:31
MED SEC134 [SEC134] AI scaffold leftover — Lorem ipsum / example.com / John Doe in code: Lorem ipsum… examples/ai-functions/src/generate-vide…:21
MED SEC134 [SEC134] AI scaffold leftover — Lorem ipsum / example.com / John Doe in code: Lorem ipsum… examples/ai-functions/src/generate-vide…:21
MED SEC134 [SEC134] AI scaffold leftover — Lorem ipsum / example.com / John Doe in code: Lorem ipsum… examples/ai-e2e-next/app/api/chat/custo…:22
MED COMP001 [COMP001] High cognitive complexity: Function `convert_to_openai_messages` has cognitive … examples/next-fastapi/api/utils/prompt.…:14
MED AUC001 [AUC001] No Repobility access matrix policy found: The repository uses web/API frameworks…
MED WEB003 Public web service has no security.txt .well-known/security.txt
MED WEB015 Public web app has no Content Security Policy index.html
MED CORE_NO_README No README file found
LOW AIC003 Duplicated implementation block across source files packages/assemblyai/tsup.config.ts:1
LOW AIC003 Duplicated implementation block across source files packages/anthropic/tsup.config.ts:1
LOW AIC003 Duplicated implementation block across source files packages/anthropic/src/tool/web-search_…:8
LOW AIC003 Duplicated implementation block across source files packages/anthropic/src/tool/web-fetch-2…:19
LOW AIC003 Duplicated implementation block across source files packages/anthropic/src/tool/text-editor…:15
LOW AIC003 Duplicated implementation block across source files packages/anthropic/src/tool/text-editor…:8
LOW AIC003 Duplicated implementation block across source files packages/anthropic/src/tool/computer_20…:8
LOW AIC003 Duplicated implementation block across source files packages/anthropic/src/tool/code-execut…:10
LOW AIC003 Duplicated implementation block across source files packages/anthropic/src/tool/code-execut…:8
LOW AIC003 Duplicated implementation block across source files packages/anthropic/src/tool/code-execut…:10
LOW AIC003 Duplicated implementation block across source files packages/anthropic/src/tool/bash_202501…:66
LOW AIC003 Duplicated implementation block across source files packages/anthropic/src/anthropic-provid…:106
LOW AIC003 Duplicated implementation block across source files packages/anthropic-aws/tsup.config.ts:1
LOW AIC003 Duplicated implementation block across source files packages/anthropic-aws/src/anthropic-aw…:85
LOW AIC003 Duplicated implementation block across source files packages/anthropic-aws/src/anthropic-aw…:56
LOW AIC003 Duplicated implementation block across source files packages/anthropic-aws/src/anthropic-aw…:21
LOW AIC003 Duplicated implementation block across source files packages/amazon-bedrock/src/mantle/bedr…:86
LOW AIC003 Duplicated implementation block across source files packages/amazon-bedrock/src/mantle/bedr…:60
LOW AIC003 Duplicated implementation block across source files packages/ai/src/generate-text/stream-te…:268
LOW AIC003 Duplicated implementation block across source files packages/ai/src/generate-text/stream-te…:241
LOW AIC003 Duplicated implementation block across source files packages/ai/src/generate-text/step-resu…:69
LOW AIC003 Duplicated implementation block across source files packages/ai/src/generate-text/generate-…:127
LOW AIC003 Duplicated implementation block across source files packages/anthropic/src/tool/bash_202501…:37
LOW AIC003 Duplicated implementation block across source files packages/anthropic/src/anthropic-provid…:102
LOW AIC003 Duplicated implementation block across source files packages/amazon-bedrock/src/anthropic/a…:76
LOW AIC003 Duplicated implementation block across source files packages/amazon-bedrock/src/amazon-bedr…:205
LOW AIC003 Duplicated implementation block across source files packages/ai/src/ui/last-assistant-messa…:3
LOW AIC003 Duplicated implementation block across source files packages/ai/src/registry/provider-regis…:131
LOW AIC003 Duplicated implementation block across source files packages/ai/src/generate-object/stream-…:81
LOW AIC003 Duplicated implementation block across source files packages/ai/src/embed/embed.ts:48
LOW WEB001 Public web app has no robots.txt robots.txt
LOW WEB002 Public web app has no sitemap sitemap.xml
LOW WEB011 Public web app has no humans.txt humans.txt
INFO MINED058 [MINED058] React Dangerously Set Html: dangerouslySetInnerHTML bypasses Reacts JSX escapi… examples/next-openai-kasada-bot-protect…:7
INFO MINED053 [MINED053] Placeholder Default Username: [email protected] / [email protected] / admin/admin… examples/mcp/src/http/server.ts:36
INFO MINED056 [MINED056] React Key As Index: key={index} in map() — re-renders the wrong elements on re… examples/ai-e2e-next/app/chat/anthropic…:30
INFO MINED056 [MINED056] React Key As Index: key={index} in map() — re-renders the wrong elements on re… examples/ai-e2e-next/app/chat/anthropic…:179
INFO MINED056 [MINED056] React Key As Index: key={index} in map() — re-renders the wrong elements on re… examples/ai-e2e-next/app/chat/anthropic…:28
INFO MINED049 [MINED049] Print Pii: Logging password/token/email/ssn directly to stdout. examples/ai-functions/src/agent/openai/…:30
INFO MINED049 [MINED049] Print Pii: Logging password/token/email/ssn directly to stdout. examples/ai-functions/src/agent/openai/…:25
INFO MINED049 [MINED049] Print Pii: Logging password/token/email/ssn directly to stdout. examples/ai-e2e-next/app/api/files/rout…:42
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … examples/ai-functions/src/generate-text…:10
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … examples/ai-e2e-next/app/api/chat/xai-i…:36
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … examples/ai-e2e-next/app/api/chat/human…:70
INFO MINED052 [MINED052] Ts Any Typed: : any used as type annotation. Defeats TypeScript type safety. examples/ai-e2e-next/app/api/chat/mcp-e…:32
INFO MINED052 [MINED052] Ts Any Typed: : any used as type annotation. Defeats TypeScript type safety. examples/ai-e2e-next/agent/openai/shell…:63
INFO MINED052 [MINED052] Ts Any Typed: : any used as type annotation. Defeats TypeScript type safety. examples/ai-e2e-next/agent/openai/shell…:48
INFO MINED054 [MINED054] Ts As Any: Casting to any (as any) bypasses type checking entirely. examples/ai-e2e-next/app/api/chat/mcp-w…:25
INFO MINED054 [MINED054] Ts As Any: Casting to any (as any) bypasses type checking entirely. examples/ai-e2e-next/agent/anthropic/pr…:27
INFO MINED054 [MINED054] Ts As Any: Casting to any (as any) bypasses type checking entirely. examples/ai-e2e-next/agent/anthropic/co…:25
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … .github/workflows/actions/verify-change…:25
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … .github/scripts/notify-released/index.m…:16
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … .github/scripts/cleanup-examples-change…:22
Reset to top 5 95 findings available (after auto-suppression of test files + won't-fix)

Issue body (markdown)

## Code-quality scan: `vercel/ai`

**Score: 74/100 (B+)**  ·  95 findings  ·  scanned 2026-05-31 01:27 UTC  ·  210,747 LOC

| Severity | Count |
|---|---|
| CRITICAL | 7 |
| HIGH | 15 |
| MEDIUM | 20 |
| LOW | 33 |

📊 [Full filterable report](https://repobility.com/scan/9a1ae60a-ba5d-47ea-833b-bdc487805b97/)  ·  ![scorecard](https://repobility.com/scan/9a1ae60a-ba5d-47ea-833b-bdc487805b97/report.png?v=1780190831-s2)

### Top findings

1. **CRITICAL** `MINED035` — Js New Function
   `examples/next-workflow/workflow/agent-chat.ts:57` · CWE-95 · ✓ Repobility
2. **CRITICAL** `MINED024` — Js Eval Usage
   `examples/ai-functions/src/generate-text/openai/tool-call-with-tools-context.ts:42` · CWE-95 · ✓ Repobility
3. **CRITICAL** `MINED024` — Js Eval Usage
   `examples/ai-functions/src/generate-text/openai/reasoning-tools.ts:21` · CWE-95 · ✓ Repobility
4. **CRITICAL** `MINED024` — Js Eval Usage
   `examples/ai-functions/src/generate-text/amazon-bedrock/anthropic-multiple-tools.ts:40` · CWE-95 · ✓ Repobility
5. **CRITICAL** `MINED116` — Workflow uses `secrets.SLACK_PR_REVIEW_REQUEST_URL` on a `pull_request` trigger
   `.github/workflows/slack-team-review-notification.yml:34` · ✓ Repobility

---

_Filed automatically. Close this issue if not useful — we won't refile. Full report: https://repobility.com/scan/9a1ae60a-ba5d-47ea-833b-bdc487805b97/_
Already filed
'vercel' 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.
Already filed
This repo publishes a SECURITY.md policy and the scan contains 11 Critical/High security finding(s). Public issue filing would violate coordinated disclosure. Submit privately via the project's security reporting channel.
Megaproject â high spam risk
Could not determine 'vercel/ai' 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
63/133 findings (47%) 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.