{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-135237",
        "assignerOrgId": "5a6e4751-2f3f-4070-9419-94fb35b644e8",
        "state": "PUBLISHED",
        "assignerShortName": "CIRCL",
        "dateReserved": "2026-11-23T15:39:28.151Z",
        "datePublished": "2026-11-23T15:39:34.802Z",
        "dateUpdated": "2026-11-24T15:58:36.720Z"
    },
    "containers": {
        "cna": {
            "affected": [
                {
                    "cpes": [
                        "cpe:2.3:a:misp:misp:*:*:*:*:*:*:*:*"
                    ],
                    "modules": [
                        "markdownEditor (event report element rendering)"
                    ],
                    "product": "MISP",
                    "programFiles": [
                        "app/webroot/js/markdownEditor/markdownEditor.js"
                    ],
                    "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 DOM-based Cross-Site Scripting (XSS) vulnerability in the event report element rendering pipeline. The client-side sanitization function used to prepare values for doT templates only escaped ampersand, less-than, and greater-than characters. However, the templates place these values inside double-quoted HTML attributes. Because double-quote and single-quote characters were not escaped, a user with the ability to author or modify report element values could inject a quote character to break out of the attribute context and inject arbitrary HTML or JavaScript that executes in the viewing user's browser.\n\nPreconditions:\n- The attacker must be an authenticated user with permission to create or edit event report elements (e.g., a report author).\n- A victim must open or view the crafted report in a browser.\n\nSecurity impact:\n- Execution of arbitrary JavaScript in the context of the victim's MISP session.\n- Potential theft of session tokens, sensitive data, or unauthorized actions performed on behalf of the victim.\n\nAffected versions: MISP prior to 2.5.52."
                }
            ],
            "impacts": [
                {
                    "capecId": "CAPEC-126",
                    "descriptions": [
                        {
                            "lang": "en",
                            "value": "CAPEC-126 DOM-based Cross-Site Scripting"
                        }
                    ]
                },
                {
                    "capecId": "CAPEC-1",
                    "descriptions": [
                        {
                            "lang": "en",
                            "value": "CAPEC-1 Cross Site Scripting"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV4_0": {
                        "Automatable": "NOT_DEFINED",
                        "Recovery": "NOT_DEFINED",
                        "Safety": "NOT_DEFINED",
                        "attackComplexity": "LOW",
                        "attackRequirements": "NONE",
                        "attackVector": "NETWORK",
                        "baseScore": 6.2,
                        "baseSeverity": "MEDIUM",
                        "privilegesRequired": "LOW",
                        "providerUrgency": "NOT_DEFINED",
                        "subAvailabilityImpact": "NONE",
                        "subConfidentialityImpact": "HIGH",
                        "subIntegrityImpact": "HIGH",
                        "userInteraction": "ACTIVE",
                        "valueDensity": "NOT_DEFINED",
                        "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N",
                        "version": "4.0",
                        "vulnAvailabilityImpact": "NONE",
                        "vulnConfidentialityImpact": "NONE",
                        "vulnIntegrityImpact": "NONE",
                        "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:38:37Z",
                            "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"
                        }
                    ]
                },
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-116",
                            "description": "CWE-116 Improper Encoding or Escaping of Output",
                            "lang": "en",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "5a6e4751-2f3f-4070-9419-94fb35b644e8",
                "shortName": "CIRCL",
                "dateUpdated": "2026-11-23T15:39:34.802Z"
            },
            "references": [
                {
                    "name": "Security patch",
                    "tags": [
                        "patch"
                    ],
                    "url": "https://github.com/MISP/MISP/commit/386942fd34857ba80cfa518471c3230ff21ac7e3"
                }
            ],
            "solutions": [
                {
                    "lang": "en",
                    "value": "The sanitization function now additionally escapes double-quote characters to &quot; and single-quote characters to &#039; after the existing ampersand/angle-bracket escaping. This ensures that values placed inside quoted HTML attributes by the doT templates cannot break out of the attribute context, eliminating the DOM-based XSS vector."
                }
            ],
            "title": "MISP DOM-based Cross-Site Scripting via Incomplete Quote Escaping in Event Report Element Templates",
            "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 the attacker needs an authenticated MISP account with permission to create or edit event report elements; the patch does not specify the exact role required.",
                                    "UI:A assumes the victim must actively open the crafted report; it is unclear whether the report could be auto-loaded in a dashboard or notification context that would lower UI to Passive.",
                                    "The affected version range is inferred from the explicit context (fixed in 2.5.52); the patch itself does not enumerate all affected versions.",
                                    "CAPEC-126 mapping is confident based on the client-side DOM rendering context, but the exact browser rendering path (doT template evaluation) is an implementation detail that could theoretically be classified under a different CAPEC sub-pattern.",
                                    "SC:H and SI:H assume the XSS executes in the same origin as the MISP application, granting access to session cookies and API endpoints; this is the standard assumption for same-origin DOM XSS."
                                ],
                                "capecRationale": [
                                    {
                                        "capecId": "CAPEC-126",
                                        "rationale": "The vulnerability is a textbook DOM-based XSS: attacker-controlled data is processed entirely client-side by JavaScript (sanitizeObject + doT templates) and rendered into the DOM without sufficient encoding for the attribute context. CAPEC-126 is the most specific match. The mapping is confident because the patch explicitly addresses client-side escaping of values rendered into HTML attributes."
                                    },
                                    {
                                        "capecId": "CAPEC-1",
                                        "rationale": "General XSS pattern. Included as a broader classification alongside the more specific DOM-based variant. The attacker injects a quote to break out of an HTML attribute and inject script."
                                    }
                                ],
                                "commit": "386942fd34857ba80cfa518471c3230ff21ac7e3",
                                "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"
                                    },
                                    {
                                        "lang": "en",
                                        "type": "tool",
                                        "value": "Claude Opus 5.5"
                                    }
                                ],
                                "cvssRationale": "AV:N - web application accessible over network. AC:L - crafting a value with a quote character is trivial. AT:N - no special target manipulation. PR:L - attacker needs authenticated access with report-authoring privileges. UI:A - victim must actively open/view the crafted report. VC/VI/VA:N - the MISP server itself is not directly compromised; impact is in the victim's browser. SC:H - attacker can read cookies, tokens, and sensitive data in the victim's session. SI:H - attacker can perform actions on behalf of the victim (CSRF-like, data modification). SA:N - no availability impact on other systems.",
                                "fixSummary": "The sanitization function now additionally escapes double-quote characters to &quot; and single-quote characters to &#039; after the existing ampersand/angle-bracket escaping. This ensures that values placed inside quoted HTML attributes by the doT templates cannot break out of the attribute context, eliminating the DOM-based XSS vector.",
                                "generatedAt": "2026-11-23T09:38:37.943160Z",
                                "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": "616c9466d550d5a11b766cd1d31eb434a37ee85901be9cefdd9850f20a1cb1da",
                                "patchSummary": "In app/webroot/js/markdownEditor/markdownEditor.js, the sanitizeObject() function was modified to append .replace(/\"/g, '&quot;').replace(/'/g, '&#039;') after the existing jQuery .text().html() escaping. A new test file app/Test/js/EventReportElementEscaping.test.mjs was added that verifies: (1) a value containing a double-quote inside a data-elementid attribute does not break out of the attribute, and (2) values that the template encodes again are not double-escaped.",
                                "patchTruncated": false,
                                "patches": [
                                    {
                                        "commit": "386942fd34857ba80cfa518471c3230ff21ac7e3",
                                        "date": "Mon, 16 Nov 2026 00:16:17 +0100",
                                        "patchSha256": "616c9466d550d5a11b766cd1d31eb434a37ee85901be9cefdd9850f20a1cb1da",
                                        "retrievedAt": "2026-11-23T09:38:11.092561Z",
                                        "source": "https://github.com/MISP/MISP/commit/386942fd34857ba80cfa518471c3230ff21ac7e3",
                                        "sourceUrl": "https://github.com/MISP/MISP/commit/386942fd34857ba80cfa518471c3230ff21ac7e3",
                                        "subject": "fix: [security] Escape quotes in event report element"
                                    }
                                ],
                                "source": "https://github.com/MISP/MISP/commit/386942fd34857ba80cfa518471c3230ff21ac7e3",
                                "ssvc": {
                                    "options": [
                                        {
                                            "Exploitation": "none"
                                        },
                                        {
                                            "Automatable": "yes"
                                        },
                                        {
                                            "Technical Impact": "partial"
                                        }
                                    ],
                                    "role": "Supplier",
                                    "timestamp": "2026-11-23T09:38:37Z",
                                    "version": "2.0.3"
                                },
                                "subject": "fix: [security] Escape quotes in event report element",
                                "weaknessRationale": [
                                    {
                                        "cweId": "CWE-79",
                                        "rationale": "The vulnerability allows injection of script into a web page via insufficient escaping of quote characters in HTML attribute context, which is a classic DOM-based XSS."
                                    },
                                    {
                                        "cweId": "CWE-116",
                                        "rationale": "The root cause is that the output encoding (escaping) was incomplete: it handled &, <, > but not the quote characters required when the output is placed inside a quoted HTML attribute."
                                    }
                                ]
                            }
                        },
                        "bcp-05-x-03": {
                            "x_timeline": {
                                "events": [
                                    {
                                        "description": "Corrective change authored (386942fd34857ba80cfa518471c3230ff21ac7e3): fix: [security] Escape quotes in event report element",
                                        "id": "evt-fix-developed-1",
                                        "references": [
                                            "https://github.com/MISP/MISP/commit/386942fd34857ba80cfa518471c3230ff21ac7e3"
                                        ],
                                        "timestamp": "2026-11-15T23:16:17Z",
                                        "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/386942fd34857ba80cfa518471c3230ff21ac7e3"
                                        ],
                                        "timestamp": "2026-11-23T09:38:11.092561Z",
                                        "type": "fix-available"
                                    }
                                ]
                            }
                        }
                    },
                    "recordType": "advisory",
                    "vulnId": "GCVE-1-2026-20430"
                }
            ]
        },
        "adp": [
            {
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2026-11-24T15:58:17.572327Z",
                                "id": "CVE-2026-135237",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2026-11-24T15:58:36.720Z"
                }
            }
        ]
    }
}