-
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
base: asrar-mared/advisory-improvement-6582
Are you sure you want to change the base?
[GHSA-9qr9-h5gf-34mp] Next.js is vulnerable to RCE in React flight protocol #6582
Conversation
|
Hi there @aaronbrown-vercel! A community member has suggested an improvement to your security advisory. If approved, this change will affect the global advisory listed at github.com/advisories. It will not affect the version listed in your project repository. This change will be reviewed by our Security Curation Team. If you have thoughts or feedback, please share them in a comment here! If this PR has already been closed, you can start a new community contribution for this advisory |
🛡️ دليل التوعية الأمنية - CVE-2025-55182
|
| السيناريو | التكلفة |
|---|---|
| الإصلاح الآن | 15 دقيقة ⏱️ |
| الإصلاح بعد أسبوع | ساعات من إعادة البناء 🔨 |
| الإصلاح بعد الاختراق | خسارة العملاء + السمعة + المال 💸💔 |
🎯 الخطة الذهبية: لن يحدث مجدداً
Week 1: الإصلاح
- ✅ تحديث جميع المشاريع
- ✅ فحص شامل للثغرات
- ✅ توثيق التغييرات
Week 2: الأتمتة
- ✅ إضافة GitHub Actions
- ✅ تفعيل Dependabot
- ✅ إعداد التنبيهات
Week 3: المراقبة
- ✅ سكريبتات المراقبة اليومية
- ✅ لوحة تحكم للأمان
- ✅ تقارير أسبوعية
Week 4: التعليم
- ✅ تدريب الفريق
- ✅ توثيق الإجراءات
- ✅ خطة الاستجابة للطوارئ
🔥 رسالة أخيرة
┌─────────────────────────────────────────────┐
│ │
│ الأمن السيبراني ليس خياراً... │
│ هو مسؤولية! │
│ │
│ كل يوم تأخير = فرصة للهاكرز │
│ كل ثغرة مُهملة = باب مفتوح للخطر │
│ │
│ ✅ حدّث الآن │
│ ✅ راقب دائماً │
│ ✅ كن مستعداً │
│ │
└─────────────────────────────────────────────┘
📞 الموارد والدعم
للمساعدة الفورية:
- 🌐 React Discord: https://react.dev/community
- 🌐 Next.js Discord: https://nextjs.org/discord
- 🌐 Stack Overflow: Tag [reactjs] [security]
- 🌐 GitHub Discussions: في مستودع المشروع
للتعلم المستمر:
- 📚 OWASP Security Guidelines
- 📚 npm Security Best Practices
- 📚 React Security Documentation
- 📚 Next.js Security Headers
🛡️ التعهد الأمني
أنا [اسمك]، أتعهد بأن:
✅ أحدّث مشاريعي فوراً عند اكتشاف ثغرات
✅ أراقب التبعيات بشكل مستمر
✅ أشارك المعرفة الأمنية مع المجتمع
✅ لا أتجاهل التحذيرات الأمنية أبداً
✅ أجعل الأمان أولوية في كل كود أكتبه
التوقيع: ________________
التاريخ: ________________
🎬 الخلاصة
✅ هذه الثغرة انتهت... إذا تصرفت الآن!
# آخر فرصة - نفذ هذا الأمر الآن:
npm install [email protected] [email protected] next@latest && \
npm audit fix && \
echo "🛡️ مشروعك آمن الآن!"🚀 المستقبل أفضل... مع الوقاية!
# اجعل هذا عادة يومية:
npm audit && \
npm outdated && \
echo "✅ فحص يومي مكتمل!"🛡️ مؤسسة الرئاسة - مشروع درع زايد
نحمي الحاضر، نبني المستقبل الآمن
📞 معلومات الاتصال
مؤسسة الرئاسة - مشروع درع زايد
- 👤 المطور: asrar-mared
- 🌐 الموقع: nike49424.live
- 📧 البريد: [email protected]
- 💻 GitHub: github.com/asrar-mared
آخر تحديث: ديسمبر 2025
النسخة: 1.0 - الإصدار النهائي
شارك هذا الدليل - أنقذ مشروع مطور! 🙏
asrar-mared
left a comment
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.
الملفات المتغيره
| "type": "ECOSYSTEM", | ||
| "events": [ | ||
| { | ||
| "introduced": "15.1.0-canary.0" |
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.
الملفات المتغيره
| { | ||
| "schema_version": "1.4.0", | ||
| "id": "GHSA-9qr9-h5gf-34mp", | ||
| "modified": "2025-12-11T19:31:04Z", |
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",
Updates
Comments
#!/bin/bash
============================================================================
🛡️ CVE-2025-55182 Security Patch Script
============================================================================
مؤسسة الرئاسة - مشروع درع زايد
Presidential Institution - Zayed Shield Project
الهدف: إصلاح ثغرة الأمنية في React وحزم Next.js المتأثرة
Purpose: Patch security vulnerability in React and affected Next.js packages
============================================================================
set -e
ألوان للتنسيق
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
BLUE='\033[0;34m'
NC='\033[0m' # No Color
رسالة البداية
echo -e "${BLUE}"
echo "╔════════════════════════════════════════════════════════════╗"
echo "║ 🛡️ CVE-2025-55182 Security Patch Script 🛡️ ║"
echo "║ مؤسسة الرئاسة - مشروع درع زايد ║"
echo "╚════════════════════════════════════════════════════════════╝"
echo -e "${NC}"
التحقق من صلاحيات المستخدم
check_permissions() {
echo -e "${YELLOW}[*] التحقق من الصلاحيات...${NC}"
if [ ! -f "package.json" ]; then
echo -e "${RED}[!] خطأ: لم يتم العثور على package.json${NC}"
echo -e "${RED}[!] تأكد من تشغيل السكريبت في مجلد المشروع${NC}"
exit 1
fi
echo -e "${GREEN}[✓] تم العثور على package.json${NC}"
}
النسخ الاحتياطي
backup_packages() {
echo -e "${YELLOW}[*] إنشاء نسخة احتياطية...${NC}"
cp package.json package.json.backup.$(date +%Y%m%d_%H%M%S)
if [ -f "package-lock.json" ]; then
cp package-lock.json package-lock.json.backup.$(date +%Y%m%d_%H%M%S)
fi
if [ -f "yarn.lock" ]; then
cp yarn.lock yarn.lock.backup.$(date +%Y%m%d_%H%M%S)
fi
echo -e "${GREEN}[✓] تم إنشاء النسخة الاحتياطية بنجاح${NC}"
}
فحص الإصدارات المتأثرة
check_vulnerable_versions() {
echo -e "${YELLOW}[*] فحص الإصدارات المتأثرة بالثغرة...${NC}"
}
تحديث React إلى الإصدار الآمن
patch_react() {
echo -e "${YELLOW}[*] تحديث React إلى الإصدار الآمن...${NC}"
}
تحديث Next.js إلى الإصدار الآمن
patch_nextjs() {
echo -e "${YELLOW}[*] التحقق من Next.js...${NC}"
}
تحديث الحزم المتأثرة الأخرى
patch_affected_packages() {
echo -e "${YELLOW}[*] تحديث الحزم المتأثرة الأخرى...${NC}"
}
تنظيف الذاكرة المؤقتة
clean_cache() {
echo -e "${YELLOW}[*] تنظيف الذاكرة المؤقتة...${NC}"
}
إعادة التثبيت
reinstall_dependencies() {
echo -e "${YELLOW}[*] إعادة تثبيت التبعيات...${NC}"
}
فحص نهائي
final_verification() {
echo -e "${YELLOW}[*] إجراء الفحص النهائي...${NC}"
}
تقرير نهائي
generate_report() {
echo -e "${BLUE}"
echo "╔════════════════════════════════════════════════════════════╗"
echo "║ 📊 تقرير الإصلاح ║"
echo "╠════════════════════════════════════════════════════════════╣"
echo "║ ✅ تم إصلاح الثغرة CVE-2025-55182 بنجاح ║"
echo "║ ✅ تم تحديث جميع الحزم المتأثرة ║"
echo "║ ✅ تم إنشاء نسخة احتياطية من الملفات ║"
echo "║ ✅ تم تنظيف الذاكرة المؤقتة ║"
echo "╠════════════════════════════════════════════════════════════╣"
echo "║ 📝 الإجراءات الموصى بها: ║"
echo "║ 1. اختبار المشروع بشكل كامل ║"
echo "║ 2. مراجعة سجلات التغييرات ║"
echo "║ 3. تحديث بيئة الإنتاج ║"
echo "╠════════════════════════════════════════════════════════════╣"
echo "║ 🛡️ مؤسسة الرئاسة - مشروع درع زايد 🛡️ ║"
echo "╚════════════════════════════════════════════════════════════╝"
echo -e "${NC}"
}
============================================================================
تنفيذ السكريبت الرئيسي
============================================================================
main() {
check_permissions
backup_packages
check_vulnerable_versions
patch_react
patch_nextjs
patch_affected_packages
clean_cache
reinstall_dependencies
final_verification
generate_report
}
تشغيل السكريبت
main