Skip to content

Upgrade cross-spawn to fix critical advisory - #2706

Merged
ravikiranvm merged 2 commits into
mainfrom
OPS-5074
Dec 3, 2026
Merged

ravikiranvm merged 2 commits into
mainfrom
OPS-5074

Conversation

@ravikiranvm

@ravikiranvm ravikiranvm commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Fixes OPS-5074.

Additional Notes

npm audit reported one critical advisory: cross-spawn 7.0.6 allows command injection on Windows when it spawns batch files (GHSA-ghv9-86vm-4v8m). The fix is in 7.1.0.

cross-spawn is a transitive dependency of eslint, jest, cross-env, @modelcontextprotocol/sdk, @ai-sdk/mcp and others. All of them accept ^7.0.x, so this is an in-range lockfile bump to 7.1.2 with no overrides entry.

  • The 7.0.6 → 7.1.2 source diff only touches the Windows (isWin) escaping path in lib/parse.js and lib/util/escape.js. Same maintainer, same dependencies, no install scripts.
  • On Linux and macOS the behavior is unchanged. The runtime caller in the app is the server API's AI MCP tools (openops-tools.ts, cost-tools.ts), which start Python MCP servers through StdioClientTransport.
  • THIRD_PARTY_LICENSES.txt was regenerated in a linux/amd64 node:24.22.3 container. Only the version line changes; the LICENSE text is identical.
  • After this change, npm audit reports 0 critical (was 1). The 7 high advisories are out of scope.

cross-spawn 7.0.6 allows command injection on Windows when spawning
batch files (GHSA-ghv9-86vm-4v8m). All dependents accept ^7.0.x, so
this is an in-range lockfile bump with no override needed.

Part of OPS-5074.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings December 1, 2026 12:05
@linear

linear Bot commented Dec 1, 2026

Copy link
Copy Markdown

OPS-5074

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues block the cross-spawn dependency update intended to address the reported Windows command-injection advisory.

No open issues 🎉

What changed in this PR

Updates the transitive cross-spawn dependency to address the reported Windows command-injection advisory, without adding overrides or changing application code.

Changes:

  • Bumps cross-spawn from 7.0.6 to 7.1.2 in the lockfile, including its download URL and integrity hash.
  • Updates the third-party license inventory to match; license text is unchanged.

Blocking

None.

Non-blocking

None.

Merge recommendation

Ready to merge

File Description
THIRD_PARTY_LICENSES.txt Updates the listed cross-spawn version to 7.1.2.
package-lock.json Locks cross-spawn to 7.1.2 with updated package metadata.

Review effort: Balanced

@ravikiranvm
ravikiranvm requested a review from pawel-oo December 1, 2026 12:09
@sonarqubecloud

sonarqubecloud Bot commented Dec 3, 2026

Copy link
Copy Markdown

@ravikiranvm
ravikiranvm merged commit d89a704 into main Dec 3, 2026
22 checks passed
@ravikiranvm
ravikiranvm deleted the OPS-5074 branch December 3, 2026 09:55
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.

3 participants