3 ms·
No. You cannot find all vulnerable code by grepping for ”use server”, for instance.
by cluckindan 11mo ago
No. You cannot find all vulnerable code by grepping for ”use server”, for instance.
- dizlexic 11mo agoSo that’s your “it’s not related to use server” argument? That seems like it could be a quote from their hardening guide.
- jazzypants 11mo agoI'm sorry, but you're incorrect. That is genuinely how this CVE works. All (and only) code with "use server" was vulnerable.
- vinnymac 11mo agoThe official blog post disagrees. > Even if your app does not implement any React Server Function endpoints it may still be vulnerable if your app supports React Server Components.
- jazzypants 11mo agoOops, yeah. My bad, you're right. It makes sense that any flight server that is capable of interpreting server functions would be vulnerable whether the codebase used them or not. It's an issue in the transport mechanism and not the actual RPC implementation.
- ptx 11mo agoI think the top-level comment was criticizing the entire feature (server functions) enabled by "use server". The vulnerability is in this feature, so (as I understand it) you're correct that grepping for "use server" won't find the vulnerable code, but if there was no such thing as "use server" the vulnerability wouldn't exist.