Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

CVE-2025-67491

OpenEMR has Stored XSS in ub04 helper
Back to all
CVE

CVE-2025-67491

OpenEMR has Stored XSS in ub04 helper

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.

Package Versions Affected

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
8.5
-
4.0
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
C
H
U
0
-
C
H
U
-

Related Resources

No items found.

References

https://github.com/openemr/openemr/blob/a65b11d8b8e973b8758ce0dc3efb4b6ec0466d85/interface/billing/ub04_helpers.php#L52-L60, https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/67xxx/CVE-2025-67491.json, https://github.com/openemr/openemr/security/advisories/GHSA-5fq8-jwvw-3m5w, https://nvd.nist.gov/vuln/detail/CVE-2025-67491, https://github.com/openemr/openemr/commit/66a11c2d72ade16c4a908cd839d27cd7b261f97a

Severity

0

CVSS Score
0
10

Basic Information

Ecosystem
Base CVSS
0
EPSS Probability
0.00038%
EPSS Percentile
0.11196%
Introduced Version
9649578b6cd614b53b24932a1010b994b2dde547
Fix Available
466c4a32aa633b98a382c35f45fd902688ed83e7

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading