Releases: vetcoders/mcp-server-semgrep
Releases · vetcoders/mcp-server-semgrep
v1.0.1 — CWE-78 security release
v1.0.1 — Security release
Published to npm: https://www.npmjs.com/package/mcp-server-semgrep/v/1.0.1
Security
- Fixed CWE-78 OS command injection across MCP tool handlers. Reported by BruceJin / @BruceJqs in #12.
- Replaced shell command construction with
execFile()argument arrays. - Replaced shell
cat/echo > filewithfs.promises.readFile/writeFile. - Added defense-in-depth
validateNoShellMetacharactersat path/config validation boundaries. - Hardened
create_ruleagainst YAML injection with allowlists forid,language,severityand YAML-safe scalar rendering forpattern/message. - Redacts
SEMGREP_APP_TOKENin logs and raises semgrep output buffer to 50 MiB.
Packaging
- Published npm package
mcp-server-semgrep@1.0.1. - Runtime npm audit: 0 vulnerabilities.
- Package tarball: 12 files, 27.6 kB,
sha512-Bp+7j3rDGaYwX3G3fABFXCMA/jrdQSACFb1GpWDlMDUp1umSi+aYnrSiXRic2k/bRjQQRj5odHT7YZZm9RXL6A==. @modelcontextprotocol/sdkis now a runtime dependency.- Removed unused
axiosdependency and stale generated/package noise.
Verification
npm audit→ 0 vulnerabilitiesnpm audit --omit=dev→ 0 vulnerabilitiesnpm run lint→ passnpm test→ 33/33 pass- Registry cold smoke from
npm install mcp-server-semgrep@1.0.1→ MCP stdio boots, lists 7 tools,analyze_resultsworks, workspace boundary blocks outside paths
Acknowledgements
- @BruceJqs — original vulnerability report and reproduction.
- @karthikeyansundaram2 — CWE-78 fix foundation in #14.
- @xyaz1313 — defense-in-depth shell metacharacter validation idea in #12 discussion.
- @m-szymanska — maintainer review and release support.
- Gemini Code Assist — review signal for token redaction and YAML injection follow-up.
Upgrade recommended for every user of 1.0.0.