SecurityContext

CVE-2025-31121: OpenEMR - Stored XSS

  • Cve: CVE-2025-31121
  • Name: OpenEMR - Stored XSS
  • 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.
  • Impact: Attackers can execute arbitrary scripts in the victim's browser, potentially leading to session hijacking or data theft.
  • Remediation: Update to version 7.0.3.1 or later.
  • Vulnerability type: stored_xss
  • Vulnerability impact: client_script_exec
  • Requirement type: user_interaction
  • Requirements: Victim needs to view malicious image
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.4
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
  • Epss score: 0.1735
  • Epss percentile: 0.97186
  • Assignee: [email protected]
  • Published at: 2025-04-01T15:16:07Z
  • Age in days: 602
  • Modified at: 2026-06-17T09:09:53Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 1
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-31121
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-79Improper Neutralization of Input During Web Page Generation

Public exploits

UrlSourceAdded date
https://github.com/openemr/openemr/security/advisories/GHSA-2w94-qmj6-3qxxnvd2025-04-01

References

UrlSourceTags
https://github.com/openemr/openemr/security/advisories/GHSA-2w94-qmj6-3qxxnvdExploit, Vendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
open-emr:openemr< 7.0.3.1nonvd/v1/products/open-emr/openemr

Projects

RepositoryLink kindsIndexedUrl
openemr/openemrsecurity_advisoryyes/v1/repositories/openemr/openemr

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2025-04-01
  • Remote: yes
  • Authentication required: yes
  • Exposed hosts: 2328
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports