React with Caution - How to Hack Your React App (And Fix It Too)
summary
Demonstrates a recent exploit called React Shell (remote code execution, Dec 2025) and shows how JSX prevents most XSS but fails when using dangerouslySetInnerHTML. Walks through supply‑chain risks like typo‑squatting and prototype pollution, recommends Dependabot, Snyk and locking versions, and warns about ReDoS from AI‑generated regex. Recommends sanitizers such as DOMPurify, access controls like OpenFGA, strict Content Security Policy (frame‑ancestors) and OWASP Bulletproof React Project resources.
AI-written summary · about
chapters (12)
- 0:00Introduction to React security
- 1:04React as a secure fortress
- 2:30React Shell vulnerability explained
- 3:34JSX as first line of defense
- 4:58Supply chain attacks on NPM
- 7:46Typo squatting in React packages
- 8:29Securing dependencies and updates
- 9:31Broken access control risks
- 10:54Cross-site scripting dangers
- 12:40Clickjacking and CSP solutions
- 14:24OWASP resources for developers
- 15:50Wrap-up and key takeaways
