Vulnerability record · CVE-2022-1181 · published 30 March 2022
CVE-2022-1181: OpenEMR stored cross-site scripting before 6.0.0.2
Open Emr · Openemr
OpenEMR before 6.0.0.2 contains a stored cross-site scripting flaw (CWE-79) in which attacker-supplied input is persisted and later rendered to other users. Because the payload is stored, it can execute in the browsers of users who view the affected content, which matters for a clinical application handling sensitive data. The record does not name the specific vulnerable component or parameter.
Description
Stored Cross Site Scripting in GitHub repository openemr/openemr prior to 6.0.0.2.
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Automated analysis
medium priorityStored XSS in a clinical application with a high EPSS score and public exploit reference, but it requires authentication and user interaction and is not in KEV.
What it is
OpenEMR before 6.0.0.2 contains a stored cross-site scripting flaw (CWE-79) in which attacker-supplied input is persisted and later rendered to other users. Because the payload is stored, it can execute in the browsers of users who view the affected content, which matters for a clinical application handling sensitive data. The record does not name the specific vulnerable component or parameter.
Impact
An attacker can run script in the context of a victim's session, potentially stealing session data or performing actions as that user. The CVSS scope change (S:C) indicates impact can extend beyond the vulnerable component.
Attack surface
Reached over the network (AV:N) with low attack complexity (AC:L); the attacker needs low privileges (PR:L) and a victim must interact with the crafted content (UI:R). No unauthenticated path is described in the record.
Exploitation
Not listed in CISA KEV. EPSS is high (0.51472, 98.9th percentile), and references carry an Exploit tag, but the record does not state whether exploitation has been observed in the wild.
What to do
- Upgrade OpenEMR to 6.0.0.2 or later, applying the referenced patch commit.
- If immediate upgrade is not possible, restrict access to the affected functionality to trusted authenticated users.
- Apply output encoding and input sanitization for stored user-supplied content.
- Deploy a content security policy to limit script execution in the OpenEMR web interface.
Detection
- Review OpenEMR logs for stored content containing script tags or event handler attributes.
- Monitor for anomalous authenticated sessions or requests originating from stored records.
- Search web server and application logs for injection attempts against OpenEMR input fields.
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/2835cc397610fc28037302dad948c38fda032022 | PatchThird Party Advisory |
| https://huntr.dev/bounties/2534e0fb-f503-4a4b-aed1-ec448c98bf60 | ExploitPatchThird Party Advisory |
| https://github.com/openemr/openemr/commit/2835cc397610fc28037302dad948c38fda032022 | PatchThird Party Advisory |
| https://huntr.dev/bounties/2534e0fb-f503-4a4b-aed1-ec448c98bf60 | ExploitPatchThird Party Advisory |
Track CVE-2022-1181 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-1181), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.