{
  "id": "CVE-2026-126451",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-126451",
  "published_at": "2026-11-13T09:35:12.702Z",
  "title": "OpenEMR before 8.5.0 Stored XSS via Document Template Rendering",
  "vendor": "openemr",
  "product": "openemr",
  "cvss": {
    "score": 8.5,
    "source": "cna",
    "vector": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "OpenEMR before 8.5.0 contains a stored cross-site scripting vulnerability that allows portal patients to run JavaScript in staff sessions by injecting javascript: URLs into document template_data. Attackers can submit an encounterForm value rendered unsanitized into an iframe src by DocumentTemplateRender, letting the script read PHI and CSRF tokens and call staff or admin endpoints.",
  "cwe": "CWE-79",
  "cpes": [
    "cpe:2.3:a:open-emr:openemr:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.5,
    "nvd": 5.4
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "openemr",
        "product": "openemr",
        "ranges": [
          "\u003c 8.5.0"
        ],
        "fixed_in": [
          "8.5.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade openemr to 8.5.0 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/openemr/openemr/security/advisories/GHSA-hfpq-j3fj-cpmv"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
