XSS Through dangerouslySetInnerHTML
React escapes values rendered in JSX by default, but dangerouslySetInnerHTML bypasses this protection entirely. When user-controlled data flows into dangerouslySetInnerHTML without sanitization, attackers can inject scripts that steal session tokens, redirect users to phishing pages and modify the DOM. This includes data from API responses, URL parameters, CMS content and user profiles. We trace data flow from every input source to identify unsanitized HTML injection points across your component tree.