Context-Inappropriate Capability
Medium
- Confidence
- 98% confidence
- Finding
- The documentation recommends transforming message content into HTML and rendering it with dangerouslySetInnerHTML, even though chat content is inherently untrusted and may be model- or user-controlled. This creates a straightforward DOM XSS path if crafted content includes executable markup or if future formatting rules become more permissive.
