{
  "schema_version": "1.6.7",
  "id": "PRECVE-2026-CC83806C",
  "modified": "2026-11-17T19:16:08Z",
  "published": "2026-11-17T19:16:08Z",
  "summary": "Nightscout versions from 0.8.1 up to but not including 15.0.8 contain a stored cross-site scripting vulnerability via unsanitized treatment data written through the WebSocket connection.",
  "details": "An authenticated client with treatment write permissions can store unsanitized HTML in treatment fields such as 'notes' or 'enteredBy' via the WebSocket 'dbAdd' event. This data is later rendered as HTML in treatment tooltips, allowing attacker-controlled JavaScript to execute in the context of other users viewing the treatment, potentially escalating privileges.",
  "aliases": [
    "GHSA-5mrq-gpqw-q5v5"
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "GitHub",
        "name": "nightscout/nightscout",
        "purl": "pkg:github/nightscout/nightscout"
      },
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0.8.1"
            },
            {
              "fixed": "15.0.8"
            }
          ]
        }
      ],
      "database_specific": {
        "zerobom": {
          "evidence_quotes": [
            "Nightscout versions >= 0.8.1 and < 15.0.8 are affected.\nThe vulnerable behaviour results from the combination of the WebSocket\ntreatment write path accepting unsanitized treatment fields and the\nclient-side treatment tooltip rendering those fields as HTML.\nNightscout 15.0.8 contains the fix."
          ],
          "grounding_status": "verified",
          "registry_status": "skipped",
          "routing": "triage",
          "aliases": [
            "GHSA-5mrq-gpqw-q5v5"
          ]
        }
      }
    }
  ],
  "references": [
    {
      "type": "ARTICLE",
      "url": "https://seclists.org/fulldisclosure/2026/Nov/37"
    },
    {
      "type": "FIX",
      "url": "https://github.com/nightscout/cgm-remote-monitor/pull/8591"
    },
    {
      "type": "EVIDENCE",
      "url": "https://www.scstudios.tech/research/GHSA-5mrq-gpqw-q5v5"
    },
    {
      "type": "WEB",
      "url": "https://github.com/nightscout/cgm-remote-monitor/security/advisories/GHSA-5mrq-gpqw-q5v5"
    },
    {
      "type": "WEB",
      "url": "https://github.com/nightscout/cgm-remote-monitor/pull/8591"
    },
    {
      "type": "WEB",
      "url": "https://github.com/nightscout/cgm-remote-monitor/releases/tag/v15.0.8"
    },
    {
      "type": "WEB",
      "url": "https://www.scstudios.tech/research/GHSA-5mrq-gpqw-q5v5"
    },
    {
      "type": "WEB",
      "url": "https://cwe.mitre.org/data/definitions/79.html"
    }
  ],
  "database_specific": {
    "zerobom": {
      "source_tier": "unknown",
      "source_tier_weight": 0.55,
      "extraction_specificity": 1.0,
      "composite_score": 0.55,
      "routing": "triage",
      "severity": "CRITICAL",
      "cwe_ids": [
        "CWE-79"
      ],
      "evidence_quotes": [
        "Nightscout versions >= 0.8.1 and < 15.0.8 are affected.\nThe vulnerable behaviour results from the combination of the WebSocket\ntreatment write path accepting unsanitized treatment fields and the\nclient-side treatment tooltip rendering those fields as HTML.\nNightscout 15.0.8 contains the fix."
      ],
      "article_type": "original_disclosure",
      "source_name": "Full Disclosure",
      "prompt_version": "v1.5",
      "extractor_model": "gpt-4.1-mini"
    }
  }
}
