חזרה למחברת
IT & Security2 דקות קריאה

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 מטפל רק בתמונות ואינו מתקן את שתי הבעיות האחרות.
  • בנו בסביבת בדיקות ובדקו תמונות, תשובות שמורות במטמון, טפסים ונתיבי שגיאה לפני הפריסה.

פקודות עזר

Read-only dependency inventory; use your project package manager
npm ls next react react-dom sharp

איך לוודא שהטיפול הושלם

תעדו את גרסת Next.js שנפרסה אחרי החלפת השירות. גרסה שנכללת בטווח הפגיע מחייבת בדיקת טיפול; היא אינה מוכיחה כשלעצמה שהתרחשה תקיפה.

מקורות רשמיים

מכאן לפרויקט שלכם

הורידו את הקבצים, שמרו את המדריך או תנו לעוזר הפיתוח תיאור משימה מוכן.

מכינים את הפרויקט עם AI

העתיקו את הפרומפט באנגלית לעוזר הפיתוח. הוא כולל את המאמר, הקבצים הזמינים ושלבי ההכנה.

הצגת פרומפט ההכנה
AI setup prompt · English
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.
The prompt
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.
Next.jsReactSecurityServer Actions