{"apiVersion":"1.0","identifier":"CVE-2026-40507","description":"OpenEMR before 8.3.0 contains a reflected cross-site scripting vulnerability in the patient portal template import handler. The templateHtml GET parameter is reflected into the page response without sanitization. An attacker can craft a URL that executes arbitrary JavaScript in the browser of any authenticated user with Forms Administration permissions who visits the link, enabling session hijacking.","publishedAt":"2026-08-19T15:17:01","lastModifiedAt":"2026-08-25T03:16:54","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-40507","cvssScore":6.1,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","epssProbability":0.00243,"riskScore":0.62,"affectedProduct":"OpenEMR","affectedVersions":"<8.3.0","vulnerabilityType":"Web app","operatingSystems":[],"links":{"self":"https://www.redsauce.net/api/cves/CVE-2026-40507","webPages":{"es":"https://www.redsauce.net/es/cves/CVE-2026-40507","en":"https://www.redsauce.net/en/cves/CVE-2026-40507","fr":"https://www.redsauce.net/fr/cves/CVE-2026-40507","pt":"https://www.redsauce.net/pt/cves/CVE-2026-40507","de":"https://www.redsauce.net/de/cves/CVE-2026-40507","sk":"https://www.redsauce.net/sk/cves/CVE-2026-40507","el":"https://www.redsauce.net/el/cves/CVE-2026-40507"},"source":"https://nvd.nist.gov/vuln/detail/CVE-2026-40507"}}