OpenEMR
OpenEMR has Stored XSS in CCDA Preview via Unsanitized linkHtml Attributes
OpenEMR is a free and open source electronic health records and medical practice management application. Prior to version 8.0.0.3, a stored cross-site scripting vulnerability in the CCDA document preview allows an attacker who can upload or send a CCDA document to execute arbitrary JavaScript in a clinician's browser session when the document is previewed. The XSL stylesheet sanitizes attributes for all other narrative elements but not for `linkHtml`, allowing `href="javascript:..."` and event handler attributes to pass through unchanged. Version 8.0.0.3 patches the issue.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 8.0.0.3
Fixed in 8.0.0.3
Mitigation
Upgrade openemr to 8.0.0.3 or later.
References
- Vendor advisory github.com/openemr/openemr/security/advisories…
- Patch github.com/openemr/openemr/commit/95e6078889b5…
- Release notes github.com/openemr/openemr/releases/tag/v8_0_0…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.