Context-Inappropriate Capability
Medium
- Confidence
- 87% confidence
- Finding
- The guidance explicitly recommends using an inline script with dangerouslySetInnerHTML to read from localStorage and mutate the DOM before hydration. While the example uses a fixed script body rather than interpolating attacker-controlled data, it normalizes a high-risk primitive that bypasses React's usual safety guarantees and can encourage unsafe copy-paste adaptations in application code.
