CVE-2026-49286
HighPublic exploitPrior to version 2.6.0, pontedilana/php-weasyprint guarded the output filename against the phar:// stream wrapper with a case-sensitive blacklist.
Published Jun 19, 2026 · Updated Sep 10, 2026 · Also known as EUVD-2026-38053, GHSA-2fmj-p74r-3wjm
Key Facts
Patch immediately- CVE-2026-49286 is a high-severity vulnerability (CVSS 8.1 v3.1) affecting pontedilana/php-weasyprint (composer), php-weasyprint.
- It is not listed in any known-exploited vulnerabilities catalog. Public exploit code is available.
- EPSS estimates a 0.9% probability of exploitation in the next 30 days.
- Fixed versions are available, including php-weasyprint 2.6.0, pontedilana/php-weasyprint 2.6.0.
- Brandefense priority: patch immediately, because public exploit code exists for a high-severity flaw.
CVSS v3.1
8.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS (30-day exploit likelihood)
0.9%
Exploited in the wild
No known
Not in a known-exploited catalog
Public exploit code
Available
Proof-of-concept or weaponized module
Get the full CVE-2026-49286 brief as a PDF
Every affected product and fixed release, exploitation status and a first 24 hours response checklist, emailed within minutes.
Description
PhpWeasyPrint is a PHP library allowing PDF generation from a URL or an HTML page. Prior to version 2.6.0, pontedilana/php-weasyprint guarded the output filename against the phar:// stream wrapper with a case-sensitive blacklist. PHP stream wrappers are case-insensitive, so PHAR://, Phar://, etc. bypass the check and reach fileExists() (file_exists()) in prepareOutput(). On PHP 7 (which the library still supports — PHP 7.4+), this triggers deserialization of a crafted PHAR archive's metadata, leading to remote code execution. This is the patch-bypass of CVE-2023-28115. The same issue and fix were handled upstream in KnpLabs/snappy (GHSA-92rv-4j2h-8mjj). PhpWeasyPrint version 2.6.0 contains a patch for the issue.
Affected Products
2 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| pontedilana/php-weasyprintcomposer | See advisory | 2.6.0 |
| php-weasyprint | See advisory | 2.6.0 |
Patched Releases
php-weasyprint
2.6.0
pontedilana/php-weasyprint
2.6.0
Timeline
Publicly disclosed
Jun 19, 2026
Last updated
Sep 10, 2026
Weakness Type
- CWE-502 Deserialization of Untrusted Data
References
- advisoryGHSA advisory
- advisoryhttps://github.com/CVEProject/cvelistV5/tree/main/cves/2026/49xxx/CVE-2026-49286.json
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2026-49286
- otherhttps://github.com/KnpLabs/snappy/security/advisories/GHSA-92rv-4j2h-8mjj
- otherhttps://github.com/pontedilana/php-weasyprint
FAQ
Common Questions.
PhpWeasyPrint is a PHP library allowing PDF generation from a URL or an HTML page.
Affected: pontedilana/php-weasyprint (composer); php-weasyprint. The full list is in the CVE brief.
It is not listed in any known-exploited vulnerabilities catalog.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
Public exploit code is available.
Fixed versions are available, including php-weasyprint 2.6.0, pontedilana/php-weasyprint 2.6.0.
Brandefense priority: patch immediately, because public exploit code exists for a high-severity flaw.
Is CVE-2026-49286 Running On Your Attack Surface?
Brandefense maps vulnerabilities like this one to your internet-facing assets and tells you exactly where to patch.
Request A Demo