# CVE-2026-33303: OpenEMR Vulnerable to Stored XSS via Unescaped portal_login_username in Credential Print View

- Severity: Medium 5.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 20% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-19T20:25:05.823Z
- Modified: 2026-06-17T10:37:17.200Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

OpenEMR is a free and open source electronic health records and medical practice management application. Versions prior to 8.0.0.2 are vulnerable to stored cross-site scripting (XSS) via unescaped `portal_login_username` in the portal credential print view. A patient portal user can set their login username to an XSS payload, which then executes in a clinic staff member's browser when they open the "Create Portal Login" page for that patient. This crosses from the patient session context into the staff/admin session context. Version 8.0.0.2 fixes the issue.

(As written by CVE List.)

## Affected

- openemr openemr: < 8.0.0.2
- open-emr openemr: before 8.0.0.2

## References

- <https://github.com/openemr/openemr/security/advisories/GHSA-cp37-pmfx-5mhm> (exploit, vendor-advisory)
- <https://github.com/openemr/openemr/commit/c32139b5144b1c704015221520ad2f931e25f10d> (patch)

## Sources

- CVE List: [CVE-2026-33303](https://www.cve.org/CVERecord?id=CVE-2026-33303), CVE Terms of Use, modified 2026-03-24
- NVD: [CVE-2026-33303](https://nvd.nist.gov/vuln/detail/CVE-2026-33303), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-33303 · Whole record: https://cve.day/CVE-2026-33303.json · Rebuilt by cve.day 2026-11-25T22:59:16.192Z
