MISP versions prior to 2.5.52 contain a stored cross-site scripting (XSS) vulnerability in the rendering of map attachments. Malicious HTML or JavaScript embedded in GPX waypoint names or GeoJSON property keys/values can execute in the browser of users viewing the affected map popups. This requires an authenticated user with upload permissions to craft and upload a malicious file. The vulnerability can lead to arbitrary script execution, potentially enabling session hijacking or unauthorized actions.