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
CVE-2025-29927 in Next.js 15.2.0

How to Run: 

```bash
git clone https://github.com/nyctophile0969/CVE-2025-29927
cd CVE-2025-29927
npm install next@15.2.0
npm run dev
```
File Snapshot

[4.0K] /data/pocs/442340e2f60e9330b82a3c040a91e79a5b5eb46b ├── [4.0K] app │   ├── [4.0K] dashboard │   │   ├── [ 87] layout.js │   │   └── [1.2K] page.js │   ├── [ 25K] favicon.ico │   ├── [ 399] globals.css │   ├── [ 481] layout.js │   ├── [4.0K] login │   │   └── [2.2K] page.js │   └── [2.9K] page.js ├── [4.0K] components │   ├── [1.1K] AuthProvider.js │   └── [ 463] PrivateRoute.js ├── [ 369] eslint.config.mjs ├── [ 73] jsconfig.json ├── [4.0K] lib │   └── [ 787] auth.js ├── [ 800] middleware.js ├── [ 92] next.config.mjs ├── [ 455] package.json ├── [193K] package-lock.json ├── [ 81] postcss.config.mjs ├── [4.0K] public │   ├── [ 391] file.svg │   ├── [1.0K] globe.svg │   ├── [1.3K] next.svg │   ├── [ 128] vercel.svg │   └── [ 385] window.svg └── [ 173] README.md 6 directories, 23 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 →