{"id":"CVE-2026-104907","published":"2026-10-02T15:51:34Z","modified":"2026-10-02T16:18:12Z","title":"MISP: JavaScript Injection via Remote Tag ID in Event Preview Inline Handler","vendor":"MISP","product":"MISP","tier":"tail","description":{"text":"MISP contains a cross-site scripting (XSS) vulnerability in the remote event preview page. When a linked (remote) MISP server is configured, the event preview renders tag identifiers inside an inline JavaScript onclick attribute. The tag ID value was HTML-escaped but not sanitized for the JavaScript string context, meaning a malicious linked server could supply a tag ID containing characters (such as a single quote) that break out of the JavaScript string literal and inject arbitrary script.\n\nPreconditions:\n\n- A linked/remote MISP server is configured and connected to the local instance.\n\n- The linked server supplies a crafted tag ID in an event.\n\n- An authenticated user views the event preview and interacts with the affected tag element.\n\nImpact:\n\n- Arbitrary JavaScript execution in the context of the viewing user's browser session, potentially allowing session hijacking, data exfiltration, or unauthorized actions on behalf of the user.\n\nAffected versions: MISP prior to the fix commit (v2.5.48 or later, exact boundary unconfirmed).","provenance":"source","from":"CVE.org"},"cvss":{"score":4.8,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00484,"percentile":0.34345,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-116","name":"Improper Encoding or Escaping of Output"}],"references":[{"url":"https://github.com/MISP/MISP/commit/70ad174dd","tags":["patch"]}],"priority":{"score":10.2,"factors":[{"name":"EPSS percentile","points":6.87},{"name":"CVSS severity","points":3.36}]},"vendorSlug":"misp","affectedVersions":[{"vendor":"MISP","product":"MISP","versions":["< 2.5.48"]}],"solutions":{"items":["The vulnerability is remediated by casting the remote tag ID to an integer before embedding it in the inline JavaScript onclick handler. This ensures only a numeric value is rendered, eliminating the possibility of breaking out of the JavaScript string context with special characters."],"from":"CVE.org CNA","provenance":"source"},"capec":[{"id":"CAPEC-1","name":"Cross Site Scripting"},{"id":"CAPEC-126","name":"Exploiting Incorrectly Handled Special/Control Characters"}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-10-02T16:17:59.477633Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-91743","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-misp-cve-2026-104907","children":[{"from":"CVE-2026-104907","to":"CVE-2026-112183","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["app/View/Servers/preview_event.ctp"],"commits":["https://github.com/MISP/MISP/commit/70ad174ddd438887687d40fc1e2e4e8b322a179e","https://github.com/MISP/MISP/commit/91323b517bb5a34f413363faf8703a3c0a1a9904"],"basis":"rarely changed file"}]}]}}