Skip to content

feat: TypeScript mcp-command-injection and mcp-ssrf (#3873) - #4052

Open
Tito0015 wants to merge 1 commit into
semgrep:developfrom
Tito0015:add-mcp-typescript-3873
Open

feat: TypeScript mcp-command-injection and mcp-ssrf (#3873)#4052
Tito0015 wants to merge 1 commit into
semgrep:developfrom
Tito0015:add-mcp-typescript-3873

Conversation

@Tito0015

@Tito0015 Tito0015 commented Sep 4, 2026

Copy link
Copy Markdown

Summary

  • Adds taint-mode TypeScript rules for MCP command injection (CWE-78) and SSRF (CWE-918)
  • Covers setRequestHandler, server.tool, and server.registerTool callback shapes
  • Includes zod.parse / schema.parse sanitizers and tests under typescript/mcp/security/

Closes #3873

Related: #3874 (alternate ai/ layout — this PR uses typescript/mcp/security/ per contributor workflow)

Test plan

  • semgrep --validate on both YAML files
  • semgrep --test typescript/mcp/security/ — 2/2 pass

@CLAassistant

CLAassistant commented Sep 4, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Rule Request] TypeScript rules for mcp-command-injection and mcp-ssrf

2 participants