Live threats

All CVEs / pontedilana

CVE-2026-49358pontedilana php-weasyprint

Low 3.0

Priority
18
CVSS 3.1
3.0
EPSS
—
Auth required
Yes
Published
Jun 19, 2026
Updated
Oct 25, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-73
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:L/A:L

What happens

PhpWeasyPrint is a PHP library allowing PDF generation from a URL or an HTML page. Prior to version 2.6.0, `AbstractGenerator::$temporaryFiles` is a public array, and `removeTemporaryFiles()` — invoked from `__destruct()` and from a registered shutdown function — calls `unlink()` on every entry without verifying that the path is contained within the temporary folder. Any code holding a reference to a generator instance can push an arbitrary path into the array and have it deleted on script shutdown. This mirrors the KnpLabs/snappy issue GHSA-87qc-37cw-84h4. PhpWeasyPrint version 2.6.0 contains a patch for the issue.

Original NVD text.

What to do

  1. Apply the vendor's security update for php-weasyprint.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist pontedilana/php-weasyprint < 2.6.0 2.6.0 composer require "pontedilana/php-weasyprint:^2.6.0"

Per OSV / GitHub Advisories (GHSA-5g9f-cwwg-4p8g). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official sources

References

Links published by the sources. Open them with care.