Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2026-49286: PhpWeasyPrint is a PHP library allowing PDF generation from a URL or an HTML page

52
This month
HIGH 8.1REMOTE

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 score8.1 (High)
Attack vectorNetwork (remote)
Attack complexityHigh
Privileges neededNone
User interactionNone
EPSS exploit chance0.9% (top 39%)
CISA exploited listNo
WeaknessCWE-502
Published2026-06-19
Last modified2026-10-25
Publisher (CNA): GitHub, Inc.

Share: LinkedIn · X · Reddit

Last updated 2026-10-25 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Timeline

Exact fixes by distribution

Composer (PHP) · pontedilana/php-weasyprint · FIXED · 2.6.0 · vulnerable: <= 2.5.1 · source
composer require "pontedilana/php-weasyprint:>=2.6.0"

Public exploits and detection

Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.

Verify at the official source NVD · CVE Program · Report a problem with this page
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

Software pages

PHP vulnerabilities

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.