MISP contains a stored cross-site script (XSS) vulnerability in the event review page used for merge, import, and enrichment workflows.
Object references displayed on this page include the UUID, name, and meta-category of the referenced object. These values originate from imported data (another event, a module result, or an import file) and were rendered into the HTML output without any encoding or sanitization.
An attacker who can supply or influence imported MISP-format data can embed arbitrary HTML or JavaScript in the referenced object's UUID, name, or meta-category fields. When a user views the review page, the malicious script executes in the user's browser context.
Preconditions:
- The attacker must be able to introduce data into a MISP instance (e.g., via import, module enrichment, or event merge).
- A victim user must open the affected review page in a browser.
Security impact:
- Execution of arbitrary JavaScript in the context of the MISP web application.
- Potential theft of session tokens, manipulation of user actions, or exfiltration of sensitive threat-intelligence data visible on the page.
Affected versions: MISP prior to 2.5.52.
The vulnerability is remediated by applying HTML entity encoding (via the h() helper) to the referenced object's UUID, name, and meta-category before they are written into the HTML output of the review page template. This ensures that any HTML or script characters in attacker-controlled data are neutralized and rendered as inert text.