@devries-cameron20 / composio-1 / commits / 844bdca0d
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

fix(docs): bump next to 16.4.5 for RSC RCE advisory (#5271)

## Summary Karan asked to fix our exposure to GHSA-xqc2-xf4c-x3h3, a critical unauthenticated RCE in React Server Components. The docs site runs `next@16.3.8`, which bundles an affected `react-server-dom` build. No patched 16.3.x release exists. - Bump `docs` to `next@16.4.5`. This also covers the Next.js advisories published on 2026-11-03 (GHSA-pc58-hwjq-p385, GHSA-rhh4-g77r-r9qj, GHSA-vvgp-ww4w-46vf, GHSA-7qx7-33qx-rqx2, GHSA-mfr8-8qww-v76h). - Port `patches/next@16.3.8.patch` to `next@16.4.5`. The patch content is the same: `Vary` uses `appendHeader` instead of `setHeader` in both `app-page-runtime.js` builds. Supersedes #5083 and the docs part of #5150, which target 16.4.1. That version is still affected by the 2026-11-03 advisories. ## Checks run - `bun install`: the patch applies; `node_modules/next` contains `appendHeader('Vary', …)`. - `bun run types:check`: passes. - I did not run `bun run build` locally. CI and the Vercel preview will run it. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Karan Vaidya [zen] <karan@composio.dev> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

composio-zen[bot] committed Nov 9, 2026 at 14:47 UTC 844bdca0d89e848295421fa83bc19a5bee203e51
3 files changed +22 -22
docs/bun.lock
+12 -12
@@ -29,7 +29,7 @@
29 "lucide-react": "^1.42.0",
30 "mermaid": "^11.17.2",
31 "motion": "^12.43.0",
32 - "next": "16.3.8",
32 + "next": "16.4.5",
33 "nucleo-pixel": "^1.5.1",
34 "posthog-js": "^1.428.4",
35 "react": "^19.2.8",
@@ -102,7 +102,7 @@
102 },
103 },
104 "patchedDependencies": {
105 - "next@16.3.8": "patches/next@16.3.8.patch",
105 + "next@16.4.5": "patches/next@16.4.5.patch",
106 },
107 "overrides": {
108 "@mastra/mcp": "1.17.2",
@@ -455,23 +455,23 @@
455
456 "@modelcontextprotocol/server-legacy": ["@modelcontextprotocol/server-legacy@2.3.1", "", { "dependencies": { "@modelcontextprotocol/core": "2.3.1", "content-type": "^1.0.5", "cors": "^2.8.5", "express-rate-limit": "^8.2.1", "pkce-challenge": "^5.0.0", "raw-body": "^3.0.0", "zod": "^4.2.0" }, "peerDependencies": { "express": "^4.18.0 || ^5.0.0" }, "optionalPeers": ["express"] }, "sha512-+cuB+hl7s8DiFXIt13le3cD2wZPOeDYwlycAkRMPljqqNbOLekGRiyslx8WXfqaXSCveS1eDD8/B8rmxz9BZFQ=="],
457
458 - "@next/env": ["@next/env@16.3.8", "", {}, "sha512-Al9zqHVV7TJv0eFuOU4U7Lvv74PTih4Ch63sk2xCIpSTkE3udFnaOcnzP2lQVymiL7yS9Cj2iClUXlR3EQ5sEw=="],
458 + "@next/env": ["@next/env@16.4.5", "", {}, "sha512-JwSPwpdkZL5VMl2jA/q+JI8MZdweAL3xmw5/tb9y/TLtmS0YXZnmYDzSihwk8xTj1OL+WM53gTqaj96yuLp6Xw=="],
459
460 - "@next/swc-darwin-arm64": ["@next/swc-darwin-arm64@16.3.8", "", { "os": "darwin", "cpu": "arm64" }, "sha512-2JPRMh2nmQG5CiL7cXGL9AGwnPWJQ//cTtAUCT+w511QHk79SYz3LGv/pc5X643B/WEO0rvu3Yww0hqwt3kgeA=="],
460 + "@next/swc-darwin-arm64": ["@next/swc-darwin-arm64@16.4.5", "", { "os": "darwin", "cpu": "arm64" }, "sha512-W5TniBzWKASbNNwHZ/S/f1MxQUXU/LdjklVMWA0Ujbfl7SZnUzFls45hO0i/sF7Bx1jJBWp7WWmoQajXtX/O8A=="],
461
462 - "@next/swc-darwin-x64": ["@next/swc-darwin-x64@16.3.8", "", { "os": "darwin", "cpu": "x64" }, "sha512-GZtCCOBKJ4leVIT/Th0llWKhD1ca92lzbQiS5R5ON9QkoiFnilFsebDae1JU2a3HWoKMEmEZWGs1AGLavVM72Q=="],
462 + "@next/swc-darwin-x64": ["@next/swc-darwin-x64@16.4.5", "", { "os": "darwin", "cpu": "x64" }, "sha512-uWq4qkHapBDS1oFltWS4YxTb9pLHAtLNcpbuK6SmRsebLYZqpBML/j/C0op+50JYGTpZgVL/DWNt/6oWlamrrw=="],
463
464 - "@next/swc-linux-arm64-gnu": ["@next/swc-linux-arm64-gnu@16.3.8", "", { "os": "linux", "cpu": "arm64" }, "sha512-O659ygeQYqneJ1fBKMpFxIFqYkYswu8IAS1OCKK/4f3ZgJJm1dRz4fVJZRi/kLLWjnBKnebOePA4WNv+sV1pVA=="],
464 + "@next/swc-linux-arm64-gnu": ["@next/swc-linux-arm64-gnu@16.4.5", "", { "os": "linux", "cpu": "arm64", "libc": "glibc" }, "sha512-FdRcyOx5u5P51mlAqLB9EXdd8jZO5fsdHtk4BAQSkqOywCsbTNN/rmw+jO7pnmjNdAtu2AG46NzbCL2FPDrrgw=="],
465
466 - "@next/swc-linux-arm64-musl": ["@next/swc-linux-arm64-musl@16.3.8", "", { "os": "linux", "cpu": "arm64" }, "sha512-dSjKSyWpzxoO1d3DIZZcP4XJcNaKeLmxQMFOiYl5vuBRMmweIqnAhty8tAmRsvTss779cK1FtYnDMj40e4TQlg=="],
466 + "@next/swc-linux-arm64-musl": ["@next/swc-linux-arm64-musl@16.4.5", "", { "os": "linux", "cpu": "arm64", "libc": "musl" }, "sha512-cyvmmgtRXR8aGVT86wi9Py53IlfyCx7P2fZxuAXAoTummDnhKtUyjrMeXfapqp4qgD+gT5RqyGD/VfA16jEK7Q=="],
467
468 - "@next/swc-linux-x64-gnu": ["@next/swc-linux-x64-gnu@16.3.8", "", { "os": "linux", "cpu": "x64" }, "sha512-lbqOuz3RPRcv+o9msNsJw5x4+Y1ZwPTs6vmL6DCf7i0fZfvng/F59wyeDwqHIvV0mK//RBy/jJkZ+nCKsSMXjQ=="],
468 + "@next/swc-linux-x64-gnu": ["@next/swc-linux-x64-gnu@16.4.5", "", { "os": "linux", "cpu": "x64", "libc": "glibc" }, "sha512-hPc+Fl+N22DAvqZHq559NmamXboOX5Lu8I5Wl0DezfrhTk1Zz21NQeYoZDmNI/NjTcrdsVxM72Fzn2lI+Q+vAw=="],
469
470 - "@next/swc-linux-x64-musl": ["@next/swc-linux-x64-musl@16.3.8", "", { "os": "linux", "cpu": "x64" }, "sha512-+316WswI8ScVgZeUd+1KGaXkHhaYQzCjvH/05TZSpJ8zBizb1a4G7DtO7F12jcBIqMOtsz9ji1t48fmKtzqsGA=="],
470 + "@next/swc-linux-x64-musl": ["@next/swc-linux-x64-musl@16.4.5", "", { "os": "linux", "cpu": "x64", "libc": "musl" }, "sha512-gbACYE8IP/jlprNTpiWXHb8N9CofOzpnEwH2SrIz1dUbiJf1FbDssDupCAPeP1Taxe8mgG20sGZamJI7KFOdZw=="],
471
472 - "@next/swc-win32-arm64-msvc": ["@next/swc-win32-arm64-msvc@16.3.8", "", { "os": "win32", "cpu": "arm64" }, "sha512-ji0gd4kMYUxO+1fJBIbiBVRCjzG/lloiyCccnlebvb1ZJ5qXCPZqYg4Jl1DrrixnWNMKylzgpmMWx0yNDYXlzw=="],
472 + "@next/swc-win32-arm64-msvc": ["@next/swc-win32-arm64-msvc@16.4.5", "", { "os": "win32", "cpu": "arm64" }, "sha512-+8gj++ZMo8H20Xh2ijjNqyFk5LPLw0AC4Fs4Tq/G94rjjQXhOjN4jgSWsWKPFsyY26hfIeemJIwKtMxOsp5GBA=="],
473
474 - "@next/swc-win32-x64-msvc": ["@next/swc-win32-x64-msvc@16.3.8", "", { "os": "win32", "cpu": "x64" }, "sha512-WcTlaKt/TWkh5kUjdJcUmB1XgZ+1c6fz4Y9fDHL73YNSdGaUWjceeWrrlwF0nv19iABYWC4iAq1oX1w4Bn0vfg=="],
474 + "@next/swc-win32-x64-msvc": ["@next/swc-win32-x64-msvc@16.4.5", "", { "os": "win32", "cpu": "x64" }, "sha512-qNZj66pYXnaWLiF9R9GUbfBdrCv7kC6TaZfIwB2KH5WPc/8pEM3nVOj8hpQhWJU8S94rlH5MPDcX15+RrgUhiw=="],
475
476 "@openai/agents": ["@openai/agents@0.13.5", "", { "dependencies": { "@openai/agents-core": "0.13.5", "@openai/agents-openai": "0.13.5", "@openai/agents-realtime": "0.13.5", "debug": "^4.4.0", "openai": "^6.46.0" }, "peerDependencies": { "zod": "^4.0.0" } }, "sha512-zmVEQrl2gIvD0Xq9ZcxPMXRkfafgaitESHU/CHA+ill10A8OQu4/pKgKW4oWb99KnJD/lP4Tnn9vX0LgCx9ouw=="],
477
@@ -1609,7 +1609,7 @@
1609
1610 "negotiator": ["negotiator@1.1.0", "", { "dependencies": { "content-type": "^2.1.0" } }, "sha512-NMPBRMJgiQHjbd8phG3Vebdx4kZ1H121rbl5IkMqeOsahptB9BKo/d7oJ3zTXqTgagn2bWlNSXkh0QUGM31RYg=="],
1611
1612 - "next": ["next@16.3.8", "", { "dependencies": { "@next/env": "16.3.8", "@swc/helpers": "0.5.23", "baseline-browser-mapping": "^2.9.19", "caniuse-lite": "^1.0.30001579", "postcss": "8.5.23", "styled-jsx": "5.1.6" }, "optionalDependencies": { "@next/swc-darwin-arm64": "16.3.8", "@next/swc-darwin-x64": "16.3.8", "@next/swc-linux-arm64-gnu": "16.3.8", "@next/swc-linux-arm64-musl": "16.3.8", "@next/swc-linux-x64-gnu": "16.3.8", "@next/swc-linux-x64-musl": "16.3.8", "@next/swc-win32-arm64-msvc": "16.3.8", "@next/swc-win32-x64-msvc": "16.3.8", "sharp": "^0.35.4" }, "peerDependencies": { "@opentelemetry/api": "^1.1.0", "@playwright/test": "^1.51.1", "babel-plugin-react-compiler": "*", "react": "^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0", "react-dom": "^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0", "sass": "^1.3.0" }, "optionalPeers": ["@opentelemetry/api", "@playwright/test", "babel-plugin-react-compiler", "sass"], "bin": { "next": "dist/bin/next" } }, "sha512-U7QEZaTini6wKrb8A8hqLLqYQyCetegKjCpJOyxk642vWoMoU1x5PyZCJFvgYgiptA8xc5j/9xYlZFO7w9Sjmw=="],
1612 + "next": ["next@16.4.5", "", { "dependencies": { "@next/env": "16.4.5", "@swc/helpers": "0.5.23", "baseline-browser-mapping": "^2.9.19", "caniuse-lite": "^1.0.30001579", "postcss": "8.5.23", "styled-jsx": "5.1.6" }, "optionalDependencies": { "@next/swc-darwin-arm64": "16.4.5", "@next/swc-darwin-x64": "16.4.5", "@next/swc-linux-arm64-gnu": "16.4.5", "@next/swc-linux-arm64-musl": "16.4.5", "@next/swc-linux-x64-gnu": "16.4.5", "@next/swc-linux-x64-musl": "16.4.5", "@next/swc-win32-arm64-msvc": "16.4.5", "@next/swc-win32-x64-msvc": "16.4.5", "sharp": "^0.35.5" }, "peerDependencies": { "@opentelemetry/api": "^1.1.0", "@playwright/test": "^1.51.1", "babel-plugin-react-compiler": "*", "react": "^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0", "react-dom": "^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0", "sass": "^1.3.0" }, "optionalPeers": ["@opentelemetry/api", "@playwright/test", "babel-plugin-react-compiler", "sass"], "bin": { "next": "dist/bin/next" } }, "sha512-rmdfsWosjTUO+6R0S3KokoIk6Kj0sWDRTe86tZHdqaWH/oXq/udX3/4xb+YQi7aWbyEFoglDU54kaifLCdXbBw=="],
1613
1614 "next-themes": ["next-themes@0.4.6", "", { "peerDependencies": { "react": "^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc", "react-dom": "^16.8 || ^17 || ^18 || ^19 || ^19.0.0-rc" } }, "sha512-pZvgD5L0IEvX5/9GWyHMf3m8BKiVQwsCMHfoFosXtXBMnaS0ZnIJ9ST4b4NqLVKDEm8QBxoNNGNaBv2JNF6XNA=="],
1615
docs/package.json
+2 -2
@@ -70,7 +70,7 @@
70 "lucide-react": "^1.42.0",
71 "mermaid": "^11.17.2",
72 "motion": "^12.43.0",
73 - "next": "16.3.8",
73 + "next": "16.4.5",
74 "nucleo-pixel": "^1.5.1",
75 "posthog-js": "^1.428.4",
76 "react": "^19.2.8",
@@ -141,7 +141,7 @@
141 "unist-util-visit": "^5.1.0"
142 },
143 "patchedDependencies": {
144 - "next@16.3.8": "patches/next@16.3.8.patch"
144 + "next@16.4.5": "patches/next@16.4.5.patch"
145 },
146 "overrides": {
147 "@mastra/mcp": "1.17.2",
docs/patches/next@16.4.5.patch renamed
+8 -8
@@ -1,26 +1,26 @@
1 diff --git a/dist/build/templates/app-page-runtime.js b/dist/build/templates/app-page-runtime.js
2 -index dfec9df74e9095294ca8e0f1c4b9f4601421025d..085b954679b0126bda1f55cf19bac3dfde943ccf 100644
2 +index 393c9ef..b979f22 100644
3 --- a/dist/build/templates/app-page-runtime.js
4 +++ b/dist/build/templates/app-page-runtime.js
5 -@@ -460,7 +460,7 @@ function createAppPageEntrypoint({ tree, page, pathname, require: __next_app_req
5 +@@ -480,7 +480,7 @@ function createAppPageEntrypoint({ tree, page, pathname, require: __next_app_req
6 };
7 try {
8 const varyHeader = routeModule.getVaryHeader(resolvedPathname, interceptionRoutePatterns);
9 - res.setHeader('Vary', varyHeader);
10 + res.appendHeader('Vary', varyHeader);
11 - let parentSpan;
12 - const invokeRouteModule = async (span, context)=>{
11 + const invokeRouteModule = async (span, context, renderOperation)=>{
12 const nextReq = new _node.NodeNextRequest(req);
13 + const nextRes = new _node.NodeNextResponse(res);
14 diff --git a/dist/esm/build/templates/app-page-runtime.js b/dist/esm/build/templates/app-page-runtime.js
15 -index d991e81854e6685017936dd21fb9c4631edf9478..51ecfe3ed4b11a119b0cb6880d3076c460f49375 100644
15 +index b28d926..b21a079 100644
16 --- a/dist/esm/build/templates/app-page-runtime.js
17 +++ b/dist/esm/build/templates/app-page-runtime.js
18 -@@ -477,7 +477,7 @@ export function createAppPageEntrypoint({ tree, page, pathname, require: __next_
18 +@@ -503,7 +503,7 @@ export function createAppPageEntrypoint({ tree, page, pathname, require: __next_
19 };
20 try {
21 const varyHeader = routeModule.getVaryHeader(resolvedPathname, interceptionRoutePatterns);
22 - res.setHeader('Vary', varyHeader);
23 + res.appendHeader('Vary', varyHeader);
24 - let parentSpan;
25 - const invokeRouteModule = async (span, context)=>{
24 + const invokeRouteModule = async (span, context, renderOperation)=>{
25 const nextReq = new NodeNextRequest(req);
26 + const nextRes = new NodeNextResponse(res);