{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-40508","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","state":"PUBLISHED","assignerShortName":"VulnCheck","dateReserved":"2026-04-13T20:29:02.808Z","datePublished":"2026-08-19T14:51:01.748Z","dateUpdated":"2026-08-21T11:20:52.421Z"},"containers":{"cna":{"providerMetadata":{"orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","shortName":"VulnCheck","dateUpdated":"2026-08-21T11:20:52.421Z"},"title":"OpenEMR < 8.3.0 Stored XSS via Patient Portal Template Import Handler","descriptions":[{"lang":"en","value":"OpenEMR before 8.3.0 contains a stored cross-site scripting vulnerability in the patient portal template import handler that allows authenticated attackers with Forms Administration permissions to upload template files containing arbitrary HTML or JavaScript. Attackers can inject malicious scripts through the template upload functionality, which are stored without sanitization and execute in the browser of any other Forms Administration user who views the template in the HTML editor."}],"tags":["x_open-source"],"datePublic":"2026-08-18T00:00:00.000Z","problemTypes":[{"descriptions":[{"lang":"en","cweId":"CWE-79","description":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","type":"CWE"}]}],"affected":[{"defaultStatus":"affected","vendor":"openemr","product":"openemr","packageURL":"pkg:github/openemr/openemr","repo":"https://github.com/openemr/openemr","versions":[{"status":"affected","version":"0","versionType":"semver","lessThan":"8.3.0"}]}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"LOW","userInteraction":"PASSIVE","vulnConfidentialityImpact":"NONE","subConfidentialityImpact":"LOW","vulnIntegrityImpact":"NONE","subIntegrityImpact":"LOW","vulnAvailabilityImpact":"NONE","subAvailabilityImpact":"NONE","exploitMaturity":"NOT_DEFINED","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED","version":"4.0","baseSeverity":"MEDIUM","baseScore":5.1,"vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N"}},{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV3_1":{"attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"REQUIRED","scope":"CHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"NONE","version":"3.1","baseSeverity":"MEDIUM","baseScore":5.4,"vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"}}],"references":[{"url":"https://github.com/openemr/openemr/security/advisories/GHSA-5293-8q47-cf44","name":"GitHub Security Advisory (GHSA-5293-8q47-cf44)","tags":["vendor-advisory"]},{"url":"https://github.com/openemr/openemr/releases/tag/v8_3_0","name":"OpenEMR v8_3_0 Release Notes","tags":["release-notes"]},{"url":"https://github.com/openemr/openemr/commit/ba316dd1d8de1291102da3f20f64240729ff899e","name":"Patch Commit","tags":["patch"]},{"url":"https://www.vulncheck.com/advisories/openemr-stored-xss-via-patient-portal-template-import-handler","tags":["third-party-advisory"]}],"credits":[{"lang":"en","value":"Alex Williams from Pellera Technologies","type":"finder"},{"lang":"en","value":"VulnCheck","type":"finder"}],"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"vulncheck"}},"adp":[{"references":[{"url":"https://github.com/openemr/openemr/security/advisories/GHSA-5293-8q47-cf44","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-08-19T15:19:49.413560Z","id":"CVE-2026-40508","options":[{"Exploitation":"poc"},{"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-08-19T15:20:11.616Z"}}]}}