Skip to content

Commit 35db5c2

Browse files
chore: fix security vulnerabilities found by yarn audit (#1121)
* chore: fix security vulnerabilities found by yarn audit Resolves all security vulnerabilities reported by yarn audit: Direct dependency upgrades: - nodemailer: ^7.0.11 → ^8.0.5 (SMTP command injection) - posthog-js: ^1.345.5 → ^1.369.0 (dompurify XSS/prototype pollution) - @posthog/ai: ^7.8.10 → ^7.15.0 (langsmith prototype pollution) Resolutions for transitive dependencies: - next via @react-email/preview-server (DoS with Server Components) - hono + @hono/node-server via @modelcontextprotocol/sdk (cookie, path traversal, middleware bypass) - langsmith via @langchain/core (prototype pollution) - markdown-it via codemirror-json-schema (ReDoS) - yaml via codemirror-json-schema + openapi3-ts (stack overflow) - ajv via @eslint/eslintrc (ReDoS) - smol-toml via @react-grab/cli (DoS) - teeny-request via retry-request (incorrect control flow in @tootallnate/once) Also adds `audit` script to root package.json with --no-deprecations flag. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * docs: update CHANGELOG with audit fix PR Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 12d89cd commit 35db5c2

4 files changed

Lines changed: 181 additions & 306 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1717
- Bumped dependencies (Go 1.25, Next.js, Vitest v4, tsx). [#1112](https://github.com/sourcebot-dev/sourcebot/pull/1112) [#1113](https://github.com/sourcebot-dev/sourcebot/pull/1113) [#1115](https://github.com/sourcebot-dev/sourcebot/pull/1115) [#1116](https://github.com/sourcebot-dev/sourcebot/pull/1116)
1818

1919
### Fixed
20-
- Fixed multiple CVEs in the Docker image by upgrading Go to 1.25, patching Alpine base packages (musl-utils, zlib), adding a build resolution for esbuild, and removing unused npm with its vulnerable transitive dependencies. [#1112](https://github.com/sourcebot-dev/sourcebot/pull/1112) [#1114](https://github.com/sourcebot-dev/sourcebot/pull/1114) [#1118](https://github.com/sourcebot-dev/sourcebot/pull/1118) [#1119](https://github.com/sourcebot-dev/sourcebot/pull/1119)
20+
- Fixed multiple CVEs in the Docker image and JS dependencies by upgrading Go to 1.25, patching Alpine base packages (musl-utils, zlib), adding a build resolution for esbuild, removing unused npm with its vulnerable transitive dependencies, and resolving all yarn audit security vulnerabilities. [#1112](https://github.com/sourcebot-dev/sourcebot/pull/1112) [#1114](https://github.com/sourcebot-dev/sourcebot/pull/1114) [#1118](https://github.com/sourcebot-dev/sourcebot/pull/1118) [#1119](https://github.com/sourcebot-dev/sourcebot/pull/1119) [#1121](https://github.com/sourcebot-dev/sourcebot/pull/1121)
2121

2222
## [4.16.8] - 2026-04-09
2323

package.json

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
"dev:prisma:db:push": "yarn with-env yarn workspace @sourcebot/db prisma:db:push",
2020
"build:deps": "yarn workspaces foreach --recursive --topological --from '{@sourcebot/schemas,@sourcebot/db,@sourcebot/shared,@sourcebot/query-language}' run build",
2121
"openapi:generate": "yarn workspace @sourcebot/web openapi:generate",
22-
"tool:decrypt-jwe": "yarn with-env yarn workspace @sourcebot/web tool:decrypt-jwe"
22+
"tool:decrypt-jwe": "yarn with-env yarn workspace @sourcebot/web tool:decrypt-jwe",
23+
"audit": "yarn npm audit --all --recursive --no-deprecations"
2324
},
2425
"devDependencies": {
2526
"concurrently": "^9.2.1",
@@ -45,6 +46,16 @@
4546
"ajv@npm:^8.17.1": "^8.18.0",
4647
"brace-expansion@npm:^2.0.2": "^2.0.3",
4748
"brace-expansion@npm:^5.0.2": "^5.0.5",
48-
"brace-expansion@npm:^1.1.7": "^1.1.13"
49+
"brace-expansion@npm:^1.1.7": "^1.1.13",
50+
"@react-email/preview-server/next": "^16.2.3",
51+
"@modelcontextprotocol/sdk/hono": "^4.12.12",
52+
"@modelcontextprotocol/sdk/@hono/node-server": "^1.19.13",
53+
"langsmith@npm:>=0.5.0 <1.0.0": "^0.5.19",
54+
"markdown-it@npm:^14.1.0": "^14.1.1",
55+
"yaml@npm:^2.3.4": "^2.8.3",
56+
"yaml@npm:^2.8.0": "^2.8.3",
57+
"ajv@npm:^6.12.4": "^6.14.0",
58+
"smol-toml@npm:^1.6.0": "^1.6.1",
59+
"teeny-request@npm:^10.0.0": "^10.1.2"
4960
}
5061
}

packages/web/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@
5959
"@hookform/resolvers": "^3.9.0",
6060
"@iconify/react": "^5.1.0",
6161
"@iizukak/codemirror-lang-wgsl": "^0.3.0",
62-
"@modelcontextprotocol/sdk": "^1.27.1",
62+
"@modelcontextprotocol/sdk": "^1.29.0",
6363
"@openrouter/ai-sdk-provider": "^2.2.3",
6464
"@opentelemetry/api-logs": "^0.203.0",
6565
"@opentelemetry/instrumentation": "^0.203.0",
6666
"@opentelemetry/sdk-logs": "^0.203.0",
67-
"@posthog/ai": "^7.8.10",
67+
"@posthog/ai": "^7.15.0",
6868
"@radix-ui/react-accordion": "^1.2.11",
6969
"@radix-ui/react-alert-dialog": "^1.1.5",
7070
"@radix-ui/react-avatar": "^1.1.2",
@@ -156,11 +156,11 @@
156156
"next-auth": "^5.0.0-beta.30",
157157
"next-navigation-guard": "^0.2.0",
158158
"next-themes": "^0.3.0",
159-
"nodemailer": "^7.0.11",
159+
"nodemailer": "^8.0.5",
160160
"octokit": "^4.1.3",
161161
"openai": "^4.98.0",
162162
"parse-diff": "^0.11.1",
163-
"posthog-js": "^1.345.5",
163+
"posthog-js": "^1.369.0",
164164
"posthog-node": "^5.24.15",
165165
"pretty-bytes": "^6.1.1",
166166
"psl": "^1.15.0",

0 commit comments

Comments
 (0)