Context-Inappropriate Capability
Medium
- Confidence
- 97% confidence
- Finding
- The example constructs HTML with template literals that interpolate `this.properties.imgSrc`, `title`, and `desc` directly into `innerHTML` without escaping or sanitization. If developers copy this pattern with user-controlled or external data, it can lead to DOM-based XSS in the application using the overlay, and the map/UI context makes the pattern especially likely to be reused in production code.
