Skip to content

The open alternative to Salesforce, designed for AI.

security: bump uuid 9 → 11 (server, shared, front) (#21326)

Charles Bochet13e8e26d1c04
diff --git a/packages/twenty-front/package.json b/packages/twenty-front/package.json
index 01cf2029801..4e54f678a52 100644
--- a/packages/twenty-front/package.json
+++ b/packages/twenty-front/package.json
@@ -142,7 +142,7 @@
"twenty-ui": "workspace:*",
"type-fest": "4.10.1",
"use-debounce": "^10.0.0",
- "uuid": "^9.0.0",
+ "uuid": "^11.1.1",
"xlsx-ugnis": "^0.19.3",
"zod": "^4.1.11"
},
diff --git a/packages/twenty-front/src/modules/object-record/hooks/__tests__/useCreateManyRecords.test.tsx b/packages/twenty-front/src/modules/object-record/hooks/__tests__/useCreateManyRecords.test.tsx
index 10935198b91..094bd9a3f76 100644
--- a/packages/twenty-front/src/modules/object-record/hooks/__tests__/useCreateManyRecords.test.tsx
+++ b/packages/twenty-front/src/modules/object-record/hooks/__tests__/useCreateManyRecords.test.tsx
@@ -22,7 +22,9 @@ jest.mocked(useRefetchAggregateQueries).mockReturnValue({
});
jest
- .mocked(v4)
+ // uuid v11+ types add a Uint8Array overload to v4; pin to the string
+ // signature so the mocked return values type-check.
+ .mocked(v4 as () => string)
.mockReturnValueOnce(variables.data[0].id)
.mockReturnValueOnce(variables.data[1].id);
diff --git a/packages/twenty-server/package.json b/packages/twenty-server/package.json
index 330887a1478..e510b88ea08 100644
--- a/packages/twenty-server/package.json
+++ b/packages/twenty-server/package.json
@@ -169,7 +169,7 @@
"type-fest": "4.10.1",
"typeorm": "patch:[email protected]#./patches/typeorm+0.3.20.patch",
"unzipper": "^0.12.3",
- "uuid": "9.0.1",
+ "uuid": "^11.1.1",
"zod": "^4.1.11"
},
"devDependencies": {
diff --git a/packages/twenty-shared/package.json b/packages/twenty-shared/package.json
index d0308b65bc2..98242b6d6ee 100644
--- a/packages/twenty-shared/package.json
+++ b/packages/twenty-shared/package.json
@@ -56,7 +56,7 @@
"react-router-dom": "^6.4.4",
"temporal-polyfill": "^0.3.0",
"transliteration": "^2.3.5",
- "uuid": "^9.0.0",
+ "uuid": "^11.1.1",
"zod": "^4.1.11"
},
"exports": {
diff --git a/yarn.lock b/yarn.lock
index aacc076b70a..4afd303977a 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -56710,7 +56710,7 @@ __metadata:
twenty-ui: "workspace:*"
type-fest: "npm:4.10.1"
use-debounce: "npm:^10.0.0"
- uuid: "npm:^9.0.0"
+ uuid: "npm:^11.1.1"
vite-plugin-svgr: "npm:^4.3.0"
vite-tsconfig-paths: "npm:^4.2.1"
xlsx-ugnis: "npm:^0.19.3"
@@ -57043,7 +57043,7 @@ __metadata:
type-fest: "npm:4.10.1"
typeorm: "patch:[email protected]#./patches/typeorm+0.3.20.patch"
unzipper: "npm:^0.12.3"
- uuid: "npm:9.0.1"
+ uuid: "npm:^11.1.1"
zod: "npm:^4.1.11"
languageName: unknown
linkType: soft
@@ -57088,7 +57088,7 @@ __metadata:
tsc-alias: "npm:^1.8.16"
tsx: "npm:^4.19.3"
typescript: "npm:^5.9.3"
- uuid: "npm:^9.0.0"
+ uuid: "npm:^11.1.1"
vite: "npm:^7.0.0"
vite-plugin-dts: "npm:3.8.1"
vite-tsconfig-paths: "npm:^4.2.1"
@@ -58649,6 +58649,15 @@ __metadata:
languageName: node
linkType: hard
+"uuid@npm:^11.1.1":
+ version: 11.1.1
+ resolution: "uuid@npm:11.1.1"
+ bin:
+ uuid: dist/esm/bin/uuid
+ checksum: 10c0/9e3af58eba872ece5a5e76f4773a94fc78a0ef2c2444c38dbe6b42f41dadf76c01850fd783604f27986f6195e6286aef064d45987d401b2a33127b98ddf7c0c5
+ languageName: node
+ linkType: hard
+
"uuid@npm:^13.0.0":
version: 13.0.0
resolution: "uuid@npm:13.0.0"