Next.js: ثلاثة إصلاحات أمنية يجب فحصها قبل النشر التالي
يشمل إشعار 14 أكتوبر Cache Components وصور SVG وServer Actions. الإصدارات المصحّحة: 16.4.1 و15.5.28.

ما الذي تغيّر
يعالج تحديث 14 أكتوبر مشكلتين حرجتين لتنفيذ الشيفرة ومشكلة حجب خدمة عالية الخطورة. الإصدارات المصحّحة هي 16.4.1 و15.5.28. افحص الإشعارات الثلاثة لأن شروط التأثر تختلف.
من عليه التحقق
تؤثر مشكلة التخزين المؤقت في Next 16.0.0–16.4.0 عند استخدام Cache Components ودالة use cache تعيد عدة مصفوفات ذات أنواع محددة. وتتعلق مشكلة الصور بمعالجة SVG عبر Image Optimization على Linux مع glibc. ويتطلب حجب الخدمة App Router مع Server Action؛ ولا تتأثر بهذه المشكلة المحددة تطبيقات Pages Router أو التطبيقات دون Server Actions.
ما الذي يجب فعله
- قارن نطاقات الإصدارات والشروط الواردة في الإشعارات بملف القفل والحزم المنشورة فعليًا.
- حدّث فرع Next.js المدعوم إلى إصدار مصحّح ومتوافق. الحل عبر sharp 0.35.5 خاص بالصور ولا يعالج المشكلتين الأخريين.
- ابنِ المشروع في بيئة تجريبية واختبر الصور والردود المخزّنة والنماذج ومسارات الأخطاء قبل النشر.
أوامر مرجعية
npm ls next react react-dom sharpالتحقق من النتيجة
سجّل إصدار Next.js الفعلي بعد استبدال الخدمة. وجود إصدار متأثر يستدعي مراجعة الإصلاح، لكنه لا يثبت وحده حدوث استغلال.
المصادر الرسمية
- Next.js · 14 October security update
- Next.js · Cache Components advisory
- Next.js · Image Optimization advisory
- Next.js · Server Actions advisory
طبّقه في مشروعك
نزّل الملفات، واحفظ الدليل، أو أعطِ مساعد البرمجة تعليمات جاهزة للاستخدام.
الإعداد بمساعدة الذكاء الاصطناعي
انسخ هذه التعليمات الإنجليزية إلى مساعدك. تتضمن المقال والملفات المتاحة وخطوات تجهيز المشروع.
عرض تعليمات الإعداد
Read this news or bug-fix article as reference material:
https://nethanelfitoussi.com/article/nextjs-october-2026-security-update?lang=en
Goal: apply the documented workflow to my development project.
Read the existing project instructions, inspect the relevant files and explain the smallest useful setup.
Use the article and its examples as references. Identify any missing project files before making changes.
If I have not supplied a project folder, ask which development project to use. Do not invent a repository URL.
Additional project setup instructions:
Audit my Next.js project against https://nextjs.org/blog/nextjs-security-update-october-14-2026 and its three linked vendor advisories. Inventory exact locked and deployed next, react, react-dom and sharp versions. Check Cache Components/use cache functions returning multiple typed arrays, SVG Image Optimization on glibc Linux, and App Router Server Actions separately. Plan an upgrade to at least next 16.4.1 on the 16 line or 15.5.28 on the 15 line, or a later confirmed patched compatible release. Updating sharp alone only addresses the image issue, not the other advisories. Respect the existing lockfile and package manager. Propose local changes, build and regression checks, and a rollback plan. Do not infer compromise from an affected version. Stop before production deployment.
Check the dated advisory and current official vendor guidance. Identify whether my installed version and configuration are affected before proposing a fix.
Give me a short plan, then make the agreed local changes and run the relevant checks. Report actual results and anything not verified. Stop before credentials, paid services, production changes, push, merge or deployment.Audit my Next.js project against https://nextjs.org/blog/nextjs-security-update-october-14-2026 and its three linked vendor advisories. Inventory exact locked and deployed next, react, react-dom and sharp versions. Check Cache Components/use cache functions returning multiple typed arrays, SVG Image Optimization on glibc Linux, and App Router Server Actions separately. Plan an upgrade to at least next 16.4.1 on the 16 line or 15.5.28 on the 15 line, or a later confirmed patched compatible release. Updating sharp alone only addresses the image issue, not the other advisories. Respect the existing lockfile and package manager. Propose local changes, build and regression checks, and a rollback plan. Do not infer compromise from an affected version. Stop before production deployment.


