We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b8bb85 commit 82e5de2Copy full SHA for 82e5de2
apps/server/src/routes/api/branches.ts
@@ -277,6 +277,11 @@ function setPrefixBatch(req: Request) {
277
throw new ValidationError("branchIds must be an array");
278
}
279
280
+ // Validate that prefix is a string or null/undefined to prevent prototype pollution
281
+ if (prefix !== null && prefix !== undefined && typeof prefix !== 'string') {
282
+ throw new ValidationError("prefix must be a string or null");
283
+ }
284
+
285
const normalizedPrefix = utils.isEmptyOrWhitespace(prefix) ? null : prefix;
286
let updatedCount = 0;
287
0 commit comments