Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2025-29927 PoC — Authorization Bypass in Next.js Middleware

Source
Associated Vulnerability
Title:Authorization Bypass in Next.js Middleware (CVE-2025-29927)
Description:Next.js is a React framework for building full-stack web applications. Starting in version 1.11.4 and prior to versions 12.3.5, 13.5.9, 14.2.25, and 15.2.3, it is possible to bypass authorization checks within a Next.js application, if the authorization check occurs in middleware. If patching to a safe version is infeasible, it is recommend that you prevent external user requests which contain the x-middleware-subrequest header from reaching your Next.js application. This vulnerability is fixed in 12.3.5, 13.5.9, 14.2.25, and 15.2.3.
Readme
# Next.js Docker Hello World

A simple Hello World application using Next.js 12.2 and Docker.

## Prerequisites

- Docker

## Building and Running the Application

1. Build the Docker image:
```bash
docker build -t nextjs-docker-hello .
```

2. Run the container:
```bash
docker run -p 3000:3000 nextjs-docker-hello
```

3. Open your browser and visit:
```
http://localhost:3000
```

## Development

To run the application in development mode without Docker:

1. Install dependencies:
```bash
npm install
```

2. Start the development server:
```bash
npm run dev
``` 
File Snapshot

[4.0K] /data/pocs/45790fa0f051522eab20dce9802d99442508e7ac ├── [ 341] Dockerfile ├── [ 654] middleware.ts ├── [ 568] package.json ├── [4.0K] pages │   ├── [2.0K] admin.tsx │   ├── [4.0K] api │   │   └── [4.0K] auth │   │   ├── [1015] login.ts │   │   └── [ 596] logout.ts │   ├── [ 962] index.tsx │   └── [3.3K] login.tsx ├── [ 567] README.md └── [ 509] tsconfig.json 3 directories, 10 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →