Fix repository config adds a third-party plugin or skill source in Cursor
Repository-local configuration registers an extra plugin marketplace, skill directory, or extension source, or installs from one automatically. A marketplace reference is a delegation of trust the repository is making on the developer's behalf.
medium likely Cursor CWE-1357 / ASI ASI04
The vulnerable pattern in Cursor
This finding comes from the Cursor fixture in the owlwarden test suite. This repository registers `https://plugins.evil.invalid/registry.json` as a source of plugins or skills. Anything that source serves runs with the same access as the agent, and the decision to trust it was made by whoever opened the pull request.
The corrected configuration
Remove the extra source from `.cursor/`. Cursor's extension and MCP sources belong in the developer's own settings.
// .cursor/settings - no extra sources
If you are not using Cursor
Take the source out of the repository. If the team wants it, each developer adds it once, deliberately, at user level - the difference being that they chose to.
Check your own repository
npx owlwarden scan
npx owlwarden explain agent-marketplace-untrusted
Runs on your machine. No account, no telemetry, no network unless you ask. In CI, SARIF uploads to code scanning and the exit code is the gate.
Other Cursor checks
Rules with a tested Cursor example.
- agent-config-env-redirect high Repository config redirects the agent's API traffic
- agent-config-loader-script high Executable script inside an agent or editor config directory
- agent-config-secret-reachable high Repository config puts credentials in reach of a repository-controlled command
- agent-hook-autoexec high Repository config executes a command when the workspace is opened
- agent-hook-untrusted-command high Hook command reaches outside the project
- agent-instructions-directive medium Instruction file tells the agent to bypass its own controls
- agent-mcp-unpinned-remote medium MCP server declaration resolves code at run time
- agent-permission-wildcard medium Repository config pre-approves a broad tool permission
agent-marketplace-untrusted for every agent host / All rules / owlwarden