Skip to content

Commit 9a13387

Browse files
fix(deps): take the fixed releases for seven advisories, refresh undici, nodemailer and the MCP SDK (#39089)
<!-- claude-projects-attribution: {"github_login":"os-bob"} --> _Requested by **bob** · [project thread](https://claude.ai/code/project/chan_013Ae3mTPsPLvKnjVpJF7Hgc?thread=cmsg_013Ae3mTPsPLvKnjVpJF7HgcByxzS23wZFWcGDRN3dHeWa)_ Fixes #39068 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户无感:七个已公开安全通告对应的依赖都换成已修复版本,`pnpm audit` 清零,主分支每日依赖扫描应恢复绿色;认证库 better-auth 升到 1.7.29,邮件、MCP 和网络请求库升到最新补丁版。 - 认证行为:上游改动已逐项适配,对外错误码不变;保住的保证包括锁定账号与开启二次验证的账号不能只凭链接改邮箱(后者按裁决 7343971547 返回 401)。 - 出错会怎样:表现为认证相关流程失败,可直接撤回本次合并。 - 要你做什么:审核并批准合并。 ## What changes `pnpm audit` at `origin/main` 7814822 listed 7 advisories. On this branch it reports `No known vulnerabilities found`. | Package | Before | After | How | |:--|:--|:--|:--| | fast-xml-parser (GHSA-7cfw-w2rf-f3jc) | 5.12.0 | 5.12.1 | driver-odata `^5.12.1`. plugin-auth's exact pin moves to `5.12.1`, which is still the one copy `@better-auth/sso` resolves. | | glob (GHSA-qxr8-q827-836c) | 14.0.3 | 14.0.7 | metadata and `@object-ui/cli` `^14.0.6` | | ws (GHSA-37g9-w4hg-h9qr) | 8.22.0 | 8.23.1 | override `ws@>=8.0.0 <9.0.0` to `^8.23.0` (pulled by `@libsql/isomorphic-ws` and happy-dom) | | cross-spawn (GHSA-ghv9-86vm-4v8m) | 7.0.6 | 7.1.2 | override `cross-spawn@>=7.0.0 <8.0.0` to `^7.1.0`. The card called this dev-only, but `@modelcontextprotocol/sdk` and `@ai-sdk/mcp` also pull it, as well as eslint. | | minimatch (3 GHSAs) | 11.0.3 | 11.0.9 | override `minimatch@>=11.0.0 <12.0.0` to `^11.0.8` | | undici (refresh) | 8.12.3 | 8.14.0 | the existing 8.x override target moves to `^8.14.0` | | nodemailer (refresh) | 10.2.1 | 10.6.2 | plugin-email `^10.6.2` | | @modelcontextprotocol/sdk (refresh) | 1.32.1 | 1.32.2 | mcp, connector-mcp and example-showcase `^1.32.2` | | better-auth and `@better-auth/*` (refresh) | 1.7.12 | 1.7.29 | plugin-auth and `@object-ui/auth`, exact; the `@better-auth/scim` patch is regenerated for 1.7.29 | The overrides go in `pnpm-workspace.yaml` and not in the root `package.json`. pnpm 10 reads `overrides` only from the workspace file, and the root `pnpm.overrides` block is ignored without a warning, as that file's header says. Each selector is bounded at the major boundary, following the block's selector-shape rule, and a dated note records the batch. The undici 7.x copy (7.30.1) stays: `@objectstack/core` declares `^7.30.1` and `@ai-sdk/provider-utils` pulls it. It is not flagged, and the card does not name it. ### better-auth 1.7.29: plugin-auth adaptation (rulings 7340456975, 7343971547) The changeset lists every client-visible change and every kept guarantee. In short: - Texted sign-in and reset codes are read under the vendor's renamed identifiers, so a password reset by texted code completes and codes texted before a credential change are ended (`vendor-phone-code-identifiers.ts`). - A blank invitation role or an empty role-list entry is still refused `400 ROLE_NOT_FOUND`; the remove-member owner guard trims roles the way the vendor now does. - A locked account's address-change link is still refused, and the address does not move (`change-email-link-lockout.ts`). - An address-change link for an account with an enrolled second factor is refused `401 UNAUTHENTICATED`, and the address does not move, unless the caller is signed in as that same account (`change-email-link-second-factor.ts`). A caller signed in as another account gets the same refusal. When enrollment cannot be read, including on a standalone manager with no data engine (read through the auth library's own account store), the link is refused. - Invitation listing follows better-auth 1.7.29: only a role that may create invitations may list an organization's invitations; an ordinary or external member gets `403 YOU_ARE_NOT_ALLOWED_TO_LIST_INVITATIONS`, and get-full-organization shows them none. A member's own received invitations stay on list-user-invitations. Maintainer ruling recorded on #39068. - A blank invitation role is refused `400 ROLE_NOT_FOUND` for bearer callers too (`invite-role-not-found-code.ts` now reads the caller through `resolveActor`). - Pins for upstream semantic changes (change-email verification rule, oauth code reuse after a ban, native plain-http redirect refusal) assert the new behaviour; no test was deleted and no wire error code changed. It supersedes the open bumps #39029, #39028 and #38822 and answers #38840; the seat closes those after this lands. ## Verification - `pnpm --filter @objectstack/plugin-auth` (vitest): 298 files, 6350 passed, 10 skipped. Typecheck exit 0. - Runtime auth/session/oauth set: 17 files, 196 passed. - Ablation: removing the second-factor refusal call turns exactly its 2 pins red; admitting any signed-in caller turns the 2 other-account pins red; dropping the no-engine enrollment read turns its 1 pin red. - At eaa7cf1: full `@objectstack/plugin-auth` suite 298 of 298 files passed (in thirds), typecheck exit 0, auth gate families exit 0. - At 551ad8e: the whole dogfood suite run locally in batches, 504 files, 0 failed (the merge-queue dogfood red at e75528a is fixed). - driver-odata, driver-turso, plugin-email, mcp, connector-mcp, `@object-ui/cli`, metadata: test and typecheck green. - `dispatch-gates --commands`: 93 derived, 90 run green, 3 NOT MEASURED locally (left to CI). `check:vendor-version-stamps` green after 2992d19. - `pnpm audit`: `No known vulnerabilities found`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_012dn2AfG9txpigxdt2zFADB <!-- signed: repo:objectstack@os-bob · os-bob · session_012dn2AfG9txpigxdt2zFADB --> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 83c0b6b commit 9a13387

48 files changed

Lines changed: 890 additions & 342 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.changeset/39068-deps-refresh.md‎

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
'@objectstack/driver-odata': patch
3+
'@objectstack/metadata': patch
4+
'@objectstack/plugin-auth': patch
5+
'@objectstack/plugin-email': patch
6+
'@objectstack/mcp': patch
7+
'@objectstack/connector-mcp': patch
8+
'@object-ui/auth': patch
9+
'@object-ui/cli': patch
10+
---
11+
12+
fix(deps): the fixed releases for seven advisories, and better-auth 1.7.29
13+
14+
Clause-②: no
15+
Metadata-protocol: none
16+
17+
A downstream install now resolves the fixed release of every dependency these packages declare that `pnpm audit` flagged:
18+
19+
- `fast-xml-parser` 5.12.1 (GHSA-7cfw-w2rf-f3jc): `@objectstack/driver-odata` declares `^5.12.1`; `@objectstack/plugin-auth` keeps its exact pin, now `5.12.1`, the same release `@better-auth/sso` resolves.
20+
- `glob` 14.0.6 (GHSA-qxr8-q827-836c): `@objectstack/metadata` and `@object-ui/cli` declare `^14.0.6`.
21+
22+
The same release refreshes four runtime dependencies to their latest patch level:
23+
24+
- `better-auth` and the `@better-auth/*` family 1.7.12 → 1.7.29 (`@objectstack/plugin-auth`, `@object-ui/auth`), still exact. The upstream releases in between include stricter session revocation (a revoke or sign-out that a hook vetoes now fails instead of reporting success, and revoking a session expires its cookies), an origin check on anonymous sign-in, headers and cookies set by a `hooks.before` hook now reaching the response, and stricter organization role and invitation handling. Every symbol `@objectstack/plugin-auth` imports is still exported.
25+
26+
What changes for an auth client, from the vendor:
27+
- The address-change link (`GET /verify-email` with a change-email token) no longer signs anyone in. The new address is marked verified only when the address being left was verified.
28+
- A refused authorization-code exchange whose session has ended now leaves the code unspent. The same code keeps answering `400 invalid_request` (`session no longer exists`) until it expires, and it can never mint a token.
29+
- Registering a native OAuth client with a plain-http, non-loopback redirect URI is still refused `400 OAUTH_REGISTER_FAILED`. `details.upstreamError` now names `invalid_redirect_uri`.
30+
- Only an organization role that may create invitations may list them. `GET /organization/list-invitations` refuses every other role `403 YOU_ARE_NOT_ALLOWED_TO_LIST_INVITATIONS`, and `get-full-organization` answers it no invitations; this includes `member` and `external`. A pending invitation id works as a join link, so it is shown only to roles that could mint one. A person's own received invitations stay on `GET /organization/list-user-invitations`.
31+
32+
What `@objectstack/plugin-auth` keeps as it was:
33+
- The texted sign-in and reset codes are read under the vendor's new identifiers. A password reset by texted code completes, and the checks that read those codes still apply: the account a reset names, and a code texted before a credential change being ended.
34+
- A blank invitation role or an empty entry in a role list (`"member,"`) is still refused `400 ROLE_NOT_FOUND` with the sentence that says the role is empty. The vendor now drops empty entries itself.
35+
- A locked account's address-change link is still refused with the lockout answer, and the address does not move.
36+
- An address-change link opened without signing in, for an account enrolled in a second factor, still does not move the address: it is refused `401 UNAUTHENTICATED` ("Sign in to confirm the address change"), and no session is issued. Before, the link met the second-factor challenge; it no longer signs anyone in. Signed in, the link works as before; an account with no second factor follows the vendor's link.
37+
- The remove-member owner guard reads both roles the way the vendor now does: trimmed, with empty entries dropped.
38+
- `nodemailer` `^10.6.2` (`@objectstack/plugin-email`).
39+
- `@modelcontextprotocol/sdk` `^1.32.2` (`@objectstack/mcp`, `@objectstack/connector-mcp`).
40+
41+
The transitive `ws`, `cross-spawn` and `minimatch` advisories, and `undici` 8.14.0, are fixed in this repository's own install only; nothing published declares them. No API or export of these packages changes.

‎examples/app-showcase/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"test:smoke": "playwright test --config=playwright.config.ts"
2424
},
2525
"dependencies": {
26-
"@modelcontextprotocol/sdk": "^1.30.1",
26+
"@modelcontextprotocol/sdk": "^1.32.2",
2727
"@objectstack/cloud-connection": "workspace:*",
2828
"@objectstack/connector-mcp": "workspace:*",
2929
"@objectstack/connector-openapi": "workspace:*",

‎packages/connectors/connector-mcp/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"typecheck": "tsc --noEmit && pnpm check:test-typecheck"
2828
},
2929
"dependencies": {
30-
"@modelcontextprotocol/sdk": "^1.30.1",
30+
"@modelcontextprotocol/sdk": "^1.32.2",
3131
"@objectstack/core": "workspace:*",
3232
"@objectstack/spec": "workspace:*",
3333
"@objectstack/types": "workspace:*"

‎packages/drivers/driver-odata/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"@objectstack/core": "workspace:*",
3939
"@objectstack/spec": "workspace:*",
4040
"@objectstack/types": "workspace:*",
41-
"fast-xml-parser": "^5.12.0",
41+
"fast-xml-parser": "^5.12.1",
4242
"zod": "^4.6.6"
4343
},
4444
"devDependencies": {

‎packages/mcp/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"typecheck": "tsc --noEmit && pnpm check:test-typecheck"
2828
},
2929
"dependencies": {
30-
"@modelcontextprotocol/sdk": "^1.30.1",
30+
"@modelcontextprotocol/sdk": "^1.32.2",
3131
"@objectstack/core": "workspace:*",
3232
"@objectstack/formula": "workspace:*",
3333
"@objectstack/lint": "workspace:*",

‎packages/metadata/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
"@objectstack/spec": "workspace:*",
128128
"@objectstack/types": "workspace:*",
129129
"chokidar": "^5.0.0",
130-
"glob": "^14.0.3",
130+
"glob": "^14.0.6",
131131
"js-yaml": "^5.4.1",
132132
"zod": "^4.6.6"
133133
},

‎packages/plugins/plugin-auth/package.json‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@
4848
"gen:test-typecheck-debt": "tsx ../../../scripts/check-test-typecheck.mts --update --package packages/plugins/plugin-auth --project tsconfig.test.json"
4949
},
5050
"dependencies": {
51-
"@better-auth/core": "1.7.12",
52-
"@better-auth/oauth-provider": "1.7.12",
53-
"@better-auth/scim": "1.7.12",
54-
"@better-auth/sso": "1.7.12",
51+
"@better-auth/core": "1.7.29",
52+
"@better-auth/oauth-provider": "1.7.29",
53+
"@better-auth/scim": "1.7.29",
54+
"@better-auth/sso": "1.7.29",
5555
"@noble/hashes": "^2.4.0",
5656
"@objectstack/core": "workspace:*",
5757
"@objectstack/platform-objects": "workspace:*",
@@ -60,8 +60,8 @@
6060
"@objectstack/service-messaging": "workspace:*",
6161
"@objectstack/spec": "workspace:*",
6262
"@objectstack/types": "workspace:*",
63-
"better-auth": "1.7.12",
64-
"fast-xml-parser": "5.12.0",
63+
"better-auth": "1.7.29",
64+
"fast-xml-parser": "5.12.1",
6565
"hono": "^4.13.16",
6666
"jose": "^6.2.12"
6767
},

‎packages/plugins/plugin-auth/src/accept-invitation-adopt-membership.test.ts‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,30 @@ describe('#29158 — invite-member refuses a blank role 400 ROLE_NOT_FOUND, like
592592
});
593593
}
594594

595+
// The bearer lane: the global before hook runs ahead of bearer()'s
596+
// conversion, so a bare session read there misses this caller and the
597+
// vendor (1.7.29) normalizes "member," to "member" and answers 200.
598+
it('an empty entry in a role list, from a BEARER caller, is refused 400 ROLE_NOT_FOUND and no invitation row exists', async () => {
599+
const { engine, manager } = await bootWithOwner();
600+
const signedIn = await post(manager, '/sign-in/email', { email: 'owner@example.com', password: PASSWORD });
601+
expect(signedIn.status, await signedIn.clone().text()).toBe(200);
602+
const bearer = signedIn.headers.get('set-auth-token');
603+
expect(bearer, 'the sign-in hands out a bearer token').toBeTruthy();
604+
const email = 'qa-blank-role-bearer@example.com';
605+
606+
const res = await manager.handleRequest(
607+
new Request(`${BASE}/api/v1/auth/organization/invite-member`, {
608+
method: 'POST',
609+
headers: { 'Content-Type': 'application/json', authorization: `Bearer ${bearer}` },
610+
body: JSON.stringify({ email, role: 'member,', organizationId: DEFAULT_ORG }),
611+
}),
612+
);
613+
const text = await res.clone().text();
614+
expect(res.status, text).toBe(400);
615+
expect(((await res.json()) as any).code).toBe('ROLE_NOT_FOUND');
616+
expect(invitationsFor(engine, email)).toHaveLength(0);
617+
});
618+
595619
it('a delegated admin\'s blank role answers ROLE_NOT_FOUND too — the blank refusal runs before the role cap', async () => {
596620
const { engine, manager } = await bootWithOwner();
597621
const delegate = await signUp(manager, engine, 'delegate.blank@example.com');

‎packages/plugins/plugin-auth/src/account-self-service-refusal-code.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* ## The defect, at the seam
88
*
99
* better-auth (`dist/api/routes/update-user.mjs`, measured against the
10-
* installed `1.7.12`) refuses three conditions on these two doors with
10+
* then-installed `1.7.12`) refuses three conditions on these two doors with
1111
* `APIError.fromStatus("BAD_REQUEST", { message })` — a message and no `code`:
1212
*
1313
* POST /change-email {"newEmail": <the caller's own address>}

‎packages/plugins/plugin-auth/src/auth-manager-auth-instance.ts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,11 @@ export async function createAuthInstance(this: AuthInstanceHost): Promise<Auth<a
278278
// 2. `GET /verify-email?token=…` applies it: `updateUserByEmail(old,
279279
// { email: newEmail, emailVerified: true })`, then re-issues the
280280
// session cookie on the new identity.
281+
// better-auth 1.7.29 changed step 2: the token is bound to the
282+
// account (`userId`), the link no longer signs anyone in (it only
283+
// refreshes the caller's own session cookie), and the new address
284+
// is marked verified only when the old one was. A locked account's
285+
// link is refused ahead of it (`change-email-link-lockout.ts`).
281286
// So the change is confirmed by proving control of the new mailbox —
282287
// 「变更需确认」 — and an unclicked request changes nothing.
283288
//

0 commit comments

Comments
 (0)