# CVE-2025-31121: OpenEMR allows XSS in Patient Image feature

- Severity: High 7.0 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:H/AT:N/PR:H/UI:A/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.98%, higher than 61% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-04-01T14:53:03.469Z
- Modified: 2026-06-17T09:09:53.587Z
- 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. Prior to 7.0.3.1, the Patient Image feature in OpenEMR is vulnerable to cross-site scripting attacks via the EXIF title in an image. This vulnerability is fixed in 7.0.3.1.

(As written by CVE List.)

## Affected

- openemr openemr: < 7.0.3.1
- open-emr openemr: before 7.0.3.1

## Every score

- GitHub_M: CVSS:4.0 7.0 High `CVSS:4.0/AV:N/AC:H/AT:N/PR:H/UI:A/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-2w94-qmj6-3qxx> (exploit, vendor-advisory)

## Sources

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

---

Page: https://cve.day/CVE-2025-31121 · Whole record: https://cve.day/CVE-2025-31121.json · Rebuilt by cve.day 2026-11-25T22:58:55.834Z
