Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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",
Copy link
Author

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",

"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",
Expand Down Expand Up @@ -42,10 +42,10 @@
"type": "ECOSYSTEM",
"events": [
{
"introduced": "15.1.0-canary.0"
Copy link
Author

Choose a reason for hiding this comment

The 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"
}
]
}
Expand All @@ -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"
}
]
}
Expand All @@ -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"
}
]
}
Expand All @@ -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"
}
]
}
Expand All @@ -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"
}
]
}
Expand All @@ -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"
}
]
}
Expand Down