Description
MISP contains a reflected cross-site scripting (XSS) vulnerability in the event REST search export confirmation form. The view template app/View/Events/ajax/eventRestSearchExportConfirmationForm.ctp renders a URL-supplied event ID list into a single-quoted JavaScript string literal using PHP's json_encode() without any hex-encoding flags. By default, json_encode() escapes double quotes and backslashes but does not escape single quotes. Because the JavaScript string is delimited by single quotes, an attacker can inject a single-quote character to terminate the string literal and execute arbitrary JavaScript in the victim's browser session.

The vulnerability affects the Default and UiBeta themes, both of which render this view. The Overmind theme's own copy of the form already passed the value through an escaped data attribute and was not affected by this specific sink.

Preconditions: the victim must be an authenticated MISP user and must actively open or navigate to the attacker-crafted URL. The attacker does not require an account or any prior access to the MISP instance.

Security impact: successful exploitation allows execution of arbitrary JavaScript in the context of the MISP web application, potentially leading to session hijacking, unauthorized actions performed on behalf of the victim, exfiltration of sensitive data visible in the session, or further client-side attacks. The vulnerable component's own confidentiality, integrity, and availability are not directly compromised; the impact is on the underlying user session.
Published: 2026-09-22
Score: 5.1 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Client-Side Script Execution
Action: Immediate Patch
AI Analysis

Impact

This vulnerability allows an attacker to inject arbitrary JavaScript into a victim’s browser session by manipulating a JSON string that is rendered inside a single‑quoted JavaScript literal. The flaw arises because json_encode() was called without hex‑encoding flags, so a single‑quote can terminate the string and break out of the intended context. Successful exploitation can result in session hijacking, unauthorized operations performed under the victim’s account, or exfiltration of data visible in the session. The vulnerability does not directly compromise the server or its stored data; the impact is confined to the client side when a logged‑in user visits a crafted URL.

Affected Systems

The defect exists in the Default and UiBeta themes of the MISP application, specifically in the view template app/View/Events/ajax/eventRestSearchExportConfirmationForm.ctp. Users running those themes and accessing the event REST search export confirmation form are susceptible. The Overmind theme is not affected because it already sanitises the data attribute used.

Risk and Exploitability

The CVSS score is 5.1, indicating a medium severity incident. EPSS data is unavailable, so the current exploitation likelihood is unknown, though the threat existed in public code before the patch. The vulnerability is not listed in the CISA KEV catalog, implying that no known exploits have been reported. Attackers need only craft a malicious URL; an authenticated victim must click it. The primary attack vector is a reflected XSS scenario presented to the user.

Generated by OpenCVE AI on September 22, 2026 at 16:09 UTC.

Remediation

Vendor Solution

The vulnerability is remediated by adding the JSON_HEX_TAG, JSON_HEX_APOS, JSON_HEX_QUOT, and JSON_HEX_AMP flags to the json_encode() call at the rendering sink. These flags cause angle brackets, single quotes, double quotes, and ampersands to be hex-encoded (e.g., ' becomes \u0027), preventing any of these characters from breaking out of the single-quoted JavaScript string literal and thereby eliminating the script injection vector.


OpenCVE Recommended Actions

  • Apply the official patch that adds the JSON_HEX_TAG, JSON_HEX_APOS, JSON_HEX_QUOT, and JSON_HEX_AMP flags to the json_encode() call for the event export confirmation form.
  • Audit other MISP theme files or custom extensions that output JSON inside single‑quoted JavaScript strings and apply the same hex‑encoding flags.
  • If immediate patching is not possible, restrict or disable the event REST search export feature for all users until the fix is applied to prevent reflected XSS attempts.

Generated by OpenCVE AI on September 22, 2026 at 16:09 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 23 Sep 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 22 Sep 2026 17:30:00 +0000

Type Values Removed Values Added
First Time appeared Misp
Misp misp
Vendors & Products Misp
Misp misp

Tue, 22 Sep 2026 13:30:00 +0000

Type Values Removed Values Added
Description MISP contains a reflected cross-site scripting (XSS) vulnerability in the event REST search export confirmation form. The view template app/View/Events/ajax/eventRestSearchExportConfirmationForm.ctp renders a URL-supplied event ID list into a single-quoted JavaScript string literal using PHP's json_encode() without any hex-encoding flags. By default, json_encode() escapes double quotes and backslashes but does not escape single quotes. Because the JavaScript string is delimited by single quotes, an attacker can inject a single-quote character to terminate the string literal and execute arbitrary JavaScript in the victim's browser session. The vulnerability affects the Default and UiBeta themes, both of which render this view. The Overmind theme's own copy of the form already passed the value through an escaped data attribute and was not affected by this specific sink. Preconditions: the victim must be an authenticated MISP user and must actively open or navigate to the attacker-crafted URL. The attacker does not require an account or any prior access to the MISP instance. Security impact: successful exploitation allows execution of arbitrary JavaScript in the context of the MISP web application, potentially leading to session hijacking, unauthorized actions performed on behalf of the victim, exfiltration of sensitive data visible in the session, or further client-side attacks. The vulnerable component's own confidentiality, integrity, and availability are not directly compromised; the impact is on the underlying user session.
Title MISP Reflected Cross-Site Scripting in Event Export Confirmation Form via Unescaped JSON
Weaknesses CWE-79
References
Metrics cvssV4_0

{'score': 5.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: CIRCL

Published:

Updated: 2026-09-22T15:33:05.484Z

Reserved: 2026-09-22T13:01:42.885Z

Link: CVE-2026-95665

cve-icon Vulnrichment

Updated: 2026-09-22T15:33:01.090Z

cve-icon NVD

Status : Deferred

Published: 2026-09-22T14:17:21.180

Modified: 2026-09-22T16:18:21.590

Link: CVE-2026-95665

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-22T17:15:15Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')