Skip to content

Commit 8c74f1f

Browse files
authored
chore: upgrade JavaScript dependencies to address 22 CVEs and 6 GHSAs (#1502)
* chore: upgrade dependencies to address security advisories * docs: add security dependency changelog entry * docs: link security changelog entry to PR --------- Co-authored-by: Jack Minnetian <270441393+BlueBottleLatte@users.noreply.github.com>
1 parent a536249 commit 8c74f1f

6 files changed

Lines changed: 421 additions & 689 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1515
- Upgraded `brace-expansion` to `^1.1.16`/`^2.1.2`/`^5.0.7` to address CVE-2026-13149. [#1471](https://github.com/sourcebot-dev/sourcebot/pull/1471)
1616
- Upgraded `shell-quote` to `^1.10.0`. [#1469](https://github.com/sourcebot-dev/sourcebot/pull/1469)
1717
- Upgraded `js-yaml` to `^4.3.0`. [#1470](https://github.com/sourcebot-dev/sourcebot/pull/1470)
18+
- Fixed multiple CVEs in JavaScript dependencies by upgrading `next-auth`, `@auth/core`, `next`, `postcss`, `sharp`, `linkify-it`, `fast-uri`, `protobufjs`, `body-parser`, `hono`, `@hono/node-server`, and `dompurify` to patched versions, resolving all Yarn audit findings. [#1502](https://github.com/sourcebot-dev/sourcebot/pull/1502)
1819

1920
### Changed
2021
- Reduced Sentry span sampling to 10% outside development. [#1475](https://github.com/sourcebot-dev/sourcebot/pull/1475)

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@
5151
"brace-expansion@npm:^2.0.2": "^2.0.3",
5252
"brace-expansion@npm:^5.0.2": "^5.0.5",
5353
"brace-expansion@npm:^1.1.7": "^1.1.13",
54-
"@modelcontextprotocol/sdk/@hono/node-server": "^1.19.13",
54+
"@modelcontextprotocol/sdk/@hono/node-server": "^2.0.5",
55+
"next@npm:16.2.6": "^16.2.11",
56+
"postcss@npm:8.4.31": "^8.5.12",
57+
"sharp@npm:^0.34.5": "^0.35.3",
5558
"markdown-it@npm:^14.1.0": "^14.1.1",
5659
"yaml@npm:^2.3.4": "^2.8.3",
5760
"yaml@npm:^2.8.0": "^2.8.3",

packages/backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"chokidar": "^4.0.3",
4040
"cross-fetch": "^4.0.0",
4141
"dotenv": "^16.4.5",
42-
"express": "^4.21.2",
42+
"express": "^4.22.2",
4343
"express-async-errors": "^3.1.1",
4444
"fast-deep-equal": "^3.1.3",
4545
"git-url-parse": "^16.1.0",

packages/web/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"@ai-sdk/react": "^3.0.169",
3030
"@ai-sdk/xai": "^3.0.83",
3131
"@anthropic-ai/sdk": "^0.104.0",
32-
"@auth/prisma-adapter": "^2.11.1",
32+
"@auth/prisma-adapter": "^2.11.3",
3333
"@aws-sdk/credential-providers": "^3.1036.0",
3434
"@bprogress/next": "^3.2.12",
3535
"@codemirror/commands": "^6.6.0",
@@ -164,8 +164,8 @@
164164
"micromatch": "^4.0.8",
165165
"minidenticons": "^4.2.1",
166166
"motion": "^12.42.0",
167-
"next": "^16.2.6",
168-
"next-auth": "^5.0.0-beta.30",
167+
"next": "^16.2.11",
168+
"next-auth": "^5.0.0-beta.32",
169169
"next-navigation-guard": "^0.2.0",
170170
"next-themes": "^0.3.0",
171171
"nodemailer": "^9.0.1",
@@ -193,7 +193,7 @@
193193
"remark-gfm": "^4.0.1",
194194
"scroll-into-view-if-needed": "^3.1.0",
195195
"server-only": "^0.0.1",
196-
"sharp": "^0.33.5",
196+
"sharp": "^0.35.3",
197197
"simple-git": "^3.36.0",
198198
"slate": "^0.117.0",
199199
"slate-dom": "^0.116.0",
@@ -236,7 +236,7 @@
236236
"eslint-plugin-react-hooks": "^7.0.1",
237237
"jsdom": "^25.0.1",
238238
"npm-run-all": "^4.1.5",
239-
"postcss": "^8.5.10",
239+
"postcss": "^8.5.12",
240240
"raw-loader": "^4.0.2",
241241
"react-email": "^6.1.4",
242242
"react-grab": "^0.1.23",

packages/web/src/features/chat/attachments/validation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import 'server-only';
22

3-
import sharp from 'sharp';
3+
import sharp, { type Metadata } from 'sharp';
44
import { ATTACHMENT_ALLOWED_IMAGE_MIME_TYPES, ATTACHMENT_MAX_IMAGE_DIMENSION } from '../constants';
55

66
export type AllowedImageMediaType = typeof ATTACHMENT_ALLOWED_IMAGE_MIME_TYPES[number];
@@ -47,7 +47,7 @@ export const validateImageAttachment = async (
4747
return { ok: false, reason: `Image exceeds the ${Math.round(maxBytes / (1024 * 1024))}MB limit.` };
4848
}
4949

50-
let metadata: sharp.Metadata;
50+
let metadata: Metadata;
5151
try {
5252
// `failOn: 'error'` makes sharp reject truncated/corrupt inputs instead
5353
// of best-effort decoding them.

0 commit comments

Comments
 (0)