Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
PhpWeasyPrint (Packagist package pontedilana/php-weasyprint) versions before 2.6.0 use a case-sensitive check to block the phar:// stream wrapper in the output filename, which PHP's case-insensitive wrappers can bypass. An attacker who can control the output filename passed to generate() or generateFromHtml(), and who can place a PHAR archive on the filesystem (for example through an upload), can trigger PHAR metadata deserialization and remote code execution on servers running PHP below 8. Upgrade to version 2.6.0, which fixes the issue.
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 |
|---|---|---|---|---|
| 8.1 | High | 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H | CNA (GitHub_M) |
- CISA KEV Not listed.
- EPSS 0.0073, the 54th percentile, on 10 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.
Timeline
- 31 Oct 2026, 13:58 UTC First seen by agentprime
- 31 Oct 2026, 13:58 UTC Confirmed by OSV
Sources
- GitHub Advisory Database: GHSA-2fmj-p74r-3wjm
- OSV: GHSA-2fmj-p74r-3wjm
- github.com/KnpLabs/snappy/security/advisories/GHSA-92rv-4j2h-8mjj
- github.com/pontedilana/php-weasyprint/security/advisories/GHSA-2fmj-p74r-3wjm
- nvd.nist.gov/vuln/detail/CVE-2026-49286
- github.com/pontedilana/php-weasyprint/commit/d1aa487722b5a3cab9b222b85fdb5608a5a550c3
- github.com/pontedilana/php-weasyprint
- github.com/pontedilana/php-weasyprint/releases/tag/2.6.0