zlacker

[return to "RCE Vulnerability in React and Next.js"]
1. embedd+od[view] [source] 2025-12-03 16:57:27
>>rayhaa+(OP)
From Facebook/Meta: https://www.facebook.com/security/advisories/cve-2025-55182

> A pre-authentication remote code execution vulnerability exists in React Server Components versions 19.0.0, 19.1.0, 19.1.1, and 19.2.0 including the following packages: react-server-dom-parcel, react-server-dom-turbopack, and react-server-dom-webpack. The vulnerable code unsafely deserializes payloads from HTTP requests to Server Function endpoints.

React's own words: https://react.dev/blog/2025/12/03/critical-security-vulnerab...

> React Server Functions allow a client to call a function on a server. React provides integration points and tools that frameworks and bundlers use to help React code run on both the client and the server. React translates requests on the client into HTTP requests which are forwarded to a server. On the server, React translates the HTTP request into a function call and returns the needed data to the client.

> An unauthenticated attacker could craft a malicious HTTP request to any Server Function endpoint that, when deserialized by React, achieves remote code execution on the server. Further details of the vulnerability will be provided after the rollout of the fix is complete.

◧◩
2. morshu+Jy1[view] [source] 2025-12-04 00:00:34
>>embedd+od
"React Server Functions allow a client to call a function on a server"

Intentionally? That's a scary feature

◧◩◪
3. azangr+4q2[view] [source] 2025-12-04 08:57:45
>>morshu+Jy1
> Intentionally?

It's RPC. Remote procedure calls. An approach that has made a comeback in the front-end space recently. There was tRPC; then react made a splash with the release of its server components; then other frameworks started emulating the approach. I think Svelte now has something similar with its "remote functions". And Solid has been working on something similar; so that SolidStart now has a "use server" pragma. They probably don't replicate React's protocol; but the idea of calling functions on the server is similar.

◧◩◪◨
4. throwu+7v2[view] [source] 2025-12-04 09:39:21
>>azangr+4q2
> An approach that has made a comeback in the front-end space recently.

It wasn’t really a “comeback,” RPC never lost popularity. We just called them “REST” APIs that were a barely disguised adhoc JSON RPC format with a few CRUD verbs tacked on for routing requests.

◧◩◪◨⬒
5. morshu+Ew3[view] [source] 2025-12-04 16:39:54
>>throwu+7v2
If people even bothered with the CRUD verbs instead of making everything POST
[go to top]