CVE-2026-40508

MEDIUMPre-NVD 5.45.4—
EchelonGraph scoreMEDIUM confidence

Score 5.4 from GitHub Security Advisory published 2026-08-19. The CNA's CVSS baseline 5.4; sources differ by 0.0.

Triggered by: GitHub Security Advisory CVSS
Sources: cna:vulncheck, epss, ghsa
Trending — 3 sources updated this weekElevated
5.4EG
EchelonGraph verdictMonitorLow exploitation likelihood right now — keep watching.
  • Lower severity and no public exploit yet
CISA-KEV: Not listedEPSS PROB: 0.3%CVSS: 5.4Exploit: Elevated riskExposed services: Not assessed

A fix is available — apply it.

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.

CVSS v3
5.4
EG Score
5.4MEDIUMmedium confidence
EG Risk
40
EG Risk 40/100CISA SSVC

EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).

How it’s computed
Severity54% × 45%
Exploitation40% × 40%
Automatability0% × 15%
CISA SSVC: Track at low or medium mission impact; Track* at high (mission-essential systems).
Action: A fix is available. Apply it within your standard update timelines.
EPSS PROB
0.3%
EPSS %ILE
20th
KEV
Not listed

CISA SSVCTrack at low or medium mission impact; Track* at high (mission-essential systems).

A fix is available. Apply it within your standard update timelines.

Exploitation public PoC (CISA Vulnrichment) · Automatable no (CISA Vulnrichment) · Technical impact partial (CISA Vulnrichment). Mission impact is CISA's Mission & Well-being decision point, and only you can judge it: high means the affected system is essential to your organisation's mission, or its compromise could cause irreversible harm to people. CISA's decision table

Published

August 19, 2026

Last Modified

October 1, 2026

Advisory Details (4)

Auto-updated Aug 19, 2026
🔬 Proof of concept available. Patch available. Sources: github, github_release, github_commit.
generic

OpenEMR < 8.3.0 Stored XSS via Patient Portal Template Import Handler | Advisories | VulnCheck

https://www.vulncheck.com/advisories/openemr-stored-xss-via-patient-portal-template-import-handler
github_commit

commit ba316dd1d8de (openemr/openemr)

Fix landed in openemr/openemr commit ba316dd1d8de — awaiting tagged release

https://github.com/openemr/openemr/commit/ba316dd1d8de1291102da3f20f64240729ff899e
github_release Patch Available

OpenEMR 8.3.0

Patch available: openemr/openemr v8_3_0

https://github.com/openemr/openemr/releases/tag/v8_3_0
github Patch Available🟡 PoC Available

/portal/import_template.php template_files[] Stored Cross-Site Scripting · Advisory · openemr/openemr · GitHub

https://github.com/openemr/openemr/security/advisories/GHSA-5293-8q47-cf44

Vendor Advisories for CVE-2026-40508(1)

These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.

Weakness Classification(1)

MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.

Data Freshness Timeline

(refreshed 17× in last 7d / 79× in last 30d)

Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.

Showing the most recent 100 of 126 total refreshes for this CVE.

  1. 2026-10-04 23:22 UTCEPSS rescore
  2. 2026-10-04 15:43 UTCGHSA enrichment
  3. 2026-10-03 16:57 UTCEG score recompute
  4. 2026-10-03 16:57 UTCGHSA enrichment
  5. 2026-10-03 14:25 UTCEPSS rescore
  6. 2026-10-02 14:54 UTCEG score recompute
  7. 2026-10-02 14:54 UTCGHSA enrichment
  8. 2026-10-01 19:50 UTCEPSS rescore
  9. 2026-10-01 15:29 UTCEG score recompute
  10. 2026-10-01 15:29 UTCGHSA enrichment
  11. 2026-10-01 07:29 UTCEG score recompute
  12. 2026-10-01 07:29 UTCGHSA enrichment
  13. 2026-09-30 15:03 UTCEPSS rescore
  14. 2026-09-30 08:49 UTCEG score recompute
  15. 2026-09-30 08:49 UTCGHSA enrichment
  16. 2026-09-29 04:22 UTCEG score recompute
  17. 2026-09-29 04:22 UTCGHSA enrichment
  18. 2026-09-28 05:41 UTCEG score recompute
  19. 2026-09-28 05:41 UTCGHSA enrichment
  20. 2026-09-27 13:48 UTCEPSS rescore
  21. 2026-09-27 07:01 UTCEG score recompute
  22. 2026-09-27 07:01 UTCGHSA enrichment
  23. 2026-09-26 15:58 UTCEPSS rescore
  24. 2026-09-25 02:39 UTCEG score recompute
  25. 2026-09-25 02:39 UTCGHSA enrichment
Show 75 more
  1. 2026-09-24 03:58 UTCEG score recompute
  2. 2026-09-24 03:58 UTCGHSA enrichment
  3. 2026-09-23 17:53 UTCEPSS rescore
  4. 2026-09-23 05:15 UTCEG score recompute
  5. 2026-09-23 05:15 UTCGHSA enrichment
  6. 2026-09-22 06:34 UTCEG score recompute
  7. 2026-09-22 06:34 UTCGHSA enrichment
  8. 2026-09-21 07:54 UTCEG score recompute
  9. 2026-09-21 07:54 UTCGHSA enrichment
  10. 2026-09-20 20:15 UTCEPSS rescore
  11. 2026-09-20 09:09 UTCEG score recompute
  12. 2026-09-20 09:09 UTCGHSA enrichment
  13. 2026-09-19 07:43 UTCEG score recompute
  14. 2026-09-19 07:43 UTCGHSA enrichment
  15. 2026-09-18 19:28 UTCEPSS rescore
  16. 2026-09-18 19:28 UTCEPSS rescore
  17. 2026-09-18 09:02 UTCEG score recompute
  18. 2026-09-18 09:02 UTCGHSA enrichment
  19. 2026-09-17 19:30 UTCEPSS rescore
  20. 2026-09-17 10:21 UTCEG score recompute
  21. 2026-09-17 10:21 UTCGHSA enrichment
  22. 2026-09-16 14:08 UTCEPSS rescore
  23. 2026-09-16 11:41 UTCEG score recompute
  24. 2026-09-16 11:40 UTCGHSA enrichment
  25. 2026-09-16 05:15 UTCEPSS rescore
  26. 2026-09-15 13:00 UTCEG score recompute
  27. 2026-09-15 13:00 UTCGHSA enrichment
  28. 2026-09-15 03:11 UTCEPSS rescore
  29. 2026-09-14 14:19 UTCEG score recompute
  30. 2026-09-14 14:19 UTCGHSA enrichment
  31. 2026-09-13 16:47 UTCEPSS rescore
  32. 2026-09-13 15:39 UTCGHSA enrichment
  33. 2026-09-12 16:53 UTCEG score recompute
  34. 2026-09-12 16:53 UTCGHSA enrichment
  35. 2026-09-12 15:01 UTCEPSS rescore
  36. 2026-09-11 18:12 UTCEG score recompute
  37. 2026-09-11 18:12 UTCGHSA enrichment
  38. 2026-09-11 14:53 UTCEPSS rescore
  39. 2026-09-11 09:37 UTCEPSS rescore
  40. 2026-09-10 19:31 UTCEG score recompute
  41. 2026-09-10 19:31 UTCGHSA enrichment
  42. 2026-09-10 09:34 UTCEPSS rescore
  43. 2026-09-09 20:50 UTCEG score recompute
  44. 2026-09-09 20:50 UTCGHSA enrichment
  45. 2026-09-09 02:38 UTCEG score recompute
  46. 2026-09-09 02:38 UTCGHSA enrichment
  47. 2026-09-08 22:00 UTCEPSS rescore
  48. 2026-09-07 16:01 UTCEPSS rescore
  49. 2026-09-07 15:42 UTCGHSA enrichment
  50. 2026-09-06 16:23 UTCEG score recompute
  51. 2026-09-06 16:23 UTCGHSA enrichment
  52. 2026-09-06 13:47 UTCEPSS rescore
  53. 2026-09-05 17:43 UTCEG score recompute
  54. 2026-09-05 17:43 UTCGHSA enrichment
  55. 2026-09-04 18:52 UTCEG score recompute
  56. 2026-09-04 18:52 UTCGHSA enrichment
  57. 2026-09-04 05:06 UTCEPSS rescore
  58. 2026-09-03 20:01 UTCGHSA enrichment
  59. 2026-09-02 21:19 UTCEG score recompute
  60. 2026-09-02 21:19 UTCGHSA enrichment
  61. 2026-09-02 14:12 UTCEPSS rescore
  62. 2026-09-01 20:38 UTCEG score recompute
  63. 2026-09-01 20:38 UTCGHSA enrichment
  64. 2026-09-01 13:53 UTCEPSS rescore
  65. 2026-09-01 04:39 UTCEPSS rescore
  66. 2026-08-31 21:58 UTCGHSA enrichment
  67. 2026-08-30 23:18 UTCEG score recompute
  68. 2026-08-30 23:18 UTCGHSA enrichment
  69. 2026-08-30 19:17 UTCEPSS rescore
  70. 2026-08-30 01:22 UTCEPSS rescore
  71. 2026-08-30 00:37 UTCGHSA enrichment
  72. 2026-08-29 01:56 UTCEG score recompute
  73. 2026-08-29 01:56 UTCGHSA enrichment
  74. 2026-08-28 21:41 UTCEPSS rescore
  75. 2026-08-28 02:15 UTCEG score recompute

Frequently asked(5)

What is CVE-2026-40508?
CVE-2026-40508 is a medium vulnerability published on August 19, 2026. 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…
When was CVE-2026-40508 disclosed?
CVE-2026-40508 was first published on August 19, 2026, with the most recent update on October 1, 2026. EchelonGraph re-ingests CVE updates from NVD on a 2-hour cycle, so this page reflects the latest published state.
Is CVE-2026-40508 actively exploited?
CVE-2026-40508 is not currently on CISA's Known Exploited Vulnerabilities catalog. FIRST EPSS estimates a 0.3% probability of exploitation in the next 30 days (20th percentile of EPSS-scored CVEs).
What is the CVSS score of CVE-2026-40508?
CVE-2026-40508 has a CVSS base score of 5.4 (the CNA's own assessment, by vulncheck; NVD's own analysis pending).
How do I remediate CVE-2026-40508?
A fix for CVE-2026-40508 is available: update to the fixed version the vendor names in its advisory. The vendor advisories EchelonGraph has for CVE-2026-40508 are linked in the Vendor Advisories panel on this page.

Dependency Blast Radius

Explore the affected products and dependency analysis for CVE-2026-40508

Explore →

Is Your Infrastructure Affected by CVE-2026-40508?

EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.