ai-sdk-core

clawhub:ai-sdk-core

View source
B
75/100

First Seen

Feb 18, 2026

Last Scanned

Feb 22, 2026

Findings

5

Score

75/100

CRITICAL 1
LOW 4

Findings (5)

CRITICAL
Fake system prompt
L136

Detects content pretending to be a system prompt

system instruction:
FIX

Remove encoded or obfuscated directives (base64, ROT13, unicode escapes, hex-encoded text). All text should be in plaintext and human-readable.

FP?

Likely FP if the encoded content is legitimate data (e.g., a base64-encoded image, a hex-encoded binary hash) rather than concealed directives.

LOW
External API response used without validation
L44

Detects patterns where external API responses are used directly without validation or sanitization

API
import { generateText, Output + without tool or use
FIX

Validate and sanitize all data received from external APIs before using it in tool operations or agent prompts. Implement schema validation and treat API responses as untrusted input.

FP?

Likely FP if the match is a truncated table cell or documentation fragment that mentions API responses in a descriptive context, not actual unvalidated data processing.

LOW
Auto-confirm flag bypassing user verification
L165

Detects -y, --yes, or --auto-approve flags in MCP/skill install commands that bypass user confirmation

'-y'
FIX

Remove the -y/--yes auto-confirm flag from MCP server launch arguments. This flag bypasses user confirmation prompts and allows unattended execution of potentially dangerous operations.

FP?

Likely FP if the matched text is an isolated flag (-y or --yes) in documentation describing command-line options, not in an actual MCP config.

LOW
Global package installation
L198

Detects global installation of packages which affects the host system

npm install -g m
FIX

Replace npm install -g with a local install (npm install --save-dev) or use npx with a pinned version. Global installs modify the system and risk supply chain attacks.

FP?

Likely FP if the global install is for a well-known CLI tool (e.g., typescript, eslint) in setup documentation, though the supply chain risk remains real.

LOW
npx auto-install without confirmation
L201

Detects npx with -y flag that bypasses user confirmation for package installation

npx mcp-to-ai-sdk generate stdio 'npx -y
FIX

Replace npx -y with an explicit npm install step that pins the package to a specific version, then run it. Remove the -y flag to require user confirmation.

FP?

Likely FP if the npx command runs a well-known, trusted tool (e.g., create-react-app) in documentation context with no version pinning concern.