Back to all lessons
Awareness Lessons
3 days ago

Critical RCE Flaws in Next.js Demand Immediate Patching

Two critical remote code execution vulnerabilities (CVSS 9.5) were discovered in Next.js, affecting React Server Components and the third-party librsvg library used for SVG processing. The inclusion of an external library (librsvg) in the processing pipeline illustrates how supply chain dependencies can introduce severe vulnerabilities into widely-used frameworks. Because Next.js powers a large number of production web applications, unpatched instances represent a significant attack surface for full system compromise. The out-of-band nature of this patch signals the urgency — organizations that rely on routine patch cycles risk prolonged exposure to actively exploitable flaws.

Tactical Insight

Immediate actions

  • Upgrade all Next.js deployments to version 16.4.1 or 15.5.28 immediately to remediate both RCE and DoS vulnerabilities.
  • Audit all internet-facing Next.js applications and verify patch status using automated vulnerability scanning tools.
  • Temporarily restrict or sanitize SVG file uploads/rendering on affected systems until patching is confirmed complete.

Long-term improvements

  • Establish an out-of-band/emergency patching procedure with defined SLAs (e.g., critical CVSS 9.0+ patched within 24–48 hours).
  • Maintain a real-time Software Bill of Materials (SBOM) to identify third-party library dependencies like librsvg across all applications.
  • Implement runtime application self-protection (RASP) or a Web Application Firewall (WAF) to detect and block RCE exploitation attempts.

Detection measures

  • Enable centralized logging for all Next.js application servers and alert on anomalous server-side rendering or SVG processing activity.
  • Subscribe to the Next.js security advisory feed and CVE notification services to receive zero-delay vulnerability alerts.
  • Conduct regular dependency audits using tools such as `npm audit`, Dependabot, or Snyk to surface vulnerable third-party packages proactively.

Back this up with a control

All controls and vendors

Training helps people spot this. These controls make the attack fail even on the day someone does not.