
A bash script to scan your server for React applications vulnerable to **CVE-2025-55182** — a critical remote code execution vulnerability (CVSS 10.0) in React Server Components.
A bash script to scan your server for React applications vulnerable to CVE-2025-55182 — a critical remote code execution vulnerability (CVSS 10.0) in React Server Components.
On December 3, 2025, the React team disclosed a critical security vulnerability affecting React Server Components. An unauthenticated attacker can exploit a flaw in how React decodes payloads sent to React Server Function endpoints to achieve remote code execution.
Affected packages:
react-server-dom-webpack versions 19.0.0, 19.1.0, 19.1.1, 19.2.0react-server-dom-parcel versions 19.0.0, 19.1.0, 19.1.1, 19.2.0react-server-dom-turbopack versions 19.0.0, 19.1.0, 19.1.1, 19.2.0Fixed versions: 19.0.1, 19.1.2, 19.2.1
curl -sSL https://raw.githubusercontent.com/umairahmadh/react-vuln-scanner/main/scan-react-vuln.sh | sudo bash
# Download
curl -O https://raw.githubusercontent.com/umairahmadh/react-vuln-scanner/main/scan-react-vuln.sh
# Make executable
chmod +x scan-react-vuln.sh
# Run with sudo for full system scan
sudo ./scan-react-vuln.sh
sudo curl -o /usr/local/bin/scan-react-vuln https://raw.githubusercontent.com/umairahmadh/react-vuln-scanner/main/scan-react-vuln.sh
sudo chmod +x /usr/local/bin/scan-react-vuln
# Now run from anywhere
sudo scan-react-vuln
The script scans the following locations for React applications:
node_modules/ directories.cache/, .npm/, .pnpm/ directorieswp-content/, wp-includes/, plugins/, themes/)The scanner provides color-coded output:
============================================================
React CVE-2025-55182 Vulnerability Scanner
Critical: Remote Code Execution (CVSS 10.0)
============================================================
Scanning for React applications...
Scanning: /home/deploy (owner: deploy)
[VULNERABLE] my-nextjs-app
Path: /home/deploy/my-nextjs-app
Owner: deploy
- [email protected] (VULNERABLE)
- [email protected] (UPDATE RECOMMENDED)
[SAFE] my-react-spa
Path: /home/deploy/my-react-spa
Owner: deploy
- [email protected]
============================================================
SCAN COMPLETE
============================================================
find, grep, sed)jq for more reliable JSON parsingbash --version
If the scanner finds vulnerable applications, update them immediately:
npm install react@latest react-dom@latest
npm install react-server-dom-webpack@latest
npm install [email protected] # or latest in your release line
npm install react@latest react-dom@latest react-server-dom-parcel@latest
npm install react@latest react-dom@latest react-server-dom-webpack@latest waku@latest
sudo to scan all user directories0 = no vulnerabilities found1 = vulnerabilities detected (useful for CI/CD)MIT License - Free to use, modify, and distribute.
Pull requests welcome! Please ensure any changes:
jq installedMade with ❤️ for the React community. Stay safe! 🛡️
| Location | Description |
|---|
/root | Root user's home directory |
/home/* | All user home directories |
/var/www | Common web server root |
/srv | Service data directory |
/opt | Optional application software |