1019326: Resolve dependabot issues by updating next dependency#82
Open
BalajiLoganathanSF4826 wants to merge 1 commit intomasterfrom
Open
1019326: Resolve dependabot issues by updating next dependency#82BalajiLoganathanSF4826 wants to merge 1 commit intomasterfrom
BalajiLoganathanSF4826 wants to merge 1 commit intomasterfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug description
Dependabot flagged an outdated and vulnerable version of Next.js in package.json.
The existing version (14.2.35) contained security advisories and compatibility warnings. Updating was required to maintain dependency stability and remove security alerts.
Root cause
The project was using an older Next.js (14.2.35) version that Dependabot identified as vulnerable or outdated. This caused dependency mismatch risks, potential security exposure, and triggered automated alerts. The version was not aligned with the recommended patch level for the framework used.
Solution description
Updated Next.js to the latest compatible patch version 15.5.14 as recommended by Dependabot.
This resolves the security alert, ensures dependency consistency, and improves build/runtime stability for the React PDF Viewer examples.
The following issues will be resolved by this change:
medium - Next.js: Unbounded next/image disk cache growth can exhaust storage
medium - Next.js: HTTP request smuggling in rewrites
medium - Next.js self-hosted applications vulnerable to DoS via Image Optimizer remotePatterns configuration
high - Next.js HTTP request deserialization can lead to DoS when using insecure React Server Components