GCVE-1-2026-20430 (CVE-2026-135237)

Vulnerability from gna-1 – Published: 2026-11-23 15:37 – Updated: 2026-11-23 15:39
VLAI
Title
MISP DOM-based Cross-Site Scripting via Incomplete Quote Escaping in Event Report Element Templates
Summary
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. Preconditions: - The attacker must be an authenticated user with permission to create or edit event report elements (e.g., a report author). - A victim must open or view the crafted report in a browser. Security impact: - Execution of arbitrary JavaScript in the context of the victim's MISP session. - Potential theft of session tokens, sensitive data, or unauthorized actions performed on behalf of the victim. Affected versions: MISP prior to 2.5.52.
SSVC
Exploitation: none Automatable: yes Technical Impact: partial
Supplier · CNA (v2.0.3)
Decision recorded 2026-11-23 09:38 UTC
CWE
  • CWE-79 - Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
  • CWE-116 - Improper Encoding or Escaping of Output
Assigner
CIRCL GNA GNA-1
GNA scorecard A 93/100 over 349 records in the last 180 days details
References
Impacted products
Vendor Product Version CPE status
MISP MISP Affected: 0 , < 2.5.52 (semver)
    cpe:2.3:a:misp:misp:*:*:*:*:*:*:*:*
Create a notification for this product.
GCVE extensions
bcp-05-x-01
AI-assisted vulnerability information annotation
GCVE-BCP-05-X-01
Whole record AI-generated Human-reviewed GNA-1

Draft vulnerability metadata was generated from a git-format patch using an Ollama-hosted language model. Human validation is required before publication.

ai-computer-assisted:llm-generatedai-computer-assisted:classification
Model Source Identifier
qwen3.8:27b ollama qwen3.8:27b
bcp-05-x-02
Patch-to-vulnerability generation provenance
GCVE-BCP-05-X-02
Generator
patch2vuln.py on 2026-11-23 09:38
Model
qwen3.8:27b
Input
https://github.com/MISP/MISP/commit/386942fd34857ba80cfa518471c3230ff21ac7e3 616c9466d550…
Confidence
high
Commit Subject Patch SHA-256
386942fd3485 fix: [security] Escape quotes in event report element 616c9466d550…
Fix summary

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.

Patch summary

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.

CVSS rationale

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.

Weakness rationale
  • CWE-79 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.
  • CWE-116 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.
Attack pattern rationale
  • CAPEC-126 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.
  • CAPEC-1 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.
Assumptions to verify
  • 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.
Model comparison

Selected qwen3.8:27b by deterministic-consensus-v1
The selected result is closest to model consensus; this heuristic does not establish factual correctness and human review remains required.

Model Score Agreement Confidence Assumptions
qwen3.8:27b 8 11 high 5
bcp-05-x-03
Vulnerability handling and disclosure timeline
GCVE-BCP-05-X-03
  1. 2026-11-15 23:16 UTC Fix developed Corrective change authored (386942fd34857ba80cfa518471c3230ff21ac7e3): fix: [security] Escape quotes in event report element https://github.com/MISP/MISP/commit/386942fd34857ba80cfa518471c3230ff21ac7e3
  2. 2026-11-23 09:38 UTC Fix available Patch retrieved from the supplied URL; retrieval time is used as the default availability time. https://github.com/MISP/MISP/commit/386942fd34857ba80cfa518471c3230ff21ac7e3

{
  "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\u0027s 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\u0027s 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 (\u0027Cross-site Scripting\u0027)",
              "lang": "en",
              "type": "CWE"
            }
          ]
        },
        {
          "descriptions": [
            {
              "cweId": "CWE-116",
              "description": "CWE-116 Improper Encoding or Escaping of Output",
              "lang": "en",
              "type": "CWE"
            }
          ]
        }
      ],
      "providerMetadata": {
        "orgId": "00000000-0000-4000-8000-000000000000"
      },
      "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 \u0026quot; and single-quote characters to \u0026#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\u0027s browser. SC:H - attacker can read cookies, tokens, and sensitive data in the victim\u0027s 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 \u0026quot; and single-quote characters to \u0026#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, \u0027\u0026quot;\u0027).replace(/\u0027/g, \u0027\u0026#039;\u0027) 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 \u0026, \u003c, \u003e 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"
        }
      ]
    }
  },
  "cveMetadata": {
    "assignerOrgId": "00000000-0000-4000-8000-000000000000",
    "cveId": "CVE-2026-135237",
    "datePublished": "2026-11-23T15:37:35.263182Z",
    "dateReserved": "2026-11-23T15:39:28.151Z",
    "dateUpdated": "2026-11-23T15:39:29.787900Z",
    "state": "PUBLISHED",
    "vulnId": "GCVE-1-2026-20430"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2"
}


Solutions

CNA
The sanitization function now additionally escapes double-quote characters to " 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.

Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.