CVE-2026-49286
Last modified
CVE-2026-49286 is a high-severity vulnerability rated 8.1/10 on the CVSS scale. 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. EPSS estimates a 0.56% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-49286?
How severe is CVE-2026-49286?
How do I fix CVE-2026-49286?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-49276Kirby is an open-source content management system. Prior to …7.4
- CVE-2026-49277Rocket.Chat is an open-source, secure, fully customizable co…2.3
- CVE-2026-49278Rocket.Chat is an open-source, secure, fully customizable co…6.7
- CVE-2026-49279WWBN AVideo is an open source video platform. Versions 29.0 …7.7
- CVE-2026-4928Rejected reason: ** REJECT ** DO NOT USE THIS CANDIDATE NUMB…
- CVE-2026-49284SimpleSAMLphp versions before 1.18.6 contain an information …7.1
- CVE-2026-49287Statamic is a Laravel and Git powered content management sys…7.4
- CVE-2026-49288Statamic is a Laravel and Git powered content management sys…4.3
- CVE-2026-4929Simple Hierarchical Select (SHS) for Drupal 7 contains cross…5.4
- CVE-2026-49290Slopsmith is a self-contained web application for browsing, …7.6
- CVE-2026-49291mcp-memory-service is a semantic memory layer for AI applica…8.1
- CVE-2026-49293js-toml is a TOML parser for JavaScript, fully compliant wit…7.5
Are you affected by CVE-2026-49286?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
