OpenEMR
OpenEMR: Stored XSS via `text()` Misuse in Double-Quoted HTML Attribute
OpenEMR is a free and open source electronic health records and medical practice management application. Prior to 8.3.0, interface/forms/transfer_summary/new.php and interface/forms/functional_cognitive_status/new.php render stored transfer_to, code, and codetext values with text(), which uses ENT_NOQUOTES, inside double-quoted HTML value attributes. An authenticated clinical user can store a value containing a double quote that escapes the attribute and injects event-handler markup when another clinician opens the form. Successful exploitation can expose session data and protected health information or permit patient-record actions in the victim's session. This issue is fixed in version 8.3.0.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 8.3.0
Fixed in 8.3.0
Mitigation
Upgrade openemr to 8.3.0 or later.
References
- Vendor advisory github.com/openemr/openemr/security/advisories…
- Patch github.com/openemr/openemr/pull/13192
- Patch github.com/openemr/openemr/commit/d301444f6c4d…
1 more
- Release notes github.com/openemr/openemr/releases/tag/v8_3_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.