File tree Expand file tree Collapse file tree 6 files changed +1218
-1131
lines changed
Expand file tree Collapse file tree 6 files changed +1218
-1131
lines changed Original file line number Diff line number Diff line change 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" ,
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"
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" ,
Original file line number Diff line number Diff line change 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" ,
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" ,
Original file line number Diff line number Diff 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 */
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments