# CVE-2025-67491: OpenEMR has Stored XSS in ub04 helper

- Severity: High 8.5 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 21% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-02-25T00:31:11.369Z
- Modified: 2026-06-17T09:57:43.990Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

OpenEMR is a free and open source electronic health records and medical practice management application. Versions 5.0.0.5 through 7.0.3.4 have a stored cross-site scripting vulnerability in the ub04 helper of the billing interface. The variable `$data` is passed in a click event handler enclosed in single quotes without proper sanitization. Thus, despite `json_encode` a malicious user can still inject a payload such as ` ac' ><img src=x onerror=alert(document.cookie)> ` to trigger the bug. This vulnerability allows low privileged users to embed malicious JS payloads on the server and perform stored XSS attack. This, in turn makes it possible for malicious users to steal the session cookies and perform unauthorized actions impersonating administrators. Version 7.0.4 patches the issue.

(As written by CVE List.)

## Affected

- openemr openemr: >= 5.0.0.5, < 7.0.4
- open-emr openemr: from 5.0.0.5 before 7.0.4

## Every score

- GitHub_M: CVSS:4.0 8.5 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/openemr/openemr/security/advisories/GHSA-5fq8-jwvw-3m5w> (exploit, vendor-advisory)
- <https://github.com/openemr/openemr/commit/66a11c2d72ade16c4a908cd839d27cd7b261f97a> (patch)
- <https://github.com/openemr/openemr/blob/a65b11d8b8e973b8758ce0dc3efb4b6ec0466d85/interface/billing/ub04_helpers.php#L52-L60> (patch)

## Sources

- CVE List: [CVE-2025-67491](https://www.cve.org/CVERecord?id=CVE-2025-67491), CVE Terms of Use, modified 2026-02-27
- NVD: [CVE-2025-67491](https://nvd.nist.gov/vuln/detail/CVE-2025-67491), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-67491 · Whole record: https://cve.day/CVE-2025-67491.json · Rebuilt by cve.day 2026-11-25T22:59:11.556Z
