Back to CVE records
Medium 5.4HealthcarePublished Aug 19, 2026

CVE-2026-40508OpenEMR < 8.3.0 Stored XSS via Patient Portal Template Import Handler

Updated under an hour ago ()

Does this affect you?

It affects openemr. Add what you run to find out whether that includes you.

EPSS puts the chance of exploitation in the next 30 days at 0.30%, higher than 21% of scored CVEs.

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
5.4 MEDIUM (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Weakness (CWE)
CWE-79
Known exploited
Not in CISA's KEV catalog
EPSS (exploitation in the next 30 days)
0.30% (percentile 21)
Assigned by
VulnCheck
NVD analysis
Deferred
Record last updated
Oct 1, 2026
First seen by InfoSec Signals
Oct 9, 2026

Affected products

Affected products
openemr openemr
openemr:openemr (from the name)
before 8.3.0
CNA record

References

  • vendor-advisory
  • release-notes
  • patch
  • third-party-advisory

The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.

Your cookie choices
We use essential cookies to run this site, and, only with your consent, an advertising cookie from Google to measure whether our ads lead to sign-ups and subscriptions. See our for details.