---
id: "CVE-2026-126429"
page: "https://infrastack.ai/live/CVE-2026-126429"
kind: "vulnerability"
aliases: ["CVE-2026-126429"]
title: "OpenEMR: authenticated users can read server files through PDF generation"
severity: "high"
cvss: 7.1
epss: null
exploited: false
status: "open"
category: "runtime"
products: []
ecosystems: []
tags: ["healthcare", "openemr", "php", "runtime", "self-hosted"]
not_affected_if: ["openemr-8.5.0-or-later"]
published_at: "2026-11-13T10:17:49+00:00"
first_seen_at: "2026-11-13T10:47:21+00:00"
updated_at: "2026-11-13T10:53:11+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-126429", "first_seen_at": "2026-11-13T10:47:21+00:00"}]
exploit_sources: []
---

# OpenEMR: authenticated users can read server files through PDF generation

Link for people: https://infrastack.ai/live/CVE-2026-126429 (this .md is for agents)

OpenEMR passes user-supplied HTML from the doc_lib.php content parameter to the mPDF library, which resolves local files and nested SVG resources. An authenticated patient or core user can craft CSS imports or php://filter SVG references to read arbitrary server files, including credentials and OAuth keys.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the OpenEMR version in the installed application; versions before `8.5.0` are listed as affected.

## Fix

- OpenEMR: move to `8.5.0` or later.

## Timeline

- 2026-11-13T10:47:21+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-126429

## Documents

- [advisory] Vendor advisory: github.com https://github.com/openemr/openemr/security/advisories/GHSA-h4xc-pqg3-8459
- [advisory] Third-party advisory: www.vulncheck.com https://www.vulncheck.com/advisories/openemr-before-8.5.0-local-file-disclosure-via-doc-lib-php-pdf-renderer

## From the sources

OpenEMR before 8.5.0 passes authenticated user-controlled HTML from the doc_lib.php content parameter to mPDF, which resolves local files and nested SVG resources. Authenticated patients or core users can submit crafted CSS imports or php://filter SVG references to read arbitrary server files including credentials and OAuth keys.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
