CVE-2026-49286: PhpWeasyPrint is a PHP library allowing PDF generation from a URL or an HTML page
CVE-2026-49286 is a high-severity flaw (CVSS 8.1) affecting affected software. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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 t
Why this priority
- High severity
- CISA SSVC: public proof of concept
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Risk facts
| CVSS score | 8.1 (High) |
| Attack vector | Network (remote) |
| Attack complexity | High |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 0.9% (top 39%) |
| CISA exploited list | No |
| Weakness | CWE-502 |
| Published | 2026-06-19 |
| Last modified | 2026-10-25 |
Last updated 2026-10-25 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Timeline
- Published CVE record published
- Updated Record last modified
Exact fixes by distribution
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- Write-up: github.com/KnpLabs/snappy/security/advisories/GHSA-92rv-4j2h-8mjj
- Write-up: github.com/pontedilana/php-weasyprint/security/advisories/GHSA-2fmj-p74r-3wjm
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-49286?
No fixed release is listed yet. Watch the vendor advisory and apply any mitigation shown on this page.
Is CVE-2026-49286 being exploited?
CVE-2026-49286 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-49286 affect?
CVE-2026-49286 affects affected software. Severity is high (CVSS 8.1). 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 st
How urgent is CVE-2026-49286?
Priority 52/100. High severity; CISA SSVC: public proof of concept; Remotely exploitable, no login, no user action