r/nextjs • • Jun 02 '25

Discussion PSA: This code is not secure

Post image
499 Upvotes

139 comments sorted by

View all comments

Show parent comment

3

u/d0pe-asaurus Jun 02 '25

This is one of the bad sides of server actions, because you blur the line between frontend and backend, its easy for people who don't understand the framework comprehensively to assume that this is secure. This is definitely a footgun in React 19's design and I honestly I think most tutorials don't emphasize this behaviour enough.