When the React team published CVE-2025-55182 in December 2025 — the flaw now tracked publicly as React2Shell — the immediate response from most security teams was to check their package.json files. That reflex misses the point. The bug lives in the React Server Components (RSC) Flight protocol handler that ships inside React 19.0.0 through 19.2.0 and the corresponding Next.js 15.x and 16.x releases, and it is reachable entirely over HTTP. The vulnerable code path never appears in your application source; it executes before your server actions run. This article covers how to hunt exploitation attempts from the telemetry you already own — WAF, reverse proxy, and CDN logs — with Sigma and Suricata rules that compile, and a clear list of patched versions to push.
What React2Shell actually is
CVE-2025-55182 is an unauthenticated remote code execution vulnerability in the React Server Components Flight protocol deserializer. React's Flight protocol serializes server-rendered component trees into a stream of tagged rows (prefixed with 0:, 1:, 2:, and so on) that the client reconstructs. The parser trusts the row type and payload shape it receives. When an attacker submits a crafted Flight payload to an RSC endpoint, the deserializer can be coerced into instantiating objects and invoking methods that were never meant to be reachable from untrusted input — the classic prototype-pollution-to-gadget-chain pattern, this time inside the RSC runtime itself.
The React security advisory rates the issue as critical (CVSS 10.0 / 9.8 depending on the affected package), with network attack vector, no privileges required, and no user interaction. The Next.js advisory, GHSA-f82v-jwr5-mffw, is the one most enterprise teams will track, because Next.js is the usual delivery vehicle for RSC in production.
Per the React advisory, the vulnerability is in the react-server-dom-* packages that implement Flight deserialization, not in user application code. Upgrading the framework is the only fix; there is no application-level mitigation that fully removes the exposure.Affected versions and the advisory trail
According to the React security advisory and the Next.js advisory, the following are affected:
react-server-dom-webpack,react-server-dom-parcel, andreact-server-dom-turbopackversions 19.0.0 through 19.2.0.- Next.js 15.x releases prior to the patched 15.5.x line, and Next.js 16.x releases prior to 16.0.7.
- Any framework that vendors an unpatched copy of the Flight deserializer (Remix, Waku, and various meta-frameworks have published their own advisories).
Patched versions are React 19.2.1 and Next.js 15.5.7 / 16.0.7. Confirm against the official advisories before you publish an internal bulletin — the version matrix has been revised at least once since initial publication. Also check your SBOM for transitive dependencies: a surprising number of applications pull in react-server-dom-webpack indirectly through a UI library rather than declaring it explicitly.
Attacker TTPs: what the request looks like
Public write-ups and the React advisory describe a request that targets an RSC endpoint — typically /, /api/..., or any route that serves a Flight response — with a Next-Router-State-Tree header and a body containing a Flight row. The attacker controls the row type and payload; by chaining prototype pollution with a gadget in the deserializer, they reach child_process or vm and execute code as the Node.js process user.
Mapped to MITRE ATT&CK, the pattern is:
- T1190 — Exploit Public-Facing Application (initial access).
- T1059.004 — Command and Scripting Interpreter: Unix Shell (post-exploitation execution).
- T1105 — Ingress Tool Transfer (staging a second-stage payload).
- T1071.001 — Application Layer Protocol: Web Protocols (C2 over HTTPS to the same origin).
In the wild, the most reliable signal is not the exploit body itself — that is often obfuscated — but the shape of the request: a POST with a JSON-ish content type to a route that normally only serves GET, a body whose first bytes are a Flight row marker, and a client that never fetches the corresponding static chunks. That last signal is gold in CDN logs.
Detection: Sigma, Suricata, and WAF rules
Sigma: Flight-row POST to RSC endpoint
title: React2Shell Flight Row POST to RSC Endpoint
description: Detects POST requests carrying React Flight row markers to RSC routes
status: experimental
logsource:
category: webserver
detection:
selection_method:
cs-method: 'POST'
selection_uri:
- '/'
- '/api/*'
- '/_next/*'
selection_body:
- '*0:I[*'
- '*0:D[*'
- '*0:J[*'
selection_ct:
cs-content-type:
- 'text/x-component'
- 'application/x-www-form-urlencoded'
filter_legit:
cs-user-agent:
- 'Mozilla/5.0 (compatible; Googlebot/*'
- 'Mozilla/5.0 (compatible; bingbot/*'
condition: selection_method and selection_uri and selection_body and selection_ct and not filter_legit
fields:
- c-ip
- cs-uri-stem
- cs-user-agent
- cs-content-type
level: highAdjust selection_body for your log format; many WAFs base64-encode bodies, in which case match on the decoded field or use a |base64offset|contains| modifier. Keep the filter_legit block narrow — bots do occasionally POST to /, but not with a Flight row marker.
Suricata: request-line and body signature
alert http any any -> $HOME_NET any ( \
msg:"React2Shell RSC Flight deserialization attempt"; \
flow:established,to_server; \
http.method; content:"POST"; \
http.content_type; content:"text/x-component"; nocase; \
http.request_body; content:"0:I["; depth:8; \
classtype:web-application-attack; \
sid:1005518; rev:1; )This fires on the Flight row marker at the start of the body. It will not catch every obfuscated payload, but combined with the Sigma rule above it gives you two independent detection surfaces — the proxy log and the wire — which is the minimum you should aim for on a CVSS 10.0.
WAF rule (ModSecurity / CRS-style)
SecRule REQUEST_METHOD "@streq POST" \
"id:551820,phase:2,deny,status:403, \
chain,msg:'React2Shell Flight row in request body'"
SecRule REQUEST_BODY "@rx ^0:[IDJ]\[" \
"t:none,t:urlDecodeUni"Deploy in block mode only after a 48-hour count period — some legitimate RSC frameworks send 0:I rows on form submissions, and you do not want to break checkout on a Friday.
Mitigation: patch and verify
Patch to React 19.2.1 or Next.js 15.5.7 / 16.0.7 per the vendor advisories. Then verify, because npm ls react-server-dom-webpack is the only reliable check — a lockfile that lists React 19.2.1 at the top can still resolve a vulnerable transitive copy. If you cannot patch immediately, the Next.js advisory suggests disabling React Server Components on any route that does not strictly need them, and fronting RSC endpoints with a WAF rule that enforces Content-Type: text/x-component only on known RSC routes. Neither is a substitute for the patch.
Why this matters for defenders
React2Shell is a useful case study in why "patch your dependencies" is insufficient as a security control. The vulnerable code was not in the application; it was in the framework's protocol handler, and it was reachable from the public internet by design. The organizations that responded well did not just upgrade — they had the log coverage to answer, within an hour, the question every CISO asks after a critical CVE: were we hit before we patched? That answer lives in your WAF, your reverse proxy, and your CDN access logs, not in your SBOM. If you cannot query Flight-row POSTs across the last 30 days, you do not know whether you were compromised — you only know whether you noticed.
Sources
- React security advisory GHSA-f82v-jwr5-mffw (CVE-2025-55182) — confirms affected react-server-dom-* versions and the 19.2.1 fix.
- Next.js security advisory for CVE-2025-55182 — confirms affected Next.js 15.x/16.x ranges and patched 15.5.7 / 16.0.7 releases.
- NVD entry for CVE-2025-55182 — CVSS score and reference list.
- CISA Known Exploited Vulnerabilities catalog — check for React2Shell entry and remediation deadlines.
Frequently Asked Questions
Does CVE-2025-55182 affect React apps that do not use Server Components?
No. The vulnerability is in the Flight protocol deserializer shipped in react-server-dom-* packages. A client-only React SPA that does not import these packages is not exposed. Verify with npm ls react-server-dom-webpack rather than assuming.
Is a WAF rule a sufficient mitigation if I cannot patch this week?
No. The React advisory is explicit that patching is the fix. A WAF rule that blocks Flight row markers on non-RSC routes reduces exposure but can be bypassed with encoding tricks, and it will break legitimate RSC traffic if applied too broadly. Treat it as a stopgap.
What log sources do I need to hunt for exploitation?
At minimum: reverse-proxy or CDN access logs (for POST method, URI, user-agent, content-type), WAF logs (for rule hits and request bodies if retained), and Node.js application logs (for child_process spawns and unexpected vm usage). The CDN log is usually the cheapest place to start.
How do I know if I was exploited before patching?
Query for POST requests to RSC endpoints with text/x-component content type and a body beginning with a Flight row marker, over the full exposure window. Correlate with outbound connections from the Node.js host to unfamiliar IPs in the hours after each hit. Absence of hits is not proof of safety; absence of logging is proof of ignorance.
Are Next.js 14 and earlier affected?
According to the Next.js advisory, the affected range is 15.x and 16.x. Next.js 14 and earlier do not ship the vulnerable Flight deserializer in the same form. Confirm against the advisory for your specific minor version.
Does this affect React Native or React DOM in the browser?
No. The flaw is server-side, in the RSC deserializer. Browser-side React DOM is not in the attack path.
Need expert help with this?
If React2Shell is on your remediation board and you are not certain whether you were hit before patching, CybernytronX can help. Our team builds detection coverage for critical CVEs like this one — WAF and proxy log pipelines, Sigma and Suricata rules tuned to your stack, and retrospective hunts across your retained telemetry. We also deploy Ethereon, our AI-assisted threat-detection platform, to surface Flight-protocol abuse and similar framework-level attacks in real time. Start at cybernytronx.com/contact.html or read about Ethereon at cybernytronx.com/ethereon.html.