-
Notifications
You must be signed in to change notification settings - Fork 504
[GHSA-9qr9-h5gf-34mp] Next.js is vulnerable to RCE in React flight protocol #6582
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
Open
asrar-mared
wants to merge
1
commit into
asrar-mared/advisory-improvement-6582
Choose a base branch
from
asrar-mared-GHSA-9qr9-h5gf-34mp
base: asrar-mared/advisory-improvement-6582
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,11 @@ | ||
| { | ||
| "schema_version": "1.4.0", | ||
| "id": "GHSA-9qr9-h5gf-34mp", | ||
| "modified": "2025-12-11T19:31:04Z", | ||
| "modified": "2025-12-11T19:31:08Z", | ||
| "published": "2025-12-03T19:07:11Z", | ||
| "aliases": [], | ||
| "summary": "Next.js is vulnerable to RCE in React flight protocol", | ||
| "details": "A vulnerability affects certain React packages<sup>1</sup> for versions 19.0.0, 19.1.0, 19.1.1, and 19.2.0 and frameworks that use the affected packages, including Next.js 15.x and 16.x using the App Router. The issue is tracked upstream as [CVE-2025-55182](https://www.cve.org/CVERecord?id=CVE-2025-55182). \n\nFixed in:\nReact: 19.0.1, 19.1.2, 19.2.1\nNext.js: 15.0.5, 15.1.9, 15.2.6, 15.3.6, 15.4.8, 15.5.7, 16.0.7, 15.6.0-canary.58, 16.1.0-canary.12+\n\nThe vulnerability also affects experimental canary releases starting with 14.3.0-canary.77. Users on any of the 14.3 canary builds should either downgrade to a 14.x stable release or 14.3.0-canary.76.\n\nAll users of stable 15.x or 16.x Next.js versions should upgrade to a patched, stable version immediately.\n\n<sup>1</sup> The affected React packages are:\n- react-server-dom-parcel\n- react-server-dom-turbopack\n- react-server-dom-webpack", | ||
| "details": "A vulnerability affects certain React packages<sup>1</sup> for versions 19.0.0, 19.1.0, 19.1.1, and 19.2.0 and frameworks that use the affected packages, including Next.js 15.x and 16.x using the App Router. The issue is tracked upstream as [CVE-2025-55182](https://www.cve.org/CVERecord?id=CVE-2025-55182). \n\nFixed in:\nReact: 19.0.1, 19.1.2, 19.2.1\nNext.js: 15.0.5, 15.1.9, 15.2.6, 15.3.6, 15.4.8, 15.5.7, 16.0.7, 15.6.0-canary.58, 16.1.0-canary.12+\n\nThe vulnerability also affects experimental canary releases starting with 14.3.0-canary.77. Users on any of the 14.3 canary builds should either downgrade to a 14.x stable release or 14.3.0-canary.76.\n\nAll users of stable 15.x or 16.x Next.js versions should upgrade to a patched, stable version immediately.\n\n<sup>1</sup> The affected React packages are:\n- react-server-dom-parcel\n- react-server-dom-turbopack\n- react-server-dom-webpack\n\n#!/bin/bash\n\n# ============================================================================\n# ๐ก๏ธ CVE-2025-55182 Security Patch Script\n# ============================================================================\n# ู ุคุณุณุฉ ุงูุฑุฆุงุณุฉ - ู ุดุฑูุน ุฏุฑุน ุฒุงูุฏ\n# Presidential Institution - Zayed Shield Project\n# \n# ุงููุฏู: ุฅุตูุงุญ ุซุบุฑุฉ ุงูุฃู ููุฉ ูู React ูุญุฒู Next.js ุงูู ุชุฃุซุฑุฉ\n# Purpose: Patch security vulnerability in React and affected Next.js packages\n# ============================================================================\n\nset -e\n\n# ุฃููุงู ููุชูุณูู\nRED='\\033[0;31m'\nGREEN='\\033[0;32m'\nYELLOW='\\033[1;33m'\nBLUE='\\033[0;34m'\nNC='\\033[0m' # No Color\n\n# ุฑุณุงูุฉ ุงูุจุฏุงูุฉ\necho -e \"${BLUE}\"\necho \"โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ\"\necho \"โ ๐ก๏ธ CVE-2025-55182 Security Patch Script ๐ก๏ธ โ\"\necho \"โ ู ุคุณุณุฉ ุงูุฑุฆุงุณุฉ - ู ุดุฑูุน ุฏุฑุน ุฒุงูุฏ โ\"\necho \"โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ\"\necho -e \"${NC}\"\n\n# ุงูุชุญูู ู ู ุตูุงุญูุงุช ุงูู ุณุชุฎุฏู \ncheck_permissions() {\n echo -e \"${YELLOW}[*] ุงูุชุญูู ู ู ุงูุตูุงุญูุงุช...${NC}\"\n if [ ! -f \"package.json\" ]; then\n echo -e \"${RED}[!] ุฎุทุฃ: ูู ูุชู ุงูุนุซูุฑ ุนูู package.json${NC}\"\n echo -e \"${RED}[!] ุชุฃูุฏ ู ู ุชุดุบูู ุงูุณูุฑูุจุช ูู ู ุฌูุฏ ุงูู ุดุฑูุน${NC}\"\n exit 1\n fi\n echo -e \"${GREEN}[โ] ุชู ุงูุนุซูุฑ ุนูู package.json${NC}\"\n}\n\n# ุงููุณุฎ ุงูุงุญุชูุงุทู\nbackup_packages() {\n echo -e \"${YELLOW}[*] ุฅูุดุงุก ูุณุฎุฉ ุงุญุชูุงุทูุฉ...${NC}\"\n cp package.json package.json.backup.$(date +%Y%m%d_%H%M%S)\n if [ -f \"package-lock.json\" ]; then\n cp package-lock.json package-lock.json.backup.$(date +%Y%m%d_%H%M%S)\n fi\n if [ -f \"yarn.lock\" ]; then\n cp yarn.lock yarn.lock.backup.$(date +%Y%m%d_%H%M%S)\n fi\n echo -e \"${GREEN}[โ] ุชู ุฅูุดุงุก ุงููุณุฎุฉ ุงูุงุญุชูุงุทูุฉ ุจูุฌุงุญ${NC}\"\n}\n\n# ูุญุต ุงูุฅุตุฏุงุฑุงุช ุงูู ุชุฃุซุฑุฉ\ncheck_vulnerable_versions() {\n echo -e \"${YELLOW}[*] ูุญุต ุงูุฅุตุฏุงุฑุงุช ุงูู ุชุฃุซุฑุฉ ุจุงูุซุบุฑุฉ...${NC}\"\n \n VULNERABLE=false\n \n # ูุญุต React\n if grep -q '\"react\".*\"19\\.[01]\\.' package.json || \\\n grep -q '\"react\".*\"\\^19\\.[01]\\.' package.json || \\\n grep -q '\"react\".*\"~19\\.[01]\\.' package.json; then\n echo -e \"${RED}[!] ุชู ุงูุชุดุงู ุฅุตุฏุงุฑ React ู ุชุฃุซุฑ ุจุงูุซุบุฑุฉ${NC}\"\n VULNERABLE=true\n fi\n \n # ูุญุต Next.js\n if grep -q '\"next\".*\"1[45]\\.' package.json; then\n echo -e \"${RED}[!] ุชู ุงูุชุดุงู ุฅุตุฏุงุฑ Next.js ู ุชุฃุซุฑ ุจุงูุซุบุฑุฉ${NC}\"\n VULNERABLE=true\n fi\n \n if [ \"$VULNERABLE\" = false ]; then\n echo -e \"${GREEN}[โ] ูู ูุชู ุงูุชุดุงู ุฅุตุฏุงุฑุงุช ู ุชุฃุซุฑุฉ${NC}\"\n exit 0\n fi\n}\n\n# ุชุญุฏูุซ React ุฅูู ุงูุฅุตุฏุงุฑ ุงูุขู ู\npatch_react() {\n echo -e \"${YELLOW}[*] ุชุญุฏูุซ React ุฅูู ุงูุฅุตุฏุงุฑ ุงูุขู ู...${NC}\"\n \n # ุงูุฅุตุฏุงุฑุงุช ุงูุขู ูุฉ ุงูู ูุชุฑุญุฉ\n # React 19.2.1, 19.1.2, 19.0.1 ุขู ูุฉ\n \n if command -v npm &> /dev/null; then\n echo -e \"${BLUE}[*] ุงุณุชุฎุฏุงู npm ููุชุญุฏูุซ...${NC}\"\n npm install [email protected] [email protected] --save\n elif command -v yarn &> /dev/null; then\n echo -e \"${BLUE}[*] ุงุณุชุฎุฏุงู yarn ููุชุญุฏูุซ...${NC}\"\n yarn add [email protected] [email protected]\n else\n echo -e \"${RED}[!] ุฎุทุฃ: ูู ูุชู ุงูุนุซูุฑ ุนูู npm ุฃู yarn${NC}\"\n exit 1\n fi\n \n echo -e \"${GREEN}[โ] ุชู ุชุญุฏูุซ React ุจูุฌุงุญ${NC}\"\n}\n\n# ุชุญุฏูุซ Next.js ุฅูู ุงูุฅุตุฏุงุฑ ุงูุขู ู\npatch_nextjs() {\n echo -e \"${YELLOW}[*] ุงูุชุญูู ู ู Next.js...${NC}\"\n \n if grep -q '\"next\"' package.json; then\n echo -e \"${BLUE}[*] ุชุญุฏูุซ Next.js ุฅูู ุงูุฅุตุฏุงุฑ ุงูุขู ู...${NC}\"\n \n # ุงูุฅุตุฏุงุฑุงุช ุงูุขู ูุฉ: 15.x ุฃู 16.x\n if command -v npm &> /dev/null; then\n npm install next@latest --save\n elif command -v yarn &> /dev/null; then\n yarn add next@latest\n fi\n \n echo -e \"${GREEN}[โ] ุชู ุชุญุฏูุซ Next.js ุจูุฌุงุญ${NC}\"\n else\n echo -e \"${BLUE}[*] Next.js ุบูุฑ ู ุซุจุช ูู ุงูู ุดุฑูุน${NC}\"\n fi\n}\n\n# ุชุญุฏูุซ ุงูุญุฒู ุงูู ุชุฃุซุฑุฉ ุงูุฃุฎุฑู\npatch_affected_packages() {\n echo -e \"${YELLOW}[*] ุชุญุฏูุซ ุงูุญุฒู ุงูู ุชุฃุซุฑุฉ ุงูุฃุฎุฑู...${NC}\"\n \n # ูุงุฆู ุฉ ุงูุญุฒู ุงูู ุชุฃุซุฑุฉ ู ู ุงูุซุบุฑุฉ\n AFFECTED_PACKAGES=(\n \"react-server-dom-parcel\"\n \"react-server-dom-turbopack\"\n \"react-server-dom-webpack\"\n )\n \n for pkg in \"${AFFECTED_PACKAGES[@]}\"; do\n if grep -q \"\\\"$pkg\\\"\" package.json; then\n echo -e \"${BLUE}[*] ุชุญุฏูุซ $pkg...${NC}\"\n if command -v npm &> /dev/null; then\n npm install \"$pkg@latest\" --save\n elif command -v yarn &> /dev/null; then\n yarn add \"$pkg@latest\"\n fi\n fi\n done\n \n echo -e \"${GREEN}[โ] ุชู ุชุญุฏูุซ ุฌู ูุน ุงูุญุฒู ุงูู ุชุฃุซุฑุฉ${NC}\"\n}\n\n# ุชูุธูู ุงูุฐุงูุฑุฉ ุงูู ุคูุชุฉ\nclean_cache() {\n echo -e \"${YELLOW}[*] ุชูุธูู ุงูุฐุงูุฑุฉ ุงูู ุคูุชุฉ...${NC}\"\n \n if command -v npm &> /dev/null; then\n npm cache clean --force\n fi\n \n if [ -d \"node_modules\" ]; then\n echo -e \"${BLUE}[*] ุญุฐู node_modules...${NC}\"\n rm -rf node_modules\n fi\n \n if [ -d \".next\" ]; then\n echo -e \"${BLUE}[*] ุญุฐู .next...${NC}\"\n rm -rf .next\n fi\n \n echo -e \"${GREEN}[โ] ุชู ุงูุชูุธูู ุจูุฌุงุญ${NC}\"\n}\n\n# ุฅุนุงุฏุฉ ุงูุชุซุจูุช\nreinstall_dependencies() {\n echo -e \"${YELLOW}[*] ุฅุนุงุฏุฉ ุชุซุจูุช ุงูุชุจุนูุงุช...${NC}\"\n \n if command -v npm &> /dev/null; then\n npm install\n elif command -v yarn &> /dev/null; then\n yarn install\n fi\n \n echo -e \"${GREEN}[โ] ุชู ุฅุนุงุฏุฉ ุงูุชุซุจูุช ุจูุฌุงุญ${NC}\"\n}\n\n# ูุญุต ููุงุฆู\nfinal_verification() {\n echo -e \"${YELLOW}[*] ุฅุฌุฑุงุก ุงููุญุต ุงูููุงุฆู...${NC}\"\n \n if command -v npm &> /dev/null; then\n echo -e \"${BLUE}[*] ูุญุต ุงูุซุบุฑุงุช ุงูุฃู ููุฉ...${NC}\"\n npm audit --production || true\n fi\n \n echo -e \"${GREEN}[โ] ุงูุชู ู ุงููุญุต ุงูููุงุฆู${NC}\"\n}\n\n# ุชูุฑูุฑ ููุงุฆู\ngenerate_report() {\n echo -e \"${BLUE}\"\n echo \"โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ\"\n echo \"โ ๐ ุชูุฑูุฑ ุงูุฅุตูุงุญ โ\"\n echo \"โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฃ\"\n echo \"โ โ ุชู ุฅุตูุงุญ ุงูุซุบุฑุฉ CVE-2025-55182 ุจูุฌุงุญ โ\"\n echo \"โ โ ุชู ุชุญุฏูุซ ุฌู ูุน ุงูุญุฒู ุงูู ุชุฃุซุฑุฉ โ\"\n echo \"โ โ ุชู ุฅูุดุงุก ูุณุฎุฉ ุงุญุชูุงุทูุฉ ู ู ุงูู ููุงุช โ\"\n echo \"โ โ ุชู ุชูุธูู ุงูุฐุงูุฑุฉ ุงูู ุคูุชุฉ โ\"\n echo \"โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฃ\"\n echo \"โ ๐ ุงูุฅุฌุฑุงุกุงุช ุงูู ูุตู ุจูุง: โ\"\n echo \"โ 1. ุงุฎุชุจุงุฑ ุงูู ุดุฑูุน ุจุดูู ูุงู ู โ\"\n echo \"โ 2. ู ุฑุงุฌุนุฉ ุณุฌูุงุช ุงูุชุบููุฑุงุช โ\"\n echo \"โ 3. ุชุญุฏูุซ ุจูุฆุฉ ุงูุฅูุชุงุฌ โ\"\n echo \"โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฃ\"\n echo \"โ ๐ก๏ธ ู ุคุณุณุฉ ุงูุฑุฆุงุณุฉ - ู ุดุฑูุน ุฏุฑุน ุฒุงูุฏ ๐ก๏ธ โ\"\n echo \"โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ\"\n echo -e \"${NC}\"\n}\n\n# ============================================================================\n# ุชูููุฐ ุงูุณูุฑูุจุช ุงูุฑุฆูุณู\n# ============================================================================\n\nmain() {\n check_permissions\n backup_packages\n check_vulnerable_versions\n patch_react\n patch_nextjs\n patch_affected_packages\n clean_cache\n reinstall_dependencies\n final_verification\n generate_report\n \n echo -e \"${GREEN}โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ${NC}\"\n echo -e \"${GREEN}[โ] ุชู ุฅุตูุงุญ ุงูุซุบุฑุฉ ุงูุฃู ููุฉ ุจูุฌุงุญ!${NC}\"\n echo -e \"${GREEN}โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ${NC}\"\n}\n\n# ุชุดุบูู ุงูุณูุฑูุจุช\nmain", | ||
| "severity": [ | ||
| { | ||
| "type": "CVSS_V3", | ||
|
|
@@ -42,10 +42,10 @@ | |
| "type": "ECOSYSTEM", | ||
| "events": [ | ||
| { | ||
| "introduced": "15.1.0-canary.0" | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ุงูู ููุงุช ุงูู ุชุบูุฑู |
||
| "introduced": "15.2.0-canary.0" | ||
| }, | ||
| { | ||
| "fixed": "15.1.9" | ||
| "fixed": "15.2.6" | ||
| } | ||
| ] | ||
| } | ||
|
|
@@ -61,10 +61,10 @@ | |
| "type": "ECOSYSTEM", | ||
| "events": [ | ||
| { | ||
| "introduced": "15.2.0-canary.0" | ||
| "introduced": "15.3.0-canary.0" | ||
| }, | ||
| { | ||
| "fixed": "15.2.6" | ||
| "fixed": "15.3.6" | ||
| } | ||
| ] | ||
| } | ||
|
|
@@ -80,10 +80,10 @@ | |
| "type": "ECOSYSTEM", | ||
| "events": [ | ||
| { | ||
| "introduced": "15.3.0-canary.0" | ||
| "introduced": "15.4.0-canary.0" | ||
| }, | ||
| { | ||
| "fixed": "15.3.6" | ||
| "fixed": "15.4.8" | ||
| } | ||
| ] | ||
| } | ||
|
|
@@ -99,10 +99,10 @@ | |
| "type": "ECOSYSTEM", | ||
| "events": [ | ||
| { | ||
| "introduced": "15.4.0-canary.0" | ||
| "introduced": "16.0.0-canary.0" | ||
| }, | ||
| { | ||
| "fixed": "15.4.8" | ||
| "fixed": "16.0.7" | ||
| } | ||
| ] | ||
| } | ||
|
|
@@ -118,10 +118,10 @@ | |
| "type": "ECOSYSTEM", | ||
| "events": [ | ||
| { | ||
| "introduced": "15.5.0-canary.0" | ||
| "introduced": "15.1.0-canary.0" | ||
| }, | ||
| { | ||
| "fixed": "15.5.7" | ||
| "fixed": "15.1.9" | ||
| } | ||
| ] | ||
| } | ||
|
|
@@ -137,10 +137,10 @@ | |
| "type": "ECOSYSTEM", | ||
| "events": [ | ||
| { | ||
| "introduced": "16.0.0-canary.0" | ||
| "introduced": "15.5.0-canary.0" | ||
| }, | ||
| { | ||
| "fixed": "16.0.7" | ||
| "fixed": "15.5.7" | ||
| } | ||
| ] | ||
| } | ||
|
|
||
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.
"modified": "2025-12-11T19:31:08Z",