~/talk

Avoiding The Security Pitfalls of React Server Components

Talkat UtahJS Conf 2025 · on Friday, 2025-09-12· [react, security]
links:none on file
slides:none on file

React Server Components and Server Functions let client code call server-side functions, but build-time routing creates Next.js action hash endpoints that land in client bundles, making accidental leaks like open API keys realistic; demo shows a production bundle exposing the action hash so anyone can POST arbitrary params. Framework mitigations include Next.js blocking process.env (only NEXT_PUBLIC is exposed) and React experimental taintObjectReference / taintObjectValue, but hashes, endpoint proliferation, and improper parameter trust remain concrete risks. Training and explicit boundary design are the recommended defenses.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 1:14React Server Components paradigm shift
  3. 3:02Thesis on security trade-offs
  4. 6:10React Server Components basics
  5. 7:15Traditional web security boundaries
  6. 9:49Fuzzy boundary in RSC
  7. 10:10Demo: Accidental secret leak
  8. 13:38Server functions as endpoints
  9. 17:38Security mindset shift required
  10. 18:22Classic endpoint vulnerability
  11. 20:52RSC impact on function security
  12. 21:13Philosophy behind RSC design
  13. 24:06Current security measures
  14. 25:53React’s experimental taint tools
  15. 26:15Final thoughts and recommendations
  16. 27:46Training and client boundaries
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.