nextjs-security

Analyze Next.js applications for middleware, environment variable, redirect, and header security weaknesses.

15|Updated May 12, 2026
One-click install
npx skills add https://github.com/GoldenWing-360/claude-security-skills --skill nextjs-security-goldenwing-360
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nextjs-security
Source: https://github.com/GoldenWing-360/claude-security-skills/tree/main/nextjs-security
Command: npx skills add https://github.com/GoldenWing-360/claude-security-skills --skill nextjs-security-goldenwing-360

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It helps identify and mitigate security issues specific to Next.js apps, ensuring robust defense against common vulnerabilities.

Core Features & Use Cases

  • Security Auditing: Checks for middleware bypasses, environment variable leaks, and unsafe redirects.
  • Best Practices Enforcement: Guides secure configuration of server components, CSP, image loading, and headers.
  • Use Case: Before deploying a Next.js 14 project, run this Skill to review security configurations and confirm compliance with best practices.

Quick Start

Use the nextjs-security skill to analyze your Next.js project directory for security misconfigurations and vulnerabilities.

Frequently Asked Questions about nextjs-security

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

FAQPage Schema
How do I prevent middleware bypasses in my Next.js application?

Preventing middleware bypasses in your Next.js application requires analyzing routing configurations to identify security weaknesses. This Skill audits your project to detect misconfigurations where middleware might be skipped or bypassed.

What is the best way to check for environment variable leaks in Next.js?

Checking for environment variable leaks in Next.js involves reviewing server component configurations and deployment setups. This Skill analyzes your application to identify potential exposure of sensitive environment variables before launch.

How do I secure unsafe redirects in Next.js?

Securing unsafe redirects in Next.js requires reviewing your redirect logic to prevent open redirect vulnerabilities. This Skill analyzes your application code to identify and help mitigate unsafe redirect configurations during security audits.

Can I use this to review Content Security Policy (CSP) and headers for Next.js?

Yes, you can use this to review Content Security Policy and headers for Next.js. It guides the secure configuration of server components, CSP, image loading, and headers to ensure compliance with best practices before deployment.

Does this Skill check for Server-Side Request Forgery (SSRF) in Next.js image handling?

Yes, this Skill checks for Server-Side Request Forgery risks in Next.js image handling. It analyzes image loading configurations to ensure secure deployment and mitigate potential SSRF vulnerabilities.

When do I need to audit my Next.js project for security misconfigurations?

You need to audit your Next.js project for security misconfigurations before deploying or upgrading to ensure robust defense against vulnerabilities. This Skill is suitable for developers reviewing code to confirm compliance with runtime security measures and best practices.