A Docker Compose environment for a Next.js 13.5.6 application with a login page and an admin dashboard protected by middleware. The README describes it as a test environment for CVE-2025-29927, a Next.js middleware authorization bypass vulnerability.
The README explicitly states the environment is a test environment for CVE-2025-29927, provides exploit usage instructions targeting the local app, and the included middleware implements authorization checks that are the subject of the vulnerability.
vulnerable Next.js web applicationtarget for CVE-2025-29927 exploit
A Next.js 13.5.6 application built from the local Dockerfile, exposed on port 3000. It includes a login page, an admin dashboard, and middleware that checks an 'auth' cookie to protect the /admin route.
A Python script referenced in the README that sends crafted requests with the x-middleware-subrequest header to bypass Next.js middleware authorization. It is not included in the evidence packet.
README.md:30-33README.md:60-64
CVE assessment
How the supplied evidence relates each vulnerability
The environment uses Next.js 13.5.6, which falls within the vulnerable range (13.0.0 - 13.5.8) specified in the README. The middleware implements authorization checks that the CVE describes as bypassable via the x-middleware-subrequest header.
Requirements and sequence described by the evidence
Prerequisites
Docker and Docker Compose installed to run the vulnerable app.README.md:60-64
Python 3 with requests and selenium libraries to run the exploit script.README.md:46-49requirements.txt:1-3
Evidence-described exercise path
Start the vulnerable Next.js application using Docker Compose.README.md:60-62
Run the exploit script against the local application to bypass middleware authorization.README.md:63
Safety-review evidence
Behaviors behind the stored safety assessment
No harmful behavior observed
The environment is a self-contained lab that runs a Next.js app in a container. The exploit targets the lab's own service on localhost. No evidence of host escape, external connections, persistence, credential theft, or destructive behavior is present.
The exploit script (exploit-CVE-2025-29927.py) is referenced but not included in the evidence packet; its behavior cannot be inspected.
The Docker Compose file uses version '3', which is deprecated; the actual runtime behavior depends on the Docker Compose version used.
No runtime configuration (e.g., .env files) is included; the app's full behavior at runtime is not fully determined.
Model interpretation
This review is limited to the supplied lab evidence packet. It does not assert that the environment runs, reproduces a vulnerability, or is safe to execute. Contract: eip-docker-lab-analysis-v1.