
This is a fast, asynchronous Python tool that fingerprints domains for likely Next.js App Router / React Server Components (RSC) infrastructure. (I made it to find the applications possibly vulnerable to CVE-2025-55182 and CVE-2025-66478)
rsc_infra_scan.py is a fast, asynchronous Python tool that fingerprints domains for likely Next.js App Router / React Server Components (RSC) infrastructure.
It does not exploit any vulnerabilities.
It only performs passive HTTP/HTML/header fingerprinting to help you identify targets that might be in the affected technology family (e.g. for RSC‑related CVEs).
This scanner is designed to help identify infrastructure that MAY be vulnerable to:
Important: This tool only identifies infrastructure that appears to use Next.js App Router / RSC technology. It does not verify if a specific CVE is exploitable or if the target is running a vulnerable version. Always verify vulnerability status through proper security testing and vendor advisories.
aiohttp.window.__next_f (Next.js App Router / RSC runtime)react-server-dom-webpackid="__next" containerx-nextjs-* response headersContent-Type: text/x-component[+] mark for “likely RSC / Next.js infra” (score ≥ 50).[-] mark for “unlikely / not detected” or errors.This tool is intended for research and defensive security testing. Do not use it on systems you are not authorized to test.
Clone or download this repository.
Install Python dependencies:
pip install aiohttp
Ensure you have Python 3.8+.
Create a List.txt file in the same directory as rsc_infra_scan.py.
# at the beginning of a line is treated as a comment.Example List.txt:
# Example targets
example.com
https://subdomain.example.org
nextjs-demo.vercel.app
Run the scanner from the directory containing rsc_infra_scan.py and List.txt:
python rsc_infra_scan.py
The script will:
List.txt.Header:
domain,status,is_rsc_like,score,signals_or_error
Example rows:
example.com,[+],yes,75,HTML:(window|self)\.__next_f\s*=; HDR:x-nextjs-cache=HIT
legacy-site.org,[-],no,0,
bad-ssl.test,[-],ERROR,0,SSL: CERTIFICATE_VERIFY_FAILED
Where:
status:
[+] (green in a terminal that supports ANSI) → likely using Next.js App Router / RSC‑style infra.[-] (red) → no strong signals or an error.is_rsc_like:
yes when score >= 50.no otherwise.score:
signals_or_error:
HTML:..., HDR:...) or an error message.The scanner sends a single GET request per target (with HTTP fallback if HTTPS fails) and inspects:
HTML body
window.__next_f → strong Next.js App Router / RSC indicator.react-server-dom-webpack → RSC library reference.id="__next" → generic Next.js root container.Response headers
x-nextjs-cachex-nextjs-matched-pathx-nextjs-pagex-nextjs-router-state-treeContent-Type: text/x-componentEach signal contributes to the overall score. A score ≥ 50 means the domain is "RSC‑infra‑like".
Note: This is not a vulnerability scanner. It cannot tell you if a specific CVE (such as CVE-2025-55182 or CVE-2025-66478) is exploitable, only whether the stack looks like Next.js/RSC infrastructure that might be affected. Always verify actual vulnerability status through proper security testing and consult official vendor advisories.
For more information about the vulnerabilities this tool helps identify:
This project is provided for educational and research purposes only.
The author(s) are not responsible for any misuse or damage caused by this software.
You are solely responsible for complying with all applicable laws and regulations when using this tool.