← MCP server and skill grades

pro-workflow

rohitg00/pro-workflow

D
Type
MCP server
Scanned
Nov 17, 2026
Version
86d5f2770bd8
Files read
224

Pro Workflow is a workflow plugin and MCP server for AI coding agents that saves past corrections and research wikis in a local SQLite database while guiding sessions with hooks, skills, and subagents. Its biggest risks are that a prompt-injected agent can use the bundled optimizer tool to read and overwrite arbitrary files on your computer, run unprompted code or file writes through broad default plugin permissions, or trigger command injection through unsanitized wiki titles.

What it can reach

Files
Reads and writes a SQLite database, research wikis, council transcripts, and logs under ~/.pro-workflow/ and .claude/wikis/, writes hook state under the OS temp directory, inspects edited source files, and rewrites SKILL.md files during optimization.
Network
Sends HTTPS requests to configured AI and embedding providers (Anthropic, OpenAI, OpenRouter, Fireworks, Voyage, TypeSafe Jev, or a custom URL), optional local HTTP requests to Laya on 127.0.0.1:8791, and search requests to DuckDuckGo Lite, arXiv, and the GitHub API.
Shell commands
Runs Node.js and Bash scripts across 22 hook events (including git status, git worktree list, and init_wiki.sh), spawns bundled task scripts from the providers MCP server, and pre-approves several test, lint, and git commands in .claude-plugin/settings.json.
Secrets
Receives optional PRO_WORKFLOW_* and CLAUDE_PLUGIN_OPTION_* API keys and GitHub tokens from plugin settings or environment variables to authenticate provider calls, and appends PRO_WORKFLOW_PROJECT_TYPE to CLAUDE_ENV_FILE when changing directories.

Findings

3 high2 medium4 low
  1. HighArbitrary file read, external upload, and file overwrite via --skill-path in the optimizer MCP task

    scripts/optimize-skill.js:96

    The bundled providers MCP server exposes run_provider_task, which forwards arguments directly to scripts/optimize-skill.js. Because --skill-path accepts any filesystem path without checking that it points to a SKILL.md file inside a skills folder (and --slug is also not checked for .. traversal), a prompt-injected agent can point the optimizer at sensitive files such as .env, SSH keys, or shell startup files. src/optimizer/trainer.ts then reads that file outside Claude Code's Read deny rules, sends its contents to the configured external LLM API, stores copies in ~/.pro-workflow/data.db, and (especially when --accept-threshold is negative) overwrites the target file on disk, bypassing Edit/Write prompts and safe-mode directory lockdowns.

    Fix: Reject --skill-path when invoked through run_provider_task (or remove it), validate --slug against /^[a-z0-9][a-z0-9-]*$/, verify with fs.realpathSync that the target path stays inside an allowed skills directory and ends with /SKILL.md, and require --accept-threshold >= 0.

  2. HighOver-broad default Bash allow rules in plugin settings permit code execution and arbitrary file writes

    .claude-plugin/settings.json:20

    The plugin ships .claude-plugin/settings.json with wildcard allow rules including Bash(go test *), Bash(pytest *), Bash(npm test), Bash(git diff *), Bash(git log *), and Bash(git worktree *). If a user inspects an untrusted repository or hits prompt injection in manual mode, pre-allowing go test * permits arbitrary command execution via go test -exec, pytest * and npm test execute untrusted repository code without prompting, and git diff * / git log * allow overwriting arbitrary files via --output=<file> (a risk the project's own agents/permission-analyst.md explicitly warns against).

    Fix: Remove .claude-plugin/settings.json so users opt into command allowlists per project, or limit plugin-wide defaults strictly to safe read-only commands without wildcard arguments such as Bash(git status).

  3. HighUnsanitized wiki title interpolated into sed allows command and file-write injection

    skills/wiki-builder/scripts/init_wiki.sh:82

    While init_wiki.sh strictly validates slug, scope, and flavor, it interpolates --title directly into a sed replacement command delimited by |. If an agent initializes a wiki using a crafted title from an untrusted paper, repo, or webpage containing |, the input breaks out of the sed replacement into sed commands. On Linux with GNU sed, the e flag executes arbitrary shell commands during template rendering; on both macOS and Linux, the w flag writes to arbitrary file paths and embedded newlines can inject settings such as auto_research into wiki.config.md.

    Fix: Render wiki templates in Node.js with literal string replacement instead of sed, and strip newlines and control characters from the title.

  4. MediumUnvalidated javascript: and data: URLs allow XSS in exported wiki HTML viewers

    skills/wiki-viewer/scripts/render.js:66

    wiki-research-loop automatically extracts sentences and URLs from public GitHub repository descriptions, arXiv abstracts, and DuckDuckGo snippets into wiki markdown pages. When wiki-viewer renders a wiki to a single-file HTML artifact for local viewing or S3 sharing, renderMarkdown and sourcesTable escape HTML characters in URLs but never check the URL scheme. A [link](javascript:...) in scraped text or a javascript:/data: URL in sources becomes a clickable executable link in viewer.html.

    Fix: Validate every link and source URL before rendering href attributes, allowing only https://, http://, # fragments, and safe relative .md paths while rejecting javascript:, data:, and vbscript: URLs.

  5. MediumStop hook auto-saves [LEARN] blocks from assistant output to SQLite without user approval

    scripts/learn-capture.js:43

    Although README.md, skills/learn-rule/SKILL.md, and config.json (self_correction.require_approval: true) state that learning rules are saved only after user approval, scripts/learn-capture.js runs on every Stop event, ignores config.json, and immediately writes any [LEARN] Category: Rule pattern found in last_assistant_message into ~/.pro-workflow/data.db. This saves proposed rules before the user can reject them and allows untrusted files, issues, or webpages that the assistant quotes or summarizes to plant persistent rules into the database (globally if CLAUDE_PROJECT_DIR is unset), which later feed into /replay and skill-optimizer.

    Fix: Check self_correction.require_approval from config.json in learn-capture.js so rules are not auto-persisted without confirmation, ignore [LEARN] text inside code blocks or quotes, and fall back to input.cwd when CLAUDE_PROJECT_DIR is unset.

  6. LowAuto-triggered bug-capture skill instructs the agent to publish GitHub issues without user review

    skills/bug-capture/SKILL.md:55

    The bug-capture skill omits user-invocable: true so the agent can trigger it automatically whenever a user mentions a bug conversationally, and Step 5 explicitly instructs the agent to run gh issue create without asking the user to review the draft. This can publish internal bug details or prompt-injected content to a public or upstream GitHub repository when the user only intended to discuss a defect locally.

    Fix: Mark bug-capture as user-invocable: true (or disable-model-invocation: true) and require the agent to show the target repository and draft issue to the user for approval before calling gh issue create.

  7. LowHook state and safe-mode controls use a predictable shared temp directory without restricted permissions

    scripts/safe-mode-guard.js:29

    safe-mode-guard.js, permission-denied.js, and several other hook scripts store state and logs under path.join(os.tmpdir(), 'pro-workflow') with default directory and file permissions. On multi-user Linux systems where os.tmpdir() is /tmp, another local user can pre-create /tmp/pro-workflow to tamper with safe-mode-<hash>.json (disabling cautious or lockdown protections), plant symlinks on predictable filenames, or read denied command summaries from permission-denials.json.

    Fix: Store runtime hook state and logs inside ~/.pro-workflow/runtime created with mode 0o700 and write files with mode 0o600 instead of using the shared OS temp directory.

  8. LowSecret scanner checks only the first regex match per pattern and misses later secrets

    scripts/secret-scan.js:42

    In scripts/secret-scan.js, each regex in PATTERNS lacks the global flag, so content.match(re) inspects only the first match of each secret type in an edited or written file. If an allowlisted placeholder or process.env fallback appears near the top of a file, scan() continues to the next pattern and misses a real hardcoded API key of the same type later in the file.

    Fix: Add the global flag to each secret regex and iterate over all matches with content.matchAll(re) so an allowlisted example earlier in the file does not mask a real secret below it.

  9. LowExample MCP config uses unpinned @latest and a non-standard @anthropic/mcp-playwright package name

    mcp-config.example.json:11

    mcp-config.example.json (and references/cross-agent-workflows.md) recommends npx -y @upstash/context7-mcp@latest (unpinned runtime download) and npx -y @anthropic/mcp-playwright. Anthropic's official npm scope is @anthropic-ai and Playwright's official MCP package is @playwright/mcp, so users who copy this example risk running unpinned code or a third-party package under the @anthropic scope.

    Fix: Replace @anthropic/mcp-playwright with the verified official package (@playwright/mcp) and pin exact package versions when using npx -y.