CVE-2026-59943Dompdf: Embedded SVG images can leak existence of files and directories within the…
Dompdf is an HTML to PDF converter for PHP. In versions 3.15 and prior, if a malicious actor can supply unrestricted content for rendering by Dompdf they can utilize the SVG rendering functionality to leak filesystem information when rendering PDF files using image references within a data-URI encoded SVG document. Using an <image> element inside a data-URI embedded SVG, an attacker can attempt to embed other files via the href or xlink:href attributes. When processing a file that does not exist (e.g. file:///DOESNOTEXIST), dompdf behaves differently than it does when accessing a file or directory that actually exists on the filesystem. This issue has been fixed in version 3.16.
What to do
Fixed builds are available from Packagist: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 22.04 | php-dompdf | Under investigation | UBUNTU-CVE-2026-59943 | |
| Ubuntu 20.04 | php-dompdf | Fix pending | UBUNTU-CVE-2026-59943 | |
| Ubuntu 18.04 | php-dompdf | Fix pending | UBUNTU-CVE-2026-59943 | |
| Ubuntu 16.04 | php-dompdf | Fix pending | UBUNTU-CVE-2026-59943 | |
| Debian 12 | php-dompdf | Fix pending | DEBIAN-CVE-2026-59943 | |
| Packagist library | dompdf/dompdf | Fixed | 3.1.6 | GHSA-j8qw-6jw8-r297 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- dompdf: affected: < 3.1.6
References
- https://github.com/dompdf/dompdf/security/advisories/GHSA-j8qw-6jw8-r297
- https://github.com/dompdf/dompdf/commit/6a58996865db05d8fede748507e50ac4b8c5bfd0
- https://github.com/dompdf/dompdf/releases/tag/v3.1.6
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.