Skip to content

[Snyk] Security upgrade next from 14.2.10 to 15.5.10#35

Open
djharga wants to merge 1 commit intomainfrom
snyk-fix-8fe6e1f34de439f4daeb1c76f951f6aa
Open

[Snyk] Security upgrade next from 14.2.10 to 15.5.10#35
djharga wants to merge 1 commit intomainfrom
snyk-fix-8fe6e1f34de439f4daeb1c76f951f6aa

Conversation

@djharga
Copy link
Owner

@djharga djharga commented Feb 3, 2026

User description

snyk-top-banner

Snyk has created this PR to fix 1 vulnerabilities in the npm dependencies of this project.

Snyk changed the following file(s):

  • package.json
  • package-lock.json

Vulnerabilities that will be fixed with an upgrade:

Issue Score
high severity Allocation of Resources Without Limits or Throttling
SNYK-JS-NEXT-15104645
  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


CodeAnt-AI Description

Upgrade Next.js to 15.5.10 to remove a high-severity dependency vulnerability

What Changed

  • Next.js dependency bumped from 14.2.10 to 15.5.10 (and matching runtime packages updated), removing the SNYK-JS-NEXT-15104645 vulnerability
  • Bundled native runtime artifacts (swc binaries) and related helpers upgraded; some optional native packages and peer support versions were updated
  • Package metadata tightened: several dev/optional flags adjusted and minimum Node requirement raised for Next to a newer range

Impact

✅ Fewer security alerts by fixing a high-severity Next.js vulnerability
✅ Requires newer Node for development and builds
✅ Supports newer runtime tooling and peer versions (including expanded React compatibility)

💡 Usage Guide

Checking Your Pull Request

Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.

Talking to CodeAnt AI

Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:

@codeant-ai ask: Your question here

This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.

Example

@codeant-ai ask: Can you suggest a safer alternative to storing this secret?

Preserve Org Learnings with CodeAnt

You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:

@codeant-ai: Your feedback here

This helps CodeAnt AI learn and adapt to your team's coding style and standards.

Example

@codeant-ai: Do not flag unused imports.

Retrigger review

Ask CodeAnt AI to review the PR again, by typing:

@codeant-ai: review

Check Your Repository Health

To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.

@vercel
Copy link

vercel bot commented Feb 3, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
khatwa-learning-platform Error Error Feb 3, 2026 11:56am

@codeant-ai
Copy link

codeant-ai bot commented Feb 3, 2026

CodeAnt AI is reviewing your PR.


Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@netlify
Copy link

netlify bot commented Feb 3, 2026

Deploy Preview for khatw failed. Why did it fail? →

Name Link
🔨 Latest commit 2fe4e06
🔍 Latest deploy log https://app.netlify.com/projects/khatw/deploys/6981e22f0fe35000086e6908

@netlify
Copy link

netlify bot commented Feb 3, 2026

Deploy Preview for frolicking-starburst-1a92a1 failed.

Name Link
🔨 Latest commit 2fe4e06
🔍 Latest deploy log https://app.netlify.com/projects/frolicking-starburst-1a92a1/deploys/6981e22f97e9ab0008f9b7d0

@netlify
Copy link

netlify bot commented Feb 3, 2026

Deploy Preview for scintillating-centaur-5d4290 failed.

Name Link
🔨 Latest commit 2fe4e06
🔍 Latest deploy log https://app.netlify.com/projects/scintillating-centaur-5d4290/deploys/6981e22ffccc7a00082ceef5

@netlify
Copy link

netlify bot commented Feb 3, 2026

Deploy Preview for deluxe-zuccutto-1546d1 failed.

Name Link
🔨 Latest commit 2fe4e06
🔍 Latest deploy log https://app.netlify.com/projects/deluxe-zuccutto-1546d1/deploys/6981e22f0b34150007a50af5

@coderabbitai
Copy link

coderabbitai bot commented Feb 3, 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-8fe6e1f34de439f4daeb1c76f951f6aa

Important

Action Needed: IP Allowlist Update

If your organization protects your Git platform with IP whitelisting, please add the new CodeRabbit IP address to your allowlist:

  • 136.113.208.247/32 (new)
  • 34.170.211.100/32
  • 35.222.179.152/32

Failure to add the new IP will result in interrupted reviews.


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.

Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @djharga, 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, automatically generated by Snyk, focuses on enhancing the project's security posture by upgrading the next framework to its latest stable version, 15.5.10. This critical update resolves a high-severity resource allocation vulnerability and brings various internal and peer dependency updates, ensuring the application benefits from the most recent stability and performance improvements.

Highlights

  • Security Vulnerability Fix: This pull request upgrades the next package from version 14.2.10 to 15.5.10 to address a high-severity "Allocation of Resources Without Limits or Throttling" vulnerability (SNYK-JS-NEXT-15104645).
  • Core Dependency Updates: Several related @next/swc-* packages (e.g., for different operating systems and architectures) and @swc/helpers have been updated to newer versions, aligning with the next framework upgrade.
  • Dependency Cleanup and Refinement: The busboy and @swc/counter packages, along with streamsearch, have been removed as direct dependencies. Additionally, dev and devOptional flags were adjusted for dependencies like @img/colour, detect-libc, semver, and sharp, and graceful-fs was explicitly marked as a dev dependency.
  • Peer Dependency Adjustments: The next package's peer dependencies now include broader version ranges for react and react-dom, and babel-plugin-react-compiler has been added as an optional peer dependency, reflecting changes in the Next.js ecosystem.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • package-lock.json
    • Upgraded next to 15.5.10.
    • Updated @next/env to 15.5.10.
    • Updated various @next/swc-* packages (e.g., darwin-arm64, darwin-x64, linux-*, win32-*) to 15.5.7.
    • Removed node_modules/@next/swc-win32-ia32-msvc.
    • Changed dev: true to devOptional: true for @img/colour, detect-libc, semver, and sharp.
    • Removed node_modules/busboy and its sub-dependency streamsearch.
    • Updated @swc/helpers from 0.5.5 to 0.5.15, removing @swc/counter as a dependency and updating tslib.
    • Removed node_modules/@swc/counter.
    • Added dev: true to graceful-fs.
    • Updated styled-jsx from 5.1.1 to 5.1.6.
    • Adjusted next's engines.node requirement to ^18.18.0 || ^19.8.0 || >= 20.0.0.
    • Updated next's peerDependencies for @playwright/test, react, and react-dom, and added babel-plugin-react-compiler.
  • package.json
    • Updated next dependency from 14.2.10 to 15.5.10.
Activity
  • This pull request was automatically created by Snyk to address a security vulnerability.
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.

@deepsource-io
Copy link
Contributor

deepsource-io bot commented Feb 3, 2026

Here's the code health analysis summary for commits 3dbf750..2fe4e06. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource JavaScript LogoJavaScript✅ SuccessView Check ↗
DeepSource Ansible LogoAnsible✅ SuccessView Check ↗

💡 If you’re a repository administrator, you can configure the quality gates from the settings.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 3, 2026

@codeant-ai codeant-ai bot added the size:M This PR changes 30-99 lines, ignoring generated files label Feb 3, 2026
@codeant-ai
Copy link

codeant-ai bot commented Feb 3, 2026

CodeAnt AI finished reviewing your PR.

Copy link
Contributor

@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 PR upgrades next to version 15.5.10 to fix a security vulnerability. As this is a major version upgrade with breaking changes, thorough testing is essential.

I have two main recommendations:

  1. Update eslint-config-next: The eslint-config-next dependency should be updated from 14.2.3 to 15.5.10 in package.json to align with the new next version and ensure correct linting.
  2. Specify Node.js version: next@15 requires Node.js ^18.18.0 || >=20.0.0. I recommend adding an engines field to package.json to enforce this, for example: "engines": { "node": ">=18.18.0" }.

I've also added a specific comment to fix a versioning inconsistency in package-lock.json.

"mammoth": "^1.11.0",
"msw": "^2.12.1",
"next": "14.2.10",
"next": "15.5.10",
Copy link
Contributor

Choose a reason for hiding this comment

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

high

To ensure compatibility and correct linting rules with the updated next version, it's important to also upgrade eslint-config-next from 14.2.3 to 15.5.10 in your devDependencies. Mismatched versions can lead to incorrect linting or build failures.

"mammoth": "^1.11.0",
"msw": "^2.12.1",
"next": "14.2.10",
"next": "^15.5.10",
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

There's an inconsistency between package.json, which pins the next version to 15.5.10, and this line in package-lock.json, which uses a caret ^15.5.10. This can lead to different versions being installed, causing unpredictable builds. To maintain consistency with the project's convention of pinning the next version, the lock file should reflect the pinned version from package.json.

Suggested change
"next": "^15.5.10",
"next": "15.5.10",

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

Labels

size:M This PR changes 30-99 lines, ignoring generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants