Advisory record · GHSA-5g9f-cwwg-4p8g

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

CVSS 3.0 LowEPSS 0.0017 · 5th percentile

Published by the GitHub Advisory Database at 26 Jun 2026, 22:10 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
pontedilana/php-weasyprintPackagist<2.6.02.6.0
Identifiers
GHSA-5g9f-cwwg-4p8g · CVE-2026-49358 · PKSA-69w1-spwq-4gvw
Weakness (CWE)
CWE-73
Published
26 Jun 2026
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

The pontedilana/php-weasyprint Packagist package, versions before 2.6.0, lets a public temporaryFiles array in AbstractGenerator be used to delete arbitrary paths. Deletion happens at script shutdown without checking that the path is inside the temporary folder, so anyone able to hold a generator instance and set that property within the same request could remove files the PHP process can write to. The source describes this as hard to exploit on its own and more of an amplifier when combined with other bugs; it is rated CVSS 3.1 3.0 (LOW). Upgrade to version 2.6.0, which contains the fix.

Written 31 Oct 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
3.0 Low 3.1 CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:L/A:L CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0017, the 5th percentile, on 16 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:01 UTC First seen by agentprime
  2. 31 Oct 2026, 14:01 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.