{"id":"CVE-2026-40508","revision":null,"records":[{"revision":"5c0d248735be437397e0bf775676eebc","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-40508","aliases":[],"title":"OpenEMR < 8.3.0 Stored XSS via Patient Portal Template Import Handler","description":"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.","state":0,"publishedAt":"2026-08-19T14:51:01.748+00:00","modifiedAt":"2026-10-01T15:19:58.481+00:00","affected":[{"ecosystem":"Vendor product","name":"openemr","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"defaultStatus\": \"affected\",\n                    \"vendor\": \"openemr\",\n                    \"product\": \"openemr\",\n                    \"packageURL\": \"pkg:github/openemr/openemr\",\n                    \"repo\": \"https://github.com/openemr/openemr\",\n                    \"versions\": [\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"0\",\n                            \"versionType\": \"semver\",\n                            \"lessThan\": \"8.3.0\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 4.0","vector":"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","score":5.1,"severity":"MEDIUM"},{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"severity":"MEDIUM"}],"references":["https://github.com/openemr/openemr/security/advisories/GHSA-5293-8q47-cf44","https://github.com/openemr/openemr/releases/tag/v8_3_0","https://github.com/openemr/openemr/commit/ba316dd1d8de1291102da3f20f64240729ff899e","https://www.vulncheck.com/advisories/openemr-stored-xss-via-patient-portal-template-import-handler"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-40508","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-40508","identifiers":["CVE-2026-40508"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-11T23:56:50.3729989+00:00","complete":true,"records":1779,"lastAttemptAt":"2026-11-11T23:56:50.3729989+00:00","lastSuccessAt":"2026-11-11T23:56:50.5150513+00:00","error":null,"lastVerifiedAt":"2026-11-11T23:56:50.5150525+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-de3b77103708811b6494d2ff7c979037d73ae579742cd1649a5c765137ae5083-a7d616e0000b290cf9176297502f609a90a412eaf1f2e466d5ce827959c3ef9e","complete":true,"records":424533,"lastAttemptAt":"2026-11-11T23:56:49.2224871+00:00","lastSuccessAt":"2026-11-11T23:56:49.0445783+00:00","error":null,"lastVerifiedAt":"2026-11-11T23:56:49.2224871+00:00","snapshotPublishedAt":"2026-11-11T23:22:46+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-25f2296b3ceb4f10b0c7362d39c9dc06","complete":false,"records":13760,"lastAttemptAt":"2026-11-12T00:07:08.9822533+00:00","lastSuccessAt":"2026-11-12T00:07:07.85+00:00","error":"488 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-12T00:07:07.85+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13217,"expectedIdentifiers":13813,"failedIdentifiers":488},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-11T23:56:50.3729989+00:00","complete":true,"records":1097,"lastAttemptAt":"2026-11-11T23:56:50.3729989+00:00","lastSuccessAt":"2026-11-11T23:56:50.5157674+00:00","error":null,"lastVerifiedAt":"2026-11-11T23:56:50.5157675+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-fbae94a9a1fe4b38aa0770b870050628","complete":true,"records":13760,"lastAttemptAt":"2026-11-11T23:57:15.6946759+00:00","lastSuccessAt":"2026-11-11T23:57:15.691+00:00","error":null,"lastVerifiedAt":"2026-11-11T23:57:15.691+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13813,"expectedIdentifiers":13813,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-3562b6c78fd1bd0f0b55daf66a0926ae24f65e462df7f6d928caad458fc696bf","complete":true,"records":9947,"lastAttemptAt":"2026-11-11T23:56:49.9662241+00:00","lastSuccessAt":"2026-11-11T04:27:43.6877707+00:00","error":null,"lastVerifiedAt":"2026-11-11T23:56:49.9662241+00:00","snapshotPublishedAt":"2026-11-11T03:32:46+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-456002455e0ab94bb92c95476d4e6d175c104cd594749982afd96c893728ecbc","complete":true,"records":2010,"lastAttemptAt":"2026-11-11T23:56:49.3719631+00:00","lastSuccessAt":"2026-11-11T02:36:58.1276999+00:00","error":null,"lastVerifiedAt":"2026-11-11T23:56:49.3719631+00:00","snapshotPublishedAt":"2026-11-11T01:17:51+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-baa8362b4daf9e5f39d5563775a55935e7b442c0735d33274a921579ce4a0d66","complete":true,"records":3093,"lastAttemptAt":"2026-11-11T23:56:50.3381398+00:00","lastSuccessAt":"2026-11-11T13:00:02.5446881+00:00","error":null,"lastVerifiedAt":"2026-11-11T23:56:50.3381398+00:00","snapshotPublishedAt":"2026-11-11T12:47:47+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-685fe7fb2b690656c910a1ea42a9d294e8353311ac8ecfa691a9b0ff1b328804","complete":true,"records":231695,"lastAttemptAt":"2026-11-11T23:56:49.8272134+00:00","lastSuccessAt":"2026-11-11T21:58:47.7265713+00:00","error":null,"lastVerifiedAt":"2026-11-11T23:56:49.8272134+00:00","snapshotPublishedAt":"2026-11-11T21:48:35+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}