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.
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
| Score | Rating | CVSS | Vector | Source |
|---|---|---|---|---|
| 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
- 31 Oct 2026, 14:01 UTC First seen by agentprime
- 31 Oct 2026, 14:01 UTC Confirmed by OSV
Sources
- GitHub Advisory Database: GHSA-5g9f-cwwg-4p8g
- OSV: GHSA-5g9f-cwwg-4p8g
- github.com/KnpLabs/snappy/security/advisories/GHSA-87qc-37cw-84h4
- github.com/pontedilana/php-weasyprint/security/advisories/GHSA-5g9f-cwwg-4p8g
- nvd.nist.gov/vuln/detail/CVE-2026-49358
- github.com/pontedilana/php-weasyprint/commit/6d328ffd3bcb800c7c2e8a594b1bff0c099c9391
- github.com/pontedilana/php-weasyprint
- github.com/pontedilana/php-weasyprint/releases/tag/2.6.0