Skip to content

Commit 4001326

Browse files
authored
Fix audit vulnerabilities (#420)
A number of vulnerabilities had piled up so this updates the. Removed - [email protected] (devDependency) - Completely removed along with its dependencies: - @chevrotain/* packages (cst-dts-gen, gast, types, utils) - [email protected] Updated Root Dependencies - @modelcontextprotocol/sdk: 1.19.1 → 1.24.3 - This is the main security fix - Used by: @examples/mcp, @examples/mcpclient, @microsoft/teams.mcp, @microsoft/teams.mcpclient New Dependencies Added - [email protected] - Moved from devDependency to production dependency (required by @modelcontextprotocol/sdk) - [email protected] - New dependency added by @modelcontextprotocol/sdk Transitive Dependency Updates The following packages were updated as side effects: | Package | Old Version | New Version | |--------------------|---------------------|-----------------------------| | body-parser | 2.2.0 | 2.2.1 | | bytes | 3.0.6 / 0.6.3 | 3.1.0 / 0.7.0 | | cookie | 1.0.6 | (removed, no longer needed) | | depd | 1.4.1 | 1.4.2 | | encodeurl | 3.2.2 | 3.2.3 | | http-errors | 2.0.0 (new) / 3.0.0 | 3.0.2 / 2.0.1 | | ipaddr.js | 10.0.3 | 10.1.1 | | semver | 11.0.3 | 11.1.0 | | tar | 10.4.5 | 10.5.0 | | zod-to-json-schema | 3.24.5 | 3.25.0 | Audit Status ✅ All vulnerabilities fixed - npm audit now reports 0 vulnerabilities The main security fix was upgrading @modelcontextprotocol/sdk which brought in updated dependencies (particularly ajv 8.x instead of 6.x) and removed the vulnerable bluehawk package that was no longer needed.
1 parent 07ade1a commit 4001326

File tree

4 files changed

+141
-208
lines changed

4 files changed

+141
-208
lines changed

.github/workflows/build-test-lint.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,3 @@ jobs:
3232
run: npm run build
3333
- name: Test
3434
run: npm run test
35-
- name: Validate Snippets
36-
run: npm run validate:snippets

external/mcpclient/src/mcp-client-plugin.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ describe('McpClientPlugin', () => {
3333
.mockResolvedValue({ tools: [] });
3434
mockCallTool = jest
3535
.spyOn(Client.prototype, 'callTool')
36-
.mockResolvedValue({ content: 'result' });
36+
.mockResolvedValue({ content: 'result', toolResult: null });
3737

3838
jest.useFakeTimers().setSystemTime(mockDate);
3939
});

0 commit comments

Comments
 (0)