{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-135235","assignerOrgId":"5a6e4751-2f3f-4070-9419-94fb35b644e8","state":"PUBLISHED","assignerShortName":"CIRCL","dateReserved":"2026-11-23T15:38:46.348Z","datePublished":"2026-11-23T15:38:51.691Z","dateUpdated":"2026-11-23T15:38:51.691Z"},"containers":{"cna":{"affected":[{"cpes":["cpe:2.3:a:misp:misp:*:*:*:*:*:*:*:*"],"modules":["app/View/Events/resolved_misp_format.ctp"],"product":"MISP","programFiles":["app/View/Events/resolved_misp_format.ctp"],"repo":"https://github.com/MISP/MISP","vendor":"MISP","versions":[{"lessThan":"2.5.52","status":"affected","version":"0","versionType":"semver"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:misp:misp:*:*:*:*:*:*:*:*","vulnerable":true}],"negate":false,"operator":"OR"}]}],"credits":[{"lang":"en","type":"reporter","value":"ENISA"},{"lang":"en","type":"remediation developer","value":"iglocska"},{"lang":"en","type":"remediation developer","value":"Claude Opus 5.5"}],"descriptions":[{"lang":"en","value":"MISP contains a stored cross-site script (XSS) vulnerability in the event review page used for merge, import, and enrichment workflows.\n\nObject references displayed on this page include the UUID, name, and meta-category of the referenced object. These values originate from imported data (another event, a module result, or an import file) and were rendered into the HTML output without any encoding or sanitization.\n\nAn attacker who can supply or influence imported MISP-format data can embed arbitrary HTML or JavaScript in the referenced object's UUID, name, or meta-category fields. When a user views the review page, the malicious script executes in the user's browser context.\n\nPreconditions:\n- The attacker must be able to introduce data into a MISP instance (e.g., via import, module enrichment, or event merge).\n- A victim user must open the affected review page in a browser.\n\nSecurity impact:\n- Execution of arbitrary JavaScript in the context of the MISP web application.\n- Potential theft of session tokens, manipulation of user actions, or exfiltration of sensitive threat-intelligence data visible on the page.\n\nAffected versions: MISP prior to 2.5.52."}],"impacts":[{"capecId":"CAPEC-1","descriptions":[{"lang":"en","value":"CAPEC-1 XSS - Reflected"}]}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"NETWORK","baseScore":4.8,"baseSeverity":"MEDIUM","privilegesRequired":"LOW","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"ACTIVE","valueDensity":"NOT_DEFINED","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"LOW","vulnIntegrityImpact":"LOW","vulnerabilityResponseEffort":"NOT_DEFINED"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]},{"format":"SSVC","other":{"content":{"options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"Supplier","timestamp":"2026-11-23T09:37:38Z","version":"2.0.3"},"type":"SSVC"},"scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","description":"CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","lang":"en","type":"CWE"}]}],"providerMetadata":{"orgId":"5a6e4751-2f3f-4070-9419-94fb35b644e8","shortName":"CIRCL","dateUpdated":"2026-11-23T15:38:51.691Z"},"references":[{"name":"Security patch","tags":["patch"],"url":"https://github.com/MISP/MISP/commit/c73c280f65bca6dc441bb66c0453040c5b80c495"}],"solutions":[{"lang":"en","value":"The vulnerability is remediated by applying HTML entity encoding (via the h() helper) to the referenced object's UUID, name, and meta-category before they are written into the HTML output of the review page template. This ensures that any HTML or script characters in attacker-controlled data are neutralized and rendered as inert text."}],"title":"MISP Stored Cross-Site Scripting via Unescaped Object Reference Targets in Review Page","x_gcve":[{"extensions":{"bcp-05-x-01":{"ai_annotations":[{"ai_level":"generated","description":"Draft vulnerability metadata was generated from a git-format patch using an Ollama-hosted language model. Human validation is required before publication.","gna_source":1,"models":[{"gna_source":1,"identifier":"qwen3.8:27b","name":"qwen3.8:27b","source":"ollama"}],"review_status":"full","scope":"record","tags":["ai-computer-assisted:llm-generated","ai-computer-assisted:classification"]}]},"bcp-05-x-02":{"x_patch2vuln":{"assumptions":["PR:L assumes that importing MISP-format data or triggering module enrichment requires an authenticated user with appropriate permissions; the patch does not specify the exact role required.","UI:A assumes the victim must navigate to the specific review page; it is unclear whether the page is auto-loaded or linked from a notification.","CAPEC-1 is used as the closest match; the vulnerability is more accurately classified as stored XSS, but no dedicated CAPEC ID exists for that variant.","The affected_version '0' from explicit context is interpreted as 'all versions prior to 2.5.52' rather than a literal version string.","VC:L and VI:L assume the XSS can read page content and perform actions in the victim's session; the actual scope depends on MISP's same-origin policies and the specific page content."],"capecRationale":[{"capecId":"CAPEC-1","rationale":"CAPEC-1 is the closest available CAPEC pattern for server-side rendered XSS. In this case the payload is stored in MISP data (imported objects) and rendered server-side when the review page is generated, making it technically stored XSS rather than reflected. CAPEC does not have a dedicated 'Stored XSS' entry, so CAPEC-1 is selected as the best available match. The uncertainty is that the data is persisted before rendering, which is more accurately described as stored XSS, but the mechanism (unencoded output into HTML) is identical to what CAPEC-1 describes."}],"commit":"c73c280f65bca6dc441bb66c0453040c5b80c495","confidence":"high","credits":[{"lang":"en","type":"reporter","value":"ENISA"},{"lang":"en","type":"remediation developer","value":"iglocska"},{"lang":"en","type":"remediation developer","value":"Claude Opus 5.5"}],"cvssRationale":"AV:N - MISP is a network-accessible web application. AC:L - No race conditions or special environment needed; importing crafted data and viewing the page is straightforward. AT:N - No prior manipulation of the attack target required. PR:L - The attacker needs an authenticated MISP account to import data or trigger a module/enrichment that produces the malicious object reference. UI:A - The victim must actively open the review page for the script to execute. VC:L - The attacker can read page content (threat intelligence, session data) via injected script. VI:L - The attacker can perform actions on behalf of the victim (e.g., modify events, change settings). VA:N - No availability impact. SC/SI/SA:N - Impact is confined to the victim's browser session within the MISP application; no cross-component or cross-origin impact is evidenced.","fixSummary":"The vulnerability is remediated by applying HTML entity encoding (via the h() helper) to the referenced object's UUID, name, and meta-category before they are written into the HTML output of the review page template. This ensures that any HTML or script characters in attacker-controlled data are neutralized and rendered as inert text.","generatedAt":"2026-11-23T09:37:38.124478Z","generator":"patch2vuln.py","model":"qwen3.8:27b","modelComparison":{"potentialErrors":[],"rankings":[{"agreementScore":11,"assumptionCount":5,"confidence":"high","model":"qwen3.8:27b","score":8}],"selectedModel":"qwen3.8:27b","selectionMethod":"deterministic-consensus-v1","selectionNotice":"The selected result is closest to model consensus; this heuristic does not establish factual correctness and human review remains required."},"patchSha256":"d43d90beab0cf5d67d99c535907528b258c764e55505000c0c0a60f0d34f4cb2","patchSummary":"In app/View/Events/resolved_misp_format.ctp, the echo statement that outputs the object reference target was modified to wrap $referenced_uuid, $name, and $category with the h() HTML-encoding function. A new PHPUnit test file (app/Test/ResolvedMispFormatEscapingTest.php) was added that renders the template with a payload containing angle brackets and quotes, then asserts that the raw tags do not appear in the output and that the h()-encoded form is present instead.","patchTruncated":false,"patches":[{"commit":"c73c280f65bca6dc441bb66c0453040c5b80c495","date":"Mon, 16 Nov 2026 00:16:15 +0100","patchSha256":"d43d90beab0cf5d67d99c535907528b258c764e55505000c0c0a60f0d34f4cb2","retrievedAt":"2026-11-23T09:37:10.875698Z","source":"https://github.com/MISP/MISP/commit/c73c280f65bca6dc441bb66c0453040c5b80c495","sourceUrl":"https://github.com/MISP/MISP/commit/c73c280f65bca6dc441bb66c0453040c5b80c495","subject":"fix: [security] Escape object reference targets on the module"}],"source":"https://github.com/MISP/MISP/commit/c73c280f65bca6dc441bb66c0453040c5b80c495","ssvc":{"options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"Supplier","timestamp":"2026-11-23T09:37:38Z","version":"2.0.3"},"subject":"fix: [security] Escape object reference targets on the module","weaknessRationale":[{"cweId":"CWE-79","rationale":"The patch explicitly adds HTML encoding (h()) to values that were previously printed raw into an HTML template. The commit message confirms the values 'were printed unescaped.' This is a textbook stored XSS (CWE-79) where attacker-controlled data from imported MISP objects is rendered without output encoding."}]}},"bcp-05-x-03":{"x_timeline":{"events":[{"description":"Corrective change authored (c73c280f65bca6dc441bb66c0453040c5b80c495): fix: [security] Escape object reference targets on the module","id":"evt-fix-developed-1","references":["https://github.com/MISP/MISP/commit/c73c280f65bca6dc441bb66c0453040c5b80c495"],"timestamp":"2026-11-15T23:16:15Z","type":"fix-developed"},{"description":"Patch retrieved from the supplied URL; retrieval time is used as the default availability time.","id":"evt-fix-available-1","references":["https://github.com/MISP/MISP/commit/c73c280f65bca6dc441bb66c0453040c5b80c495"],"timestamp":"2026-11-23T09:37:10.875698Z","type":"fix-available"}]}}},"recordType":"advisory","vulnId":"GCVE-1-2026-20428"}]}}}