nextjs

Identify authorization, caching, and runtime vulnerabilities in Next.js applications.

846|152|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/xalgord/xalgorix --skill nextjs-xalgord
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nextjs
Source: https://github.com/xalgord/xalgorix/tree/main/internal/tools/skills/data/frameworks/nextjs
Command: npx skills add https://github.com/xalgord/xalgorix --skill nextjs-xalgord

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This playbook provides a structured approach to discovering and validating authorization drift, caching boundary failures, server action misuse, and Edge/Node runtime divergences specific to Next.js applications, reducing missed vulnerabilities that arise from Next.js' multiple routers and rendering modes.

Core Features & Use Cases

  • Route & Artifact Discovery: Techniques to enumerate routes via build manifests, source maps, and client bundles to uncover hidden or admin paths.
  • Middleware & Authorization Testing: Methods to test middleware normalization, header manipulation, parameter pollution, and cross-router authorization inconsistencies.
  • Server Actions, RSC & Caching Checks: Procedures to detect server action invocation flaws, RSC flight data leakage, ISR/on-demand revalidate weaknesses, and cache key confusion.
  • Integrations & Edge Cases: Tests for NextAuth callback issues, image optimizer SSRF vectors, and Edge vs Node enforcement differences.
  • Use Case: During a pentest of a SaaS platform built on Next.js, use this playbook to map routes, compare App and Pages router access controls, probe cached responses for user-specific data, and validate that server actions require strict server-side authorization.

Quick Start

Scan https://target.example for middleware bypasses, server action abuse, RSC/flight-data leakage, and cache boundary vulnerabilities.

Frequently Asked Questions about nextjs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find authorization and caching vulnerabilities in Next.js applications?

Server actions and RSC payloads can leak data if not properly secured. Detect server action invocation flaws and RSC flight data leakage by inspecting client bundles and testing invocation endpoints for strict server-side authorization during penetration testing.

How do I test Next.js middleware for security bypasses?

Test Next.js middleware bypasses by manipulating HTTP headers, probing parameter pollution, and checking route normalization. Compare access controls between App Router and Pages Router to uncover cross-router authorization inconsistencies in your application.

What are common Next.js Edge runtime vs Node runtime security differences?

Yes, the image optimizer can be exploited for SSRF vectors. Test the Next.js image optimizer by manipulating source URL parameters to probe for server-side request forgery vulnerabilities, and check NextAuth callback configurations for authorization issues.

How do I enumerate hidden routes in a Next.js app?

Next.js caching weaknesses include ISR and on-demand revalidation flaws, plus cache key confusion. Probe cached responses for user-specific data leakage by testing revalidation endpoints and manipulating cache keys during security reviews.