Skip to content

Commit 66e7bf2

Browse files
authored
chore: update dependencies to fix vulnerabilities (#2644)
1 parent 02ce559 commit 66e7bf2

File tree

6 files changed

+1218
-1131
lines changed

6 files changed

+1218
-1131
lines changed

cli/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"@wundergraph/cosmo-shared": "workspace:*",
5353
"@wundergraph/protographic": "workspace:*",
5454
"ajv": "8.17.1",
55-
"axios": "1.12.2",
55+
"axios": "1.13.5",
5656
"boxen": "7.1.1",
5757
"cli-progress": "3.12.0",
5858
"cli-table3": "0.6.3",
@@ -80,7 +80,7 @@
8080
"prompts": "2.4.2",
8181
"pupa": "3.1.0",
8282
"semver": "7.7.1",
83-
"tar": "7.4.3",
83+
"tar": "7.5.11",
8484
"trieve-ts-sdk": "0.0.80",
8585
"undici": "6.21.2",
8686
"zod": "^3.25.0"
@@ -98,7 +98,6 @@
9898
"@types/node": "20.12.12",
9999
"@types/prompts": "2.4.9",
100100
"@types/semver": "7.7.0",
101-
"@types/tar": "6.1.13",
102101
"@vitest/coverage-v8": "3.2.4",
103102
"del-cli": "5.0.0",
104103
"eslint": "8.57.1",

controlplane/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"@wundergraph/cosmo-connect": "workspace:*",
6363
"@wundergraph/cosmo-shared": "workspace:*",
6464
"@wundergraph/protographic": "workspace:*",
65-
"axios": "^1.12.2",
65+
"axios": "^1.13.5",
6666
"axios-retry": "^4.5.0",
6767
"bullmq": "^5.10.0",
6868
"cookie": "^0.7.2",
@@ -81,7 +81,7 @@
8181
"isomorphic-dompurify": "^2.33.0",
8282
"jose": "^5.2.4",
8383
"lodash": "^4.17.21",
84-
"nodemailer": "^7.0.7",
84+
"nodemailer": "^7.0.11",
8585
"nuid": "^1.1.6",
8686
"octokit": "^4.1.3",
8787
"openai": "^4.104.0",

controlplane/src/core/build-server.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,20 @@ export default async function build(opts: BuildConfig) {
185185
pluginTimeout: 10_000, // 10s
186186
});
187187

188+
/**
189+
* CVE-2026-25223 prevention
190+
*/
191+
fastify.addHook('onRequest', async (request, reply) => {
192+
const contentType = request.headers['content-type'];
193+
194+
const contentTypeNormalized = contentType || [];
195+
const contentTypeValues = Array.isArray(contentTypeNormalized) ? contentTypeNormalized : [contentTypeNormalized];
196+
197+
if (contentTypeValues.some((v) => v.includes('\t'))) {
198+
await reply.code(400).send({ error: 'Invalid Content-Type header' });
199+
}
200+
});
201+
188202
/**
189203
* Plugin registration
190204
*/

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@
5757
"@connectrpc/connect-query": "^1.4.1",
5858
"@connectrpc/protoc-gen-connect-es": "^1.4.0",
5959
"@connectrpc/protoc-gen-connect-query": "^1.4.1",
60-
"@lerna-lite/cli": "4.1.1",
61-
"@lerna-lite/publish": "4.1.1",
62-
"@lerna-lite/version": "4.1.1",
60+
"@lerna-lite/cli": "4.11.4",
61+
"@lerna-lite/publish": "4.11.4",
62+
"@lerna-lite/version": "4.11.4",
6363
"husky": "^8.0.3",
6464
"lint-staged": "^15.2.10",
6565
"prettier": "^3.6.2",

0 commit comments

Comments
 (0)