-
Notifications
You must be signed in to change notification settings - Fork 1
Fix: cve/next-update #157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Fix: cve/next-update #157
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๐งฉ Analysis chain
๐ Web query:
Next.js 16 release notes breaking changes migration guide๐ก Result:
Quick summary of the important breaking changes in Next.js 16 and a short migration checklist.
Breaking changes (highโimpact)
Minimal migration checklist
Useful references
If you want, I can:
Sources:
[1] Next.js โ Upgrading: Version 16 (official docs).
[2] InfoQ article: Vercelโs Next.js 16 release summary.
[3] Community migration writeup (examples of common breakages and codemod usage).
๐ Web query:
eslint-config-next version compatibility with next package๐ก Result:
Short answer: eslint-config-next is the ESLint preset shipped by the Next.js repo and is intended to match the Next.js release series โ use the eslint-config-next version that ships with (or is installed by) the same Next.js release. The package also has separately evolving peer-dependencies (notably ESLint v7/8 โ v9 migration), so mismatching eslint-config-next, Next.js, or ESLint versions can cause peer-dep warnings or runtime errors. [1][2][3]
Practical guidance:
Sources:
๐ Web query:
Next.js 16 React 19 compatibility requirements๐ก Result:
Short answer โ Next.js 16 is designed to work with React 19, but you must meet a few platform/version requirements:
If you want, I can check your project's package.json and CI/node versions and give an exact upgrade checklist.
eslint-config-nextmust match the Next.js major version.nextwas updated to 16.0.7, buteslint-config-nextat line 41 remains at 15.5.4. Theeslint-config-nextpackage is versioned alongside each Next.js release and mismatching major versions causes peer-dependency warnings and ESLint configuration errors. Updateeslint-config-nextto16.0.7to match.Additionally, Next.js 16 introduces significant breaking changes requiring migration: async Request APIs (cookies, headers, params, searchParams must be awaited), Node.js โฅ20.9 requirement (Node 18 no longer supported), TypeScript โฅ5.x requirement, and the
next lintcommand removal (use ESLint directly). The PR description should document which breaking changes apply to this codebase and confirm that automated migration vianpx @next/codemod@canary upgrade latestwas performed.๐งฉ Analysis chain
๐ Script executed:
cat -n package.json | head -30Repository: geulDa/FE
Length of output: 1122
๐ Script executed:
Repository: geulDa/FE
Length of output: 80
๐ Script executed:
git diff HEAD~1 package.json | head -50Repository: geulDa/FE
Length of output: 239
๐ Script executed:
git log --all --oneline | head -20Repository: geulDa/FE
Length of output: 121
๐ Script executed:
Repository: geulDa/FE
Length of output: 7546
๐ Script executed:
Repository: geulDa/FE
Length of output: 69
๐ Script executed:
rg -l "next/router|useRouter|getServerSideProps|getStaticProps|getInitialProps" --type ts --type tsx --type js --type jsxRepository: geulDa/FE
Length of output: 80
๐ Script executed:
Repository: geulDa/FE
Length of output: 2487
๐ Script executed:
cat -n next.config.ts | head -40Repository: geulDa/FE
Length of output: 1338
๐ Script executed:
cat -n src/pages/_app.tsx | head -50Repository: geulDa/FE
Length of output: 1612
๐ Script executed:
Repository: geulDa/FE
Length of output: 957
๐ Web query:
Next.js 15 to 16 breaking changes migration๐ก Result:
Summary checklist to migrate from Next.js 15 โ 16
Quick commands
Primary references
Want: I can run the codemod suggestions against a sample file or scan a repo diff for likely async-API failures โ upload a file or paste code and Iโll show exactly what to change.
๐ Web query:
React CVE security issues 2025 Next.js upgrade๐ก Result:
Short summary and immediate actions
A critical RCE in React Server Components (CVE-2025-55182, "React2Shell") was disclosed Dec 3, 2025; it affects react-server-dom-* packages in React 19.0.0, 19.1.0/1 and 19.2.0 and is rated critical (CVSS ~10). React recommends immediate upgrade. [1][2]
Next.js (App Router) implementations were also affected (tracked separately; public advisories list vulnerable Next.js 15.x/16.x AppโRouter releases) and patched Next.js releases are available โ upgrade Next.js to the patched 15.x/16.x versions listed by vendors. [3][4]
What you must do now (minimum required)
How to verify
References
[1] React official advisory: Critical Security Vulnerability in React Server Components (Dec 3, 2025).
[2] Canadian Cyber Centre / security advisory referencing CVE-2025-55182 (Dec 3, 2025).
[3] Vendor/security writeups and Next.js remediation guidance (patch lists & upgrade commands).
[4] Cisco / industry advisories summarizing CVE-2025-55182 impact and remediation.
[5] Public scanners / detection pages for CVE-2025-55182 (detection guidance).
[6] Snyk/Dev posts with practical mitigation steps and rebuild guidance.
If you want, tell me your project's package.json or npm ls output and I will check which vulnerable packages you have and give exact upgrade commands.
๐ Script executed:
Repository: geulDa/FE
Length of output: 35
๐ Script executed:
Repository: geulDa/FE
Length of output: 35
๐ Script executed:
rg "useCache|getCookie|getHeader|draftMode" --type ts --type tsxRepository: geulDa/FE
Length of output: 80
๐ Script executed:
Repository: geulDa/FE
Length of output: 15530
React 19.1.0์ CVE-2025-55182(React Server Components RCE) ์ทจ์ฝ์ ์ด ์์ต๋๋ค. ์ฆ์ ์ ๊ทธ๋ ์ด๋๊ฐ ํ์ํฉ๋๋ค.
ํ์ฌ ์ค์น๋ React 19.1.0์ December 3, 2025์ ๊ณต๊ฐ๋ CVE-2025-55182 "React2Shell"์ ์ทจ์ฝํฉ๋๋ค. ์ด๋ React Server Components์ ์๊ฒฉ ์ฝ๋ ์คํ(RCE) ์ทจ์ฝ์ ์ผ๋ก CVSS 10.0 ๋ฑ๊ธ์ ์ฌ๊ฐํ ๋ณด์ ๊ฒฐํจ์ ๋๋ค.
์ฆ์ ์กฐ์น ์ฌํญ:
pnpm update react@19.1.2 react-dom@19.1.2๋ณธ ์ฝ๋๋ฒ ์ด์ค๋ Pages Router๋ฅผ ์ฌ์ฉํ๋ฏ๋ก Next.js 15โ16 ์ฃผ์ ๋ฒ์ ๋ณ๊ฒฝ์ ๋ฐ๋ฅธ
async cookies(),headers(), ๋๋middleware.ts๋ง์ด๊ทธ๋ ์ด์ ์ด ๋ถํ์ํฉ๋๋ค. Next.js 16.0.7์ ์ด๋ฏธ ํธํ๋๋ ์ํ์ ๋๋ค. ์ด PR์ ์ฃผ์ ๋ชฉ์ ์ ๋ณด์ ์ทจ์ฝ์ (React CVE) ํด๊ฒฐ์ด๋ฉฐ, Next.js ์์ฒด์ ์ฃผ์ ๋ณ๊ฒฝ์ฌํญ ๋์์ ํ ์ฝ๋์ ์ ์ฉ๋์ง ์์ต๋๋ค.