CVE-2025-67491OpenEMR has Stored XSS in ub04 helper
Updated under an hour ago ()
Does this affect you?
It affects openemr and 1 other product. Add what you run to find out whether that includes you.
EPSS puts the chance of exploitation in the next 30 days at 0.26%, higher than 16% of scored CVEs.
Do this next
Free account, 1 product
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.
- CVSS
- 8.5 HIGH (v4.0, CNA)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
- Weakness (CWE)
- CWE-79
- Known exploited
- Not in CISA's KEV catalog
- EPSS (exploitation in the next 30 days)
- 0.26% (percentile 16)
- Assigned by
- GitHub_M
- NVD analysis
- Analyzed
- Record last updated
- Feb 27, 2026
- First seen by InfoSec Signals
- Oct 9, 2026
Affected products
openemr openemr openemr:openemr (from the name) | from 5.0.0.5, < 7.0.4 | CNA record |
open-emr openemr open-emr:openemr | from 5.0.0.5 before 7.0.4 | NVD |
References
- https://github.com/openemr/openemr/security/advisories/GHSA-5fq8-jwvw-3m5wx-refsource-confirm, exploit, vendor-advisory
- https://github.com/openemr/openemr/commit/66a11c2d72ade16c4a908cd839d27cd7b261f97ax-refsource-misc, patch
- https://github.com/openemr/openemr/blob/a65b11d8b8e973b8758ce0dc3efb4b6ec0466d85/interface/billing/ub04_helpers.php#L52-L60x-refsource-misc, patch
The CVE record on cve.org NVD's entry
The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.