Skip to content

[Snyk] Security upgrade next from 15.4.10 to 16.1.5#48

Open
Krosebrook wants to merge 2 commits intomainfrom
snyk-fix-42536e7adc3bdedf5a9876f78cfb96b8
Open

[Snyk] Security upgrade next from 15.4.10 to 16.1.5#48
Krosebrook wants to merge 2 commits intomainfrom
snyk-fix-42536e7adc3bdedf5a9876f78cfb96b8

Conversation

@Krosebrook
Copy link
Copy Markdown
Owner

@Krosebrook Krosebrook commented Jan 31, 2026

snyk-top-banner

Snyk has created this PR to fix 2 vulnerabilities in the pnpm dependencies of this project.

Snyk changed the following file(s):

  • js/testapps/next/package.json
⚠️ Warning
Failed to update the pnpm-lock.yaml, please update manually before merging.

Vulnerabilities that will be fixed with an upgrade:

Issue Score
high severity Allocation of Resources Without Limits or Throttling
SNYK-JS-NEXT-15104645
  696  
high severity Allocation of Resources Without Limits or Throttling
SNYK-JS-NEXT-15105315
  696  

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.

For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic


Learn how to fix vulnerabilities with free interactive lessons:

🦉 Allocation of Resources Without Limits or Throttling


Note

Medium Risk
Major Next.js version bump in the js/testapps/next sample app; while scoped to a test app, it can introduce breaking changes in build/runtime behavior and may require a lockfile update.

Overview
Updates the js/testapps/next sample app dependency on next from ^15.4.10 to ^16.1.5 (Snyk-driven security upgrade to address reported vulnerabilities).

No other code changes are included; reviewers should ensure the pnpm lockfile is regenerated and the sample app still builds/runs under Next 16.

Written by Cursor Bugbot for commit 586d986. This will update automatically on new commits. Configure here.


Summary by cubic

Upgrade Next.js in js/testapps/next from 15.4.10 to 16.1.5 to fix two high-severity vulnerabilities and keep the test app on current security patches.

  • Dependencies

    • next: ^15.4.10 → ^16.1.5 (major upgrade; potential breaking changes)
  • Migration

    • Run pnpm install in js/testapps/next to regenerate pnpm-lock.yaml.
    • Verify dev and production builds run (pnpm dev, pnpm build).
    • Review Next 16 breaking changes if the app uses deprecated/removed features.

Written for commit 586d986. Summary will update on new commits.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Jan 31, 2026

Important

Review skipped

Ignore keyword(s) in the title.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • 🔍 Trigger a full review
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch snyk-fix-42536e7adc3bdedf5a9876f78cfb96b8

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello @Krosebrook, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request automates a critical security update for the next dependency within the js/testapps/next project. The primary goal is to mitigate two high-severity vulnerabilities by upgrading the next package to a more secure version, thereby enhancing the application's resilience against resource exhaustion attacks.

Highlights

  • Dependency Upgrade: The next dependency has been upgraded from version 15.4.10 to 16.1.5 in js/testapps/next/package.json.
  • Security Fix: This upgrade addresses two high-severity vulnerabilities (SNYK-JS-NEXT-15104645 and SNYK-JS-NEXT-15105315) related to 'Allocation of Resources Without Limits or Throttling'.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request from Snyk upgrades the next dependency to version ^16.1.5 to fix security vulnerabilities. While the upgrade is important, the PR is incomplete as it stands. The pnpm-lock.yaml file has not been updated, which means the dependency version won't actually be upgraded upon installation. Additionally, a related devDependency in another package within the workspace has not been updated, which could lead to testing inconsistencies. I've left a comment with details on the necessary changes to complete this upgrade.

"@genkit-ai/next": "workspace:*",
"genkit": "workspace:*",
"next": "^15.4.10",
"next": "^16.1.5",
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

critical

This dependency upgrade is a breaking change and has wider implications in the monorepo that need to be addressed before merging:

  1. Missing Lockfile Update: As warned in the PR description, pnpm-lock.yaml has not been updated. You must run pnpm install and commit the updated lockfile to make this change effective.
  2. Inconsistent Dependency: The js/plugins/next/package.json file has a devDependency on next which is still at ^15.4.10. This should also be updated to ^16.1.5 to ensure tests for the plugin run against the same major version of Next.js that this test app is using.

Without these changes, this PR is incomplete and may cause issues.

Copy link
Copy Markdown

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

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: 96fabdadd2

ℹ️ 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".

"@genkit-ai/next": "workspace:*",
"genkit": "workspace:*",
"next": "^15.4.10",
"next": "^16.1.5",
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 Update lockfile to apply Next 16 bump

This change bumps next to ^16.1.5, but the lockfile in the same workspace still pins next@15.2.4 (see js/testapps/next/pnpm-lock.yaml around lines 317/679). Any install that honors the lockfile (e.g., frozen/reproducible installs for this testapp) will either fail or keep using 15.2.4, so the security upgrade won’t actually take effect unless the lockfile(s) are regenerated.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

2 issues found across 1 file

Prompt for AI agents (all issues)

Check if these issues are valid — if so, understand the root cause of each and fix them.


<file name="js/testapps/next/package.json">

<violation number="1" location="js/testapps/next/package.json:22">
P2: This major version upgrade creates an inconsistency with `js/plugins/next/package.json`, which has a devDependency on `next` at `^15.4.10`. Consider updating both to the same major version to ensure the plugin tests run against the same Next.js version used by this test app.</violation>

<violation number="2" location="js/testapps/next/package.json:22">
P2: The lockfile (`pnpm-lock.yaml`) must be updated to reflect this dependency change. Run `pnpm install` and commit the updated lockfile before merging, otherwise the dependency version change will not take effect properly.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

"@genkit-ai/next": "workspace:*",
"genkit": "workspace:*",
"next": "^15.4.10",
"next": "^16.1.5",
Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai bot Jan 31, 2026

Choose a reason for hiding this comment

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

P2: This major version upgrade creates an inconsistency with js/plugins/next/package.json, which has a devDependency on next at ^15.4.10. Consider updating both to the same major version to ensure the plugin tests run against the same Next.js version used by this test app.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At js/testapps/next/package.json, line 22:

<comment>This major version upgrade creates an inconsistency with `js/plugins/next/package.json`, which has a devDependency on `next` at `^15.4.10`. Consider updating both to the same major version to ensure the plugin tests run against the same Next.js version used by this test app.</comment>

<file context>
@@ -19,7 +19,7 @@
     "@genkit-ai/next": "workspace:*",
     "genkit": "workspace:*",
-    "next": "^15.4.10",
+    "next": "^16.1.5",
     "zod": "^3.24.1"
   },
</file context>
Fix with Cubic

"@genkit-ai/next": "workspace:*",
"genkit": "workspace:*",
"next": "^15.4.10",
"next": "^16.1.5",
Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai bot Jan 31, 2026

Choose a reason for hiding this comment

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

P2: The lockfile (pnpm-lock.yaml) must be updated to reflect this dependency change. Run pnpm install and commit the updated lockfile before merging, otherwise the dependency version change will not take effect properly.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At js/testapps/next/package.json, line 22:

<comment>The lockfile (`pnpm-lock.yaml`) must be updated to reflect this dependency change. Run `pnpm install` and commit the updated lockfile before merging, otherwise the dependency version change will not take effect properly.</comment>

<file context>
@@ -19,7 +19,7 @@
     "@genkit-ai/next": "workspace:*",
     "genkit": "workspace:*",
-    "next": "^15.4.10",
+    "next": "^16.1.5",
     "zod": "^3.24.1"
   },
</file context>
Fix with Cubic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants