{"id":"CVE-2026-33303","state":"PUBLISHED","title":"OpenEMR Vulnerable to Stored XSS via Unescaped portal_login_username in Credential Print View","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.","publishedAt":"2026-03-19T20:25:05.823Z","updatedAt":"2026-03-24T19:46:49.755Z","severity":{"score":5.4,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["openemr openemr"],"affected":[{"vendor":"openemr","product":"openemr","versions":[{"version":"< 8.0.0.2","status":"affected"}]}],"references":["https://github.com/openemr/openemr/security/advisories/GHSA-cp37-pmfx-5mhm","https://github.com/openemr/openemr/commit/c32139b5144b1c704015221520ad2f931e25f10d"],"weaknesses":["CWE-79"],"ingestedAt":"2026-10-29T20:11:40.391Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/33xxx/CVE-2026-33303.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-33303","state":"PUBLISHED","datePublished":"2026-03-19T20:25:05.823Z","dateUpdated":"2026-03-24T19:46:49.755Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-03-18T18:55:47.428Z"},"containers":{"cna":{"title":"OpenEMR Vulnerable to Stored XSS via Unescaped portal_login_username in Credential Print View","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"openemr","product":"openemr","versions":[{"version":"< 8.0.0.2","status":"affected"}]}],"references":[{"url":"https://github.com/openemr/openemr/security/advisories/GHSA-cp37-pmfx-5mhm","name":"https://github.com/openemr/openemr/security/advisories/GHSA-cp37-pmfx-5mhm","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/openemr/openemr/commit/c32139b5144b1c704015221520ad2f931e25f10d","name":"https://github.com/openemr/openemr/commit/c32139b5144b1c704015221520ad2f931e25f10d","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":5.4,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","lang":"en","description":"CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-03-19T20:25:05.823Z"},"source":{"advisory":"GHSA-cp37-pmfx-5mhm","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-03-24T19:46:26.187455Z","id":"CVE-2026-33303","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-03-24T19:46:49.755Z"}}]}}}