What We Found Scanning 160 npm MCP and Agent Skill Packages: The Bug Classes Worth Gating On
We pulled 160 published npm packages from the AI tooling ecosystem (MCP servers, agent skills and plugins, Next.js/Supabase/Stripe AI packages, and LLM agent tooling), 7,062 source and config files in total, and ran a st
We pulled 160 published npm packages from the AI tooling ecosystem (MCP servers, agent skills and plugins, Next.js/Supabase/Stripe AI packages, and LLM agent tooling), 7,062 source and config files in total, and ran a static AST scanner over all of them. 20.6% of the packages had at least one real vulnerability or hardening flaw. This post covers which bug classes showed up and which ones are worth gating your own agent on.
The numbers
- 160 packages, 7,062 files scanned
- 597 findings across 33 packages with issues (20.6%)
- 167 Critical and 82 High severity findings, 16 packages with a Critical or High flaw
- 310 hardcoded credentials (CWE-798)
- 162 SQL injection sinks (CWE-89)
- 26 IDOR cases (CWE-639), 17 path traversal cases (CWE-22), 6 SSRF cases (CWE-918)
Full methodology and per-cohort results are in the benchmark file: https://github.com/avivgerz-hue/vibe-shield/blob/main/BENCHMARK-2026.md
Bug class 1: hardcoded credentials
By far the most common finding. High-entropy values assigned to credential-shaped names: API keys in example configs that were never meant to ship, tokens left in fixtures, default passwords in setup scripts. Agents make this worse because they happily paste a working key into a file to make a demo run, then report success.
Bug class 2: string-built SQL
Dynamic strings passed into ORM raw-SQL calls, and request data used as a table, column or ORDER BY identifier. Models write this constantly because it is the shortest path to working code, and the tests pass because test input is never hostile.
Bug class 3: ownership taken from the request
Record ownership read from the request body instead of the session. The route works perfectly in a happy-path demo, which is exactly why nobody notices that user A can read user B's data by changing an id.
Bug class 4: paths and URLs built from request data
Filesystem paths and outbound request URLs assembled from caller input. Easy to write, easy to miss in review, and a classic path traversal or SSRF.
What to gate on
None of these need a model to catch. They are patterns in the syntax tree. So instead of asking the agent whether it is done, run a scanner and make its exit code the answer:
npx -y @vibefoundry/vibe-shield@latest scan .
It has 92 rules mapped to CWE and OWASP, runs fully local, needs no API key, and is MIT licensed. There is also an MCP mode so the agent can call it mid-task and fix findings before it opens a PR:
npx -y @vibefoundry/vibe-shield@latest mcp
Source: https://github.com/avivgerz-hue/vibe-shield
If you maintain an MCP server or skill pack, scan it before you publish. And if you think a rule is wrong or missing, open an issue with a sample and I will look at it.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.