CVE-2025-31121
OpenEMR vulnerability analysis and mitigation

Overview

OpenEMR, a free and open source electronic health records and medical practice management application, was found to contain a cross-site scripting (XSS) vulnerability in its Patient Image feature prior to version 7.0.3.1. The vulnerability was discovered and disclosed on April 1, 2025, affecting all versions before 7.0.3.1 (NVD, GitHub Advisory).

Technical details

The vulnerability allows cross-site scripting attacks through the EXIF title in an image. The issue has been assigned CVE-2025-31121 and has received a CVSS v4.0 base score of 7.0 (High). The CVSS vector string is 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, indicating that while the vulnerability requires high privileges and active user interaction, it can potentially lead to high impacts on both confidentiality and integrity (GitHub Advisory).

Impact

When successfully exploited, the vulnerability can lead to high impacts on both confidentiality and integrity of the system. The cross-site scripting vulnerability could potentially allow attackers to steal sensitive information, including user credentials, and perform unauthorized actions in the context of the affected user's session (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in OpenEMR version 7.0.3.1. Users are advised to upgrade to this version or later to mitigate the risk. No alternative workarounds have been publicly documented (NVD).

Additional resources


SourceThis report was generated using AI

Related OpenEMR vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2024-22611CRITICAL9.8
  • OpenEMROpenEMR
  • cpe:2.3:a:open-emr:openemr
NoYesApr 03, 2025
CVE-2025-43860HIGH7.6
  • OpenEMROpenEMR
  • cpe:2.3:a:open-emr:openemr
NoYesMay 23, 2025
CVE-2025-32794HIGH7.6
  • OpenEMROpenEMR
  • cpe:2.3:a:open-emr:openemr
NoYesMay 23, 2025
CVE-2025-31121HIGH7
  • OpenEMROpenEMR
  • cpe:2.3:a:open-emr:openemr
NoYesApr 01, 2025
CVE-2025-32967MEDIUM5.4
  • OpenEMROpenEMR
  • cpe:2.3:a:open-emr:openemr
NoYesMay 23, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management