The skill is vulnerable to command injection
Claims to do
Update Provider Model IDs: This skill covers adding new model IDs and removing obsolete ones across the AI SDK codebase. Each workflow uses search to discover all locations that need changes.
Actually does
This skill instructs the user to use `grep -r` to search for model IDs within `.ts`, `.mdx`, `.md`, and `.snap` files across `packages/`, `content/`, and `examples/` directories. It then guides the user to manually modify these files to add or remove model IDs from type definitions, documentation, examples, and tests. Finally, it instructs the user to run `pnpm test` for affected packages.
npx skills add https://github.com/vercel/ai --skill update-provider-modelsThe skill constructs and executes `grep` and `pnpm` shell commands using user-provided model IDs and provider names. Lack of input sanitization allows for command injection, enabling an attacker to execute arbitrary commands on the host system.
grep -r "'<similar-model-id>'" packages/... pnpm --filter @ai-sdk/<provider> test
The skill modifies TypeScript (`.ts`) and Markdown/MDX (`.mdx`) files by inserting or replacing user-provided model IDs. If a malicious model ID containing code (e.g., JavaScript) or harmful Markdown/HTML is provided, it could lead to code execution during build or XSS in rendered documentation.
export type SomeModelId = ... | 'new-model-id' // ← add in sorted position
Update code snippets like `const model = provider('old-model')`The skill creates new example files with names derived from the model ID (e.g., `<model-kebab>.ts`) and can delete dedicated example files. If the model ID contains path traversal sequences (e.g., `../../`), an attacker could create or delete files outside the intended directories.
examples/ai-functions/src/generate-text/<provider>/<model-kebab>.ts Delete dedicated example files only if no unique feature is demonstrated
[](https://mondoo.com/ai-agent-security/skills/github/vercel/ai/update-provider-models)<a href="https://mondoo.com/ai-agent-security/skills/github/vercel/ai/update-provider-models"><img src="https://mondoo.com/ai-agent-security/api/badge/github/vercel/ai/update-provider-models.svg" alt="Mondoo Skill Check" /></a>https://mondoo.com/ai-agent-security/api/badge/github/vercel/ai/update-provider-models.svgSkills can read files, run commands, and access credentials. Mondoo helps organizations manage the security risks of AI agent skills across their entire fleet.