Description
The ai-sdlc plugin MCP server through 0.31.2 contains an OS command injection vulnerability that allows attackers to execute commands by supplying shell metacharacters in the repo argument. The unvalidated repo value is interpolated into gh issue view or gh pr view commands run via execSync(), letting prompt-injected agents execute commands as the MCP server user.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
ai-sdlc-framework ai-sdlc
Default version status: unaffected
0 to ≤ 0.31.2affected
pkg:npm/%40ai-sdlc/plugin-mcp-serverReferences
- https://github.com/ai-sdlc-framework/ai-sdlc/issues/1970 ↗
- https://github.com/ai-sdlc-framework/ai-sdlc ↗
- https://github.com/ai-sdlc-framework/ai-sdlc/commit/717d7ecf068b714f65955e50fcf5cb4f9a0b5070 ↗
- https://github.com/ai-sdlc-framework/ai-sdlc/blob/ai-sdlc-plugin-v0.31.2/ai-sdlc-plugin/mcp-server/src/tools/check-issue.ts#L15-L19 ↗
- https://www.vulncheck.com/advisories/ai-sdlc-mcp-server-through-0.31.2-command-injection-via-check-issue-and-check-pr-status ↗