pontedilana/php-weasyprint vulnerabilities

PHP library allowing PDF generation from an url or a html page. Wrapper for Kozea/WeasyPrint.

Registry
Composer
Latest
2.7.0
License
MIT

4 known advisories

The latest version, 2.7.0, is not affected by any of them. Projects on older versions may be.

Update to the latest version:composer require pontedilana/php-weasyprint:^2.7.0

Is your project on an affected pontedilana/php-weasyprint?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Laravel or PHP apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Security advisories for pontedilana/php-weasyprint

  • MediumCVE-2026-49359GHSA-x8g9-h984-pc3626 Jun 2026

    PhpWeasyPrint vulnerable to SSRF and local file disclosure via the attachment option

    Affected
    <2.6.0
    Fixed in
    2.6.0
  • LowCVE-2026-49358GHSA-5g9f-cwwg-4p8g26 Jun 2026

    PhpWeasyPrint vulnerable to arbitrary file deletion at shutdown via public $temporaryFiles

    Affected
    <2.6.0
    Fixed in
    2.6.0
  • HighCVE-2026-49286GHSA-2fmj-p74r-3wjm26 Jun 2026

    PhpWeasyPrint vulnerable to PHAR deserialization via output filename (CVE-2023-28115 case-insensitive bypass)

    Affected
    <2.6.0
    Fixed in
    2.6.0
  • HighCVE-2026-49260GHSA-f5gc-qxf8-mh9g26 Jun 2026

    php-weasyprint: shell command injection via configurable WeasyPrint binary path due to inverted is_executable() guard (mirror of KnpLabs/snappy GHSA-vpr4-p6fq-85jc)

    Affected
    <2.5.1
    Fixed in
    2.5.1

Is your pontedilana/php-weasyprint version vulnerable?

Which of your client projects still run an old pontedilana/php-weasyprint?

NPMscan reads the composer.lock in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.

Other Composer packages

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the Composer registry.