CVE-2022-1179
Published: 30 March 2022
Summary
CVE-2022-1179 is a medium-severity Cross-site Scripting (CWE-79) vulnerability in Open-Emr Openemr. Its CVSS base score is 5.4 (Medium).
Operationally, ranked in the top 3.2% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.
Deeper analysis
CVE-2022-1179 is a stored cross-site scripting vulnerability (CWE-79) affecting the OpenEMR electronic health records platform in versions prior to 6.0.0.4. The flaw resides in the rule-creation workflow, where insufficient input sanitization allows a non-privileged user to persist malicious JavaScript that executes in the context of other users' sessions.
An authenticated low-privileged attacker can create a specially crafted rule containing script payloads. When another user later views or interacts with the rule, the script runs with the victim's privileges, enabling limited data exfiltration or unauthorized actions within the application due to the changed scope noted in the CVSS vector.
The referenced GitHub commit (347ad614507183035d188ba14427bc162419778c) and associated huntr.dev report document the remediation, which consists of applying input validation and output encoding fixes; administrators should upgrade to OpenEMR 6.0.0.4 or later to address the issue. The EPSS score has remained flat at its peak value of 0.3056 with no material post-disclosure increase.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2022-24519
Vulnerability details
Non-Privilege User Can Created New Rule and Lead to Stored Cross Site Scripting in GitHub repository openemr/openemr prior to 6.0.0.4.
- CWE(s)
Related Threats
No named actor attribution yet. ATT&CK technique mapping in progress for this CVE.
Affected Assets
Mitigating Controls
Likely Mitigating Controls AI
Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.
Penetration testing submits XSS payloads to web applications, detecting cross-site scripting flaws for subsequent remediation.
Validates web inputs to reject script-related content that could produce XSS.
Output validation against expected content can reject or sanitize script content in generated web pages, reducing XSS exploitability.