diff --git a/.changeset/zod-ghsa-mrhx-override.md b/.changeset/zod-ghsa-mrhx-override.md new file mode 100644 index 000000000..7af720ff3 --- /dev/null +++ b/.changeset/zod-ghsa-mrhx-override.md @@ -0,0 +1,6 @@ +--- +'@truefoundry/trueforge': patch +'@truefoundry/trueforge-ui': patch +--- + +Security: drop transitive zod 3.25.76 (GHSA-mrhx-c7xc-m3w5, High) from the dependency tree. diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 45cb250d6..43ffb4228 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -12,6 +12,8 @@ overrides: zustand: ^5.0.14 resolve: 1.22.11 rollup: 4.62.2 + '@ag-ui/core>zod': ^4.6.7 + '@anthropic-ai/sandbox-runtime>zod': ^4.6.7 importers: @@ -8141,9 +8143,6 @@ packages: peerDependencies: zod: ^3.25.0 || ^4.0.0 - zod@3.25.76: - resolution: {integrity: sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==} - zod@4.6.7: resolution: {integrity: sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg==} @@ -8174,7 +8173,7 @@ snapshots: '@ag-ui/core@0.0.53': dependencies: - zod: 3.25.76 + zod: 4.6.7 '@ai-sdk/alibaba@2.0.56(zod@4.6.7)': dependencies: @@ -8237,7 +8236,7 @@ snapshots: '@pondwader/socks5-server': 1.0.10 commander: 12.1.0 node-forge: 1.4.3 - zod: 3.25.76 + zod: 4.6.7 '@asamuzakjp/css-color@3.2.0': dependencies: @@ -16657,8 +16656,6 @@ snapshots: dependencies: zod: 4.6.7 - zod@3.25.76: {} - zod@4.6.7: {} zustand@5.0.15(@types/react@19.3.0)(react@19.3.0)(use-sync-external-store@1.6.0(react@19.3.0)): diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 4b4031918..8a4cf940e 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -26,3 +26,7 @@ overrides: resolve: '1.22.11' # Rollup 4.63.0 OOMs the frontend Vite build (Monaco + compression plugin); stay on 4.62.x. rollup: '4.62.2' + # GHSA-mrhx-c7xc-m3w5 (zod 3.x memory exhaustion, no fixed 3.x): force zod 4 for transitive deps + # that still pin zod@3 (@ag-ui/core via @openuidev/react-headless; @anthropic-ai/sandbox-runtime). + '@ag-ui/core>zod': '^4.6.7' + '@anthropic-ai/sandbox-runtime>zod': '^4.6.7'