Skip to content

fix(console): resolve Snyk dependency vulnerabilities#2310

Merged
malinskibeniamin merged 2 commits intomasterfrom
bm/console-snyk-fixes
Mar 16, 2026
Merged

fix(console): resolve Snyk dependency vulnerabilities#2310
malinskibeniamin merged 2 commits intomasterfrom
bm/console-snyk-fixes

Conversation

@malinskibeniamin
Copy link
Contributor

@malinskibeniamin malinskibeniamin commented Mar 16, 2026

Summary

  • Upgrade @modelcontextprotocol/sdk to ^1.26.0 to fix race condition (High)
  • Upgrade monaco-editor to ^0.55.0 to fix dompurify XSS vulnerabilities (Low + Medium)
  • Upgrade react-syntax-highlighter to ^16.0.0 to fix prismjs code injection (Low)
  • Add yarn resolutions and npm/bun overrides for 10 transitive dependencies: ajv, body-parser, diff, dompurify, @hono/node-server, lodash, lodash-es, mdast-util-to-hast, qs, prismjs
  • All 14 Snyk vulnerabilities resolved (0 remaining)

Test plan

  • snyk test passes with no vulnerable paths found
  • CI passes

🤖 Generated with Claude Code

Upgrade direct dependencies:
- @modelcontextprotocol/sdk 1.25.2 -> ^1.26.0 (race condition)
- monaco-editor 0.54.0 -> ^0.55.0 (dompurify XSS)
- react-syntax-highlighter 15.6.6 -> ^16.0.0 (prismjs code injection)

Add resolutions/overrides for transitive dependencies:
- ajv ^8.18.0 (ReDoS)
- body-parser ^2.2.1 (resource allocation)
- diff ^5.2.2 (ReDoS)
- dompurify ^3.3.2 (XSS)
- @hono/node-server ^1.19.10 (URL encoding)
- lodash ^4.17.23 (prototype pollution)
- lodash-es ^4.17.23 (prototype pollution)
- mdast-util-to-hast ^13.2.1 (object attribute modification)
- qs ^6.14.2 (resource allocation)
- prismjs ^1.30.0 (code injection)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@malinskibeniamin malinskibeniamin self-assigned this Mar 16, 2026
In monaco-editor 0.55.0, `languages.typescript` was moved to a top-level
`typescript` namespace. Update editor.tsx to use the new import path and
add explicit parameter types in pipelines-create.tsx.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@malinskibeniamin malinskibeniamin merged commit 7b280f8 into master Mar 16, 2026
24 of 25 checks passed
@malinskibeniamin malinskibeniamin deleted the bm/console-snyk-fixes branch March 16, 2026 16:48
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.

2 participants