CVE-2026-95682: MISP Stored Cross-Site Scripting via Unescaped Organization Name in Admin Email View
MISP contains a stored cross-site scripting (XSS) vulnerability in the admin email composition screen. The MISP.org organization name setting was interpolated directly into a JavaScript string literal using an unescaped PHP echo: var org = "<?php echo $org;?>";. Because the value was placed inside a double-quoted JavaScript string without any encoding, an organization name containing a double-quote character (or a backslash) could terminate the string literal and inject arbitrary JavaScript into the page. The injected script would execute in the context of any authenticated user who subsequently loads the admin email page, potentially allowing session hijacking, data exfiltration, or privileged actions performed on behalf of the victim.
Exploitation requires the ability to set or modify the MISP.org organization name and a second authenticated user visiting the affected admin email view.
The vulnerability is a classic instance of insufficient output encoding in a JavaScript context.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Configuration
Replace the raw PHP echo of the organization name in the JavaScript string literal with json_encode() using the JSON_HEX_TAG, JSON_HEX_AMP, JSON_HEX_APOS, and JSON_HEX_QUOT flags.
MISP admin email composition screen Organization name JavaScript output encoding = json_encode($org, JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX_APOS | JSON_HEX_QUOT)
Event History
Frequently Asked Questions
Who can be affected by this issue?
Any authenticated user who loads the affected admin email composition view can execute the stored script in their MISP session. The impact can include session hijacking, data exfiltration, or actions performed with the victim's privileges.
What access does an attacker need to exploit it?
The attacker must be able to set or modify the MISP.org organization name, including inserting a double quote or backslash, and an authenticated second user must subsequently visit the affected admin email view.