Skip to content

[Deps] Next 16.4.5 security release, AI SDK 7.0.163 and patch/minor bundle - #1221

Closed
Aymericr wants to merge 8 commits into
mainfrom
cursor/deps-patch-minor-2026-11-06-8e9f
Closed

Aymericr wants to merge 8 commits into
mainfrom
cursor/deps-patch-minor-2026-11-06-8e9f

Conversation

@Aymericr

@Aymericr Aymericr commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

What does this PR do?

Patch/minor dependency refresh (2026-11-06), led by the Next.js 16.4.5 security release, plus compatibility tests for the boundaries these upgrades touch. Majors are left out and listed below.

Upgrades

Package Before After Notes
next, root override, @next/eslint-plugin-next 16.4.3 16.4.5 16.4.5 fixes 7 moderate advisories. Two apply directly here: response forwarding in self-hosted apps (GHSA-pc58-hwjq-p385; /api/plugins/mint/[...path] forwards fetched responses) and the image-optimizer SVG bypass (GHSA-7qx7-33qx-rqx2; images.remotePatterns allows **). 16.4.4 contains backported fixes only.
ai 7.0.154 7.0.163
@ai-sdk/openai 4.0.103 4.0.109
@ai-sdk/anthropic 4.0.89 4.0.97 Structured-output mode selection changed in 4.0.94–4.0.95 (native structured output vs. the forced JSON tool). All AI SDK packages resolve to one copy of @ai-sdk/provider 4.0.36 and @ai-sdk/provider-utils 5.0.75.
tailwindcss, @tailwindcss/postcss 4.3.3 4.3.4 The root @tailwindcss/oxide-* pins move to 4.3.4 and the lightningcss-* pins to 1.33.0, matching what @tailwindcss/node@4.3.4 requires.
@lingui/{core,message-utils,cli,conf,format-po} 6.10.1 6.12.0 Exact pins, kept aligned across all workspaces. @lingui/message-utils now uses @noble/hashes 2.x instead of js-sha256, so that package becomes a runtime transitive of @pascal-app/core.
motion 14.9.1, lucide-react 1.69.0, geist 1.9.1, @iconify/react 6.0.4, three-mesh-bvh 0.9.18
@biomejs/biome 2.6.5, ultracite 8.1.1, eslint 10.14.0, globals 17.14.0, playwright-core 1.65.0, fast-xml-parser 5.12.0, dotenv-cli 11.1.0, fake-indexeddb 6.2.7, @types/node 26.6.6 dev tooling
hono override 4.13.14 4.13.16
@hono/node-server 1.19.17 1.19.18 The advisory fix needs 2.x, which is in #1222

Already at the latest stable and unchanged: React/React DOM 19.3.1, three 0.187.0 and @types/three, @react-three/fiber 9.8.2, drei 10.7.9, xr 6.6.32, zustand 5.0.16, zod 4.6.7, TypeScript 7.0.2, turbo 2.11.10, MCP SDK 2.4.0, Bun 1.4.4, and Node 22.23.4 in Docker and CI. Stripe, Drizzle, Supabase, Sentry, PostHog, Base UI and Expo are not dependencies of this repo. Nested minimatch copies were deduped onto the hoisted 10.2.6, and bun install --frozen-lockfile reproduces the lockfile.

Integration fix required by the upgrade: Biome 2.6.4–2.6.5 changed its Markdown formatter, which now inserts a blank line before lists. 10 Markdown files are reformatted. The changes are whitespace-only and render the same.

New compatibility tests

  • scripts/i18n-provider.test.ts drives the real @ai-sdk/openai and @ai-sdk/anthropic providers through configuredProvider (the i18n translation command) against a local Bun.serve fixture, with no live calls. It covers:

    • the strict JSON schema sent to the OpenAI Responses API and the auth headers
    • Anthropic native structured output, and the forced json tool fallback for models without it
    • rejection of replies that violate the schema or aren't JSON
    • a non-retryable 401
    • ICU validation of the provider's output
  • configuredProvider now takes its environment as an argument (defaulting to process.env) so the tests don't mutate global env.

  • apps/editor/scripts/smoke-production-server.ts (bun run smoke) runs as a new CI step after Build, with a 5-minute timeout, and at the end of bun run ci. It boots next start on Node over the production build and checks:

    • config redirects and the /embed CSP header
    • the proxy passing ?lang through to the server-rendered <html lang>
    • the self-host gate for a non-loopback Host
    • scene route handlers: create, read, rename, then read again with no stale cache, plus a 409 on a stale If-Match
    • SSR of /project/[id]
    • the image optimizer serving WebP and refusing SVG

    Every request has a timeout. The server is waited on, with a SIGKILL fallback, and interrupts are forwarded to it.

  • packages/viewer/src/components/viewer/scene-bvh.test.tsx mounts <SceneBvh> with @react-three/test-renderer and compares BVH-accelerated hits with three's brute-force raycast. The geometry is a segmented wall, a CSG wall with an opening, and indexed and non-indexed torus knots. It runs both all-hits and firstHitOnly, including axis-parallel rays on bound faces, and checks how excluded and degenerate meshes are handled and how trees are disposed. three-mesh-bvh 0.9.17 rewrote BVH construction.

Coverage gaps: the i18n tool doesn't use AI streaming, tool calls or cancellation, so none are tested. The image optimizer's handling of remote URLs isn't exercised, because the optimizer refuses loopback hosts by design. No WebGL rendering runs in CI, so interaction coverage is the R3F test renderer plus the existing R3F pointer-event differential suite.

Majors and remaining advisories not in this PR

  • @hono/node-server 1.19 → 2.1.6, which clears GHSA-rmxm-3fg6-px4f (moderate, serveStatic; Pascal doesn't call it). This is in #1222.
  • entities 8 → 9 (root dev dependency): needs its own migration.
  • typescript 6.0.3 → 7 in packages/eslint-config: blocked on typescript-eslint support for TS 7.
  • minimatch GHSA-g3hv-75wg-m249 (moderate) and deepmerge GHSA-gcqx-w48m-w2h4 (low): both are dev-only transitives of the eslint chain and ultracite, and no in-range fix exists upstream.
  • hono 5 is only at rc, so it isn't adopted.

How to test

  1. bun install --frozen-lockfile: the lockfile is reproducible.
  2. bun run ci: lint, i18n check, skill validation, typecheck, tests, build and the production-server smoke all pass locally.
  3. bun test scripts/i18n-provider.test.ts and cd packages/viewer && bun test src/components/viewer/scene-bvh.test.tsx.

Screenshots / screen recording

N/A — non-visual change

Checklist

  • I've tested this locally with bun dev
  • My code follows the existing code style (run bun check to verify)
  • I've updated relevant documentation (if applicable)
  • This PR targets the main branch

Rollout and rollback: these are library upgrades with no data or schema migration. Revert the PR to roll back; the lockfile restores the previous resolution exactly. Production surfaces affected: the editor Next app (routes, proxy, image optimizer, CSS build), the published @pascal-app/{core,editor,viewer,mcp,nodes} packages (Lingui 6.12, motion, lucide and three-mesh-bvh ranges), the CLI web runtime archive built from the editor, and the i18n translate tooling (dev-only).

Open in Web Open in Cursor 

… 7.0.163

- next / @next/eslint-plugin-next 16.4.3 -> 16.4.5 (Nov 3 security release)
- ai 7.0.163, @ai-sdk/openai 4.0.109, @ai-sdk/anthropic 4.0.97
- tailwindcss / @tailwindcss/postcss 4.3.4; oxide 4.3.4 and lightningcss 1.33.0
  platform pins follow @tailwindcss/node
- @lingui/* 6.12.0, motion 14.9.1, lucide-react 1.69.0, geist 1.9.1,
  @iconify/react 6.0.4, three-mesh-bvh 0.9.18
- @biomejs/biome 2.6.5, ultracite 8.1.1, eslint 10.14.0, globals 17.14.0,
  playwright-core 1.65.0, fast-xml-parser 5.12.0, dotenv-cli 11.1.0,
  fake-indexeddb 6.2.7, @types/node 26.6.6
- hono override 4.13.16, @hono/node-server 1.19.18
…xture

configuredProvider takes its environment as an argument so tests can point
the real OpenAI and Anthropic providers at a local HTTP fixture. Covers the
Responses API strict JSON schema, Anthropic native structured output and
its forced JSON-tool fallback, schema-violating and non-JSON replies, a
non-retryable auth error, and ICU validation of provider output.
Boots next start over the built app and checks config redirects and
headers, the proxy's locale and self-host gate, server-rendered pages,
scene route handlers (including that force-dynamic reads are never stale
and stale If-Match writes conflict) and that the image optimizer serves
raster images but refuses SVG.
Mounts <SceneBvh> through the R3F test renderer and compares accelerated
hits (all hits and firstHitOnly) with three's brute-force raycast on a
segmented wall, a CSG wall with an opening, and indexed and non-indexed
torus knots, including axis-parallel rays on bound faces. Also checks
excluded and degenerate meshes are skipped and that unmount disposes only
the trees SceneBvh built.
@Aymericr Aymericr added the bot:deps label Nov 6, 2026 — with Cursor
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-06T05:55:01.700207Z 2cf4eb3 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2cf4eb31b7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".


try {
server = spawn(
process.execPath,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Run the production smoke server under Node

In the inspected CI workflow, bun run smoke launches this file through Bun, so process.execPath resolves to the Bun executable and the Next server is also run under Bun. The shipped editor instead starts its production server with node (packages/cli/src/editor-process.ts:234-240), while CI explicitly installs Node 22.23.4. This means Node-specific Next or route-handler regressions can pass the new compatibility test—and Bun-specific failures can block CI—despite the test claiming to exercise the production server; spawn the configured Node binary rather than process.execPath.

Useful? React with 👍 / 👎.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 2cf4eb3. Configure here.

Run next start on Node as production does, bound every request and the CI
step with timeouts, wait for the server to exit (SIGKILL fallback) and
forward interrupts, treat a signal exit as a startup failure, match
<html lang> exactly, assert SVG refusal by status and content type, and
include the smoke in bun run ci.
cursor Bot pushed a commit that referenced this pull request Nov 6, 2026
Both branches changed the @hono/node-server range in the root overrides
and packages/mcp, and bun.lock, from the same base. Keep @hono/node-server
^2.1.6 with #1221's hono 4.13.16 and next 16.4.5 overrides; bun.lock is
#1221's lockfile re-resolved for node-server 2.1.6 only.
Aymericr added a commit that referenced this pull request Nov 7, 2026
…top of #1221 (#1222)

* deps: patch/minor bumps incl. Next 16.4.5 security release and AI SDK 7.0.163

- next / @next/eslint-plugin-next 16.4.3 -> 16.4.5 (Nov 3 security release)
- ai 7.0.163, @ai-sdk/openai 4.0.109, @ai-sdk/anthropic 4.0.97
- tailwindcss / @tailwindcss/postcss 4.3.4; oxide 4.3.4 and lightningcss 1.33.0
  platform pins follow @tailwindcss/node
- @lingui/* 6.12.0, motion 14.9.1, lucide-react 1.69.0, geist 1.9.1,
  @iconify/react 6.0.4, three-mesh-bvh 0.9.18
- @biomejs/biome 2.6.5, ultracite 8.1.1, eslint 10.14.0, globals 17.14.0,
  playwright-core 1.65.0, fast-xml-parser 5.12.0, dotenv-cli 11.1.0,
  fake-indexeddb 6.2.7, @types/node 26.6.6
- hono override 4.13.16, @hono/node-server 1.19.18

* docs: apply Biome 2.6.5 Markdown formatting (blank line before lists)

* test(i18n): drive the AI SDK translation providers against a local fixture

configuredProvider takes its environment as an argument so tests can point
the real OpenAI and Anthropic providers at a local HTTP fixture. Covers the
Responses API strict JSON schema, Anthropic native structured output and
its forced JSON-tool fallback, schema-violating and non-JSON replies, a
non-retryable auth error, and ICU validation of provider output.

* ci(editor): smoke-test the production Next server after the build

Boots next start over the built app and checks config redirects and
headers, the proxy's locale and self-host gate, server-rendered pages,
scene route handlers (including that force-dynamic reads are never stale
and stale If-Match writes conflict) and that the image optimizer serves
raster images but refuses SVG.

* test(viewer): pin SceneBvh raycasts to stock three on real geometry

Mounts <SceneBvh> through the R3F test renderer and compares accelerated
hits (all hits and firstHitOnly) with three's brute-force raycast on a
segmented wall, a CSG wall with an opening, and indexed and non-indexed
torus knots, including axis-parallel rays on bound faces. Also checks
excluded and degenerate meshes are skipped and that unmount disposes only
the trees SceneBvh built.

* deps(mcp): @hono/node-server 2.1.6 to clear GHSA-rmxm-3fg6-px4f

The serveStatic path-decoding bypass is fixed only in 2.1.3+. Pascal does
not call serveStatic; the adapter is reached through
@modelcontextprotocol/node's streamable HTTP transport, which already
accepts ^2.1.3. v2 keeps the public API and rewrites request/response
bridging, so a test now covers a full tool result inside a session and
the refusal of a session after DELETE.

* ci(editor): harden the production server smoke

Run next start on Node as production does, bound every request and the CI
step with timeouts, wait for the server to exit (SIGKILL fallback) and
forward interrupts, treat a signal exit as a startup failure, match
<html lang> exactly, assert SVG refusal by status and content type, and
include the smoke in bun run ci.

* test(viewer): compare tied BVH hits by where the ray stops

* deps: dedupe nested minimatch onto the hoisted 10.2.6

* test(viewer): give the SceneBvh test the animation-frame globals R3F teardown needs

Unmounting stops three's animation loop through cancelAnimationFrame,
which Bun does not provide; mirror the polyfill other R3F tests use so
teardown completes instead of logging an error.

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
@Aymericr Aymericr closed this Nov 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants