
nmap script to scan react2shell (CVE-2025-55182 and CVE-2025-66478) Vulnerability
Author: Saad Ayady
License: Same as Nmap (open source)
Category: Safe, Discovery, Vulnerability Detection
Status: Detection-only, non-exploitative
React2Shell PRO v2 is an advanced Nmap NSE script for detecting potentially vulnerable React Server Components (RSC) and unsafe SSR (Server-Side Rendering) endpoints.
It focuses on:
The script calculates a weighted score to estimate risk levels and generates a concise report with recommendations.
sudo cp react2shell.lua /usr/share/nmap/scripts/
sudo nmap --script-updatedb
nmap -p 80,443 --script react2shell <target-ip>
============================================================
REACT2SHELL PRO DETECTOR v2 - RESULTS
============================================================
Target: 192.168.1.10:3000
Findings: 3 | Total Score: 18
Detected React Version: 18.2.0
🟡 RISK: MEDIUM
----------------------------------------
Finding #1
Endpoint: /rsc [GET]
Status: 200
Score: 10 (total)
Snippet: {"$$typeof":"react.element","type":"div","props":{"children":"Test"}...
...
============================================================
RECOMMENDATIONS:
- Update React to latest stable (if applicable)
- Audit and sanitize server-side deserialization paths
- Limit public exposure of bundle/package endpoints
- Monitor and rate-limit suspicious POST payloads
============================================================
/, /index, /home, /app /api, /api/v1, /api/v2, /graphql, /graphiql/render, /ssr, /_render, /_ssr/rsc, /_rsc, /_flight, /react, /_react, /server/_next, /_next/data, /_next/static, /_next/server/test, /debug, /health, /status, /metrics/api, /graphql, /rsc, /_flight, /render.. Pull requests and suggestions welcome. . Ensure detection-only behavior remains intact. . Maintain NSE compatibility and safe HTTP handling.
| Total Score | Risk Level | Emoji |
|---|
| 0-9 | LOW | 🟢 |
| 10-19 | MEDIUM | 🟡 |
| 20-29 | HIGH | 🟠 |
| 30+ | CRITICAL | 🔴 |