LogicTrail
  • Trails
  • Check my app
  • Pricing
  • Sign in
  1. Trails
  2. /
  3. Who may see what
  4. · 4 minutes · Pro

The redirect that let them in

Your sends signed-out visitors to the login page. A security advisory says one extra header can skip middleware entirely.

This answers: Is middleware enough to protect my pages? No coding needed. 2 quick decisions.

  • Who may see what
  • Who is signed in

Checking your access…

Is middleware enough to protect my pages?

No. is a useful place for redirects, but it is a single layer, and framework bugs have allowed requests to skip it. Check authorization again wherever data is read: in server pages, route handlers and database rules. Keep your framework patched.

Trail of the bug
  1. Stranger
  2. Proxy
  3. Your server
  4. Database

Breaks at Your server: Proxy skipped; nothing else checks

Why AI tools write this bug

Templates often put the only sign-in check in because it protects every route with a few lines of code.

How to fix it

  1. Check access in each server page and .

3 more steps, and a prompt that checks your own app for this bug. Part of Pro.

Unlock

Common questions

What was the Next.js middleware vulnerability?
CVE-2025-29927 let a crafted header skip middleware, exposing apps whose only auth check lived there. It is fixed in patched versions.

Related scenarios

  • Invoice 105Free · 4 min
  • The admin buttonPro · 4 min
  • Open it in incognitoPro · 4 min

More on this trail

Who may see what: Sign-in, permissions, and the leaks AI-built apps ship most often.

Want someone to look?

We check AI-built apps for this and three other common leaks, in plain English.

Check my app
Sign in

Sign in to walk this one

2 decisions, about 4 minutes, and a prompt to check your own app for the same problem.

Sign in No password. We email you a link.

How to fix it

  1. Check access in each server page and .

3 more steps, and a prompt that checks your own app for this bug. Part of Pro.

Unlock