Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. dompdf/dompdf
  4. ›
  5. CVE-2026-56722

CVE-2026-56722: Dompdf: Local file read due to improper file path validation in SVG images encoded as data-URI

July 22, 2026

Description: An attacker, who controls the HTML input supplied to dompdf, can read arbitrary images from the server’s file system, bypassing the chroot restriction. The vulnerability is exploitable in the default configuration. Exploitation conditions: An external user Researcher: Nikita Sveshnikov (Positive Technologies)

References

  • github.com/advisories/GHSA-cx96-42px-69fm
  • github.com/dompdf/dompdf/commit/6a58996865db05d8fede748507e50ac4b8c5bfd0
  • github.com/dompdf/dompdf/commit/bf7b02f642e26007dedc5a22b3d6e15f9931120a
  • github.com/dompdf/dompdf/releases/tag/v3.1.6
  • github.com/dompdf/dompdf/security/advisories/GHSA-cx96-42px-69fm
  • nvd.nist.gov/vuln/detail/CVE-2026-56722

Code Behaviors & Features

Detect and mitigate CVE-2026-56722 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.1.6

Fixed versions

  • 3.1.6

Solution

Upgrade to version 3.1.6 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation
  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

packagist/dompdf/dompdf/CVE-2026-56722.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Mon, 10 Aug 2026 00:16:05 +0000.