Vulnerability record · CVE-2022-1179 · published 30 March 2022
CVE-2022-1179: OpenEMR low-privilege rule creation leads to stored XSS
Open Emr · Openemr
OpenEMR before 6.0.0.4 lets a non-privileged authenticated user create a new rule that stores script content, resulting in stored cross-site scripting. Because the payload persists in the application and is served to other users, it can execute in the browsers of staff who view the affected rule.
Description
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.
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Automated analysis
high priorityPublic exploit material and a very high EPSS score raise the likelihood of exploitation despite the medium CVSS base score.
What it is
OpenEMR before 6.0.0.4 lets a non-privileged authenticated user create a new rule that stores script content, resulting in stored cross-site scripting. Because the payload persists in the application and is served to other users, it can execute in the browsers of staff who view the affected rule.
Impact
An attacker with a low-privilege account can run script in the context of other users' sessions, potentially stealing session data or performing actions as the victim. The CVSS scope change indicates impact can extend beyond the vulnerable component.
Attack surface
Reached over the network through the rule creation functionality; the vector requires low privileges (PR:L) and user interaction (UI:R) from the victim who views the stored content. No unauthenticated access is implied.
Exploitation
Not listed in CISA KEV, but EPSS is 0.769 (99.5th percentile) and references include an Exploit tag, indicating public exploit material exists. No ransomware association is documented.
What to do
- Upgrade OpenEMR to 6.0.0.4 or later, applying commit 347ad614507183035d188ba14427bc162419778c.
- Restrict rule-creation permissions to only the roles that require them.
- Sanitize and encode user-supplied rule content on input and output.
- Deploy a content security policy that limits inline script execution.
- Review existing rules for injected script content and remove any found.
Detection
- Search OpenEMR rule records and logs for script tags or event-handler attributes in rule content.
- Monitor for low-privilege accounts creating rules, especially outside normal workflows.
- Alert on outbound requests or session anomalies originating from OpenEMR pages rendering rules.
- Review web logs for requests to rule endpoints with encoded script payloads.
This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://github.com/openemr/openemr/commit/347ad614507183035d188ba14427bc162419778c | PatchThird Party Advisory |
| https://huntr.dev/bounties/8025e31f-7dcf-4db9-ab07-06c1e055ab42 | ExploitPatchThird Party Advisory |
| https://github.com/openemr/openemr/commit/347ad614507183035d188ba14427bc162419778c | PatchThird Party Advisory |
| https://huntr.dev/bounties/8025e31f-7dcf-4db9-ab07-06c1e055ab42 | ExploitPatchThird Party Advisory |
Track CVE-2022-1179 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2022-1179), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.