fix(deps): patch tmp & js-yaml in mcp-server (Dependabot #58/#59/#71) - #3412
Merged
Merged
Conversation
apps/mcp-server is a standalone npm project (excluded from the bun workspaces). Three open Dependabot alerts, all dev-scope transitives: - #59 (high) + #58 (low): tmp path traversal / symlink write — tmp@0.0.33 via external-editor; patched in tmp>=0.2.6 - #71 (moderate): js-yaml quadratic-complexity DoS — js-yaml@4.1.1 via @eslint/eslintrc; patched in js-yaml>=4.2.0 Add npm overrides (caret-pinned to stay within the safe major): - tmp ^0.2.6 -> resolves 0.2.7 (fileSync API is stable, external-editor works) - js-yaml ^4.2.0 -> resolves 4.3.0 (satisfies eslintrc's ^4.1.1; NOT floated to v5, which would be an unvetted breaking major) Verified: npm audit 0 vulnerabilities; mcp-server build + lint pass. (bun.lock is gitignored and regenerated from package-lock.json at build.) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
claudfuen
pushed a commit
that referenced
this pull request
Jul 15, 2026
# [3.102.0](v3.101.2...v3.102.0) (2026-07-15) ### Bug Fixes * **ci:** pin Syft 1.46.0 in SBOM action (1.42.3 can't parse bun.lock) ([#3415](#3415)) ([5f47024](5f47024)) * **ci:** scan bun.lock via file: input so the SBOM isn't empty ([#3414](#3414)) ([e47e6fd](e47e6fd)) * **deps:** override uuid to ^11.1.1 (Dependabot [#85](#85)) ([#3418](#3418)) ([598ff8c](598ff8c)) * **deps:** patch tmp and js-yaml in mcp-server (Dependabot [#58](https://github.com/trycompai/comp/issues/58)/[#59](https://github.com/trycompai/comp/issues/59)/[#71](https://github.com/trycompai/comp/issues/71)) ([#3412](#3412)) ([59a6b0f](59a6b0f)) * **deps:** remediate dependency security vulnerabilities ([#3403](#3403)) ([7577a37](7577a37)) * **deps:** remediate dependency security vulnerabilities (165→16, 4 critical→0) ([#3406](#3406)) ([d403e9c](d403e9c)) * **device-agent:** implement the installer-cleanup fix ([#3381](#3381)) ([0f7581b](0f7581b)) * **security:** prevent SSRF in task-automation enterprise API calls ([#3411](#3411)) ([dcec288](dcec288)), closes [#116](#116) * **security:** resolve open CodeQL alerts (XSS, sanitization, workflow perms) ([#3419](#3419)) ([32329be](32329be)), closes [#108](#108) [js/xss-throu#dom](https://github.com/js/xss-throu/issues/dom) [#95](#95) [84/#85](#85) ### Features * **framework-editor:** raise requirement description limit to 100,000 chars (FRAME-2) ([67c9f4a](67c9f4a))
Contributor
|
🎉 This PR is included in version 3.102.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Clears the 3 open Dependabot alerts, all in
apps/mcp-server/package-lock.json(a standalone npm project, excluded from the bun workspaces). All are dev-scope transitives.tmp(path traversal via prefix/postfix)external-editor→tmp@0.0.33tmp ≥ 0.2.6tmp(symlinkdirwrite)tmp ≥ 0.2.6js-yaml(quadratic-complexity DoS)@eslint/eslintrc→js-yaml@4.1.1js-yaml ≥ 4.2.0Fix
Added two
overridesinapps/mcp-server/package.json, caret-pinned to stay within the safe major:^4.2.0. An open>=4.2.0floats to v5.2.1, but@eslint/eslintrcdeclares^4.1.1— forcing an unvetted v5 major onto it is risky, and 4.3.0 already clears the DoS while satisfying eslintrc.^0.2.6→ 0.2.7.external-editorrequests^0.0.33, but tmp'sfileSyncAPI is stable across the jump and it's dev-only (interactive editor prompts in@anthropic-ai/mcpb).Verification
npm audit— 0 vulnerabilitiesnpm run build(bun bundle +tsc) passesnpm run lint(eslint, which consumes js-yaml) passespackage.json+package-lock.jsonchange.bun.lockis gitignored and re-migrated frompackage-lock.jsonat build, so it inherits the patched versions.🤖 Generated with Claude Code
Summary by cubic
Patches dev transitive dependencies in
apps/mcp-serverto clear 3 Dependabot alerts. Uses npm overrides fortmpandjs-yaml; no runtime changes, and build/lint/audit all pass.overridesinapps/mcp-server/package.json.tmp:^0.2.6→ resolves to0.2.7(fixes path traversal/symlink issues viaexternal-editor).js-yaml:^4.2.0→ resolves to4.3.0under@eslint/eslintrc(fixes DoS; stays on 4.x to avoid unvetted 5.x).Written for commit 9d364b2. Summary will update on new commits.