# CVE-2026-134020: OpenEMR: Missing authorization on the portal OnsiteActivityView API discloses every patient's demographics and Social Security number

- **Severity:** MEDIUM 6.5
- **CVSS:** 6.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.69% (percentile 48, 2026-11-29)
- **CWE:** CWE-862
- **Published:** 2026-11-23T22:42:05.443Z
- **Modified:** 2026-11-28T04:17:01.650Z

## Who should check

- Anyone running openemr \< 8.5.0

## Description

OpenEMR is a free and open source electronic health records and medical practice management application. Prior to 8.5.0, the staff-facing portal endpoints GET api/onsiteactivityviews and GET api/onsiteactivityview/{id}, mapped to OnsiteActivityView.Query and OnsiteActivityView.Read with p\_acl = p\_none in portal/patient/\_app\_config.php, are handled without an authorization check for an authenticated staff session whose bootstrap\_pid is empty. portal/patient/\_machine\_config.php admits that authenticated staff session, and portal/patient/fwk/libs/verysimple/Phreeze/GenericRouter.php applies the route ACL only when bootstrap\_pid is nonempty, so the staff request bypasses the p\_none check. OnsiteActivityViewController::Query() returns records without patient scoping, and OnsiteActivityViewController::Read() loads a record by identifier without checking ACL or ownership; OnsiteActivityViewReporter::GetCustomQuery() joins portal activity to patient demographics and includes names, dates of birth, addresses, and Social Security numbers. Any authenticated staff account, including one without the patients/demo permission, can therefore read sensitive demographics for patients represented by an existing onsite\_portal\_activity row; at least one such row must exist for the endpoint to return patient data. This issue is fixed in version 8.5.0.

## Affected and fixed versions

- openemr: \< 8.5.0 (cvelist)

## Technologies

OpenEMR

## Mitigation

- Upgrade openemr to 8.5.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-134020. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-134020.md
Affected: openemr < 8.5.0
Fixed in: openemr 8.5.0

Steps:
1. Search this machine and project for openemr: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-134020 being exploited?

There is no confirmed exploitation: CVE-2026-134020 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.69% chance of exploitation in the next 30 days (as of 2026-11-29).

### How serious is CVE-2026-134020?

Medium: CVSS 6.5 (v3.1, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2026-134020?

openemr \< 8.5.0.

### Is there a fix for CVE-2026-134020?

Yes. Fixed in openemr 8.5.0. Upgrade openemr to 8.5.0 or later.

### How do I check if I'm affected by CVE-2026-134020?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/openemr/openemr/security/advisories/GHSA-9f97-gqgj-wr6g>
- patch: <https://github.com/openemr/openemr/pull/13965>
- patch: <https://github.com/openemr/openemr/commit/0d9fc442492ca0a37f39c27a4e9b4fb8fbbd74f7>
- other: <https://github.com/openemr/openemr/releases/tag/v8_5_0>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-134020>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-134020> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-134020>
