PhpWeasyPrint is a PHP library allowing PDF generation from a URL or an HTML page. Prior to version 2.6.0, AbstractGenerator::$temporaryFiles is a public array, and removeTemporaryFiles() — invoked from __destruct() and from a registered shutdown function — calls unlink() on every entry without verifying that the path is contained within the temporary folder. Any code holding a reference to a generator instance can push an arbitrary path into the array and have it deleted on script shutdown. This mirrors the KnpLabs/snappy issue GHSA-87qc-37cw-84h4. PhpWeasyPrint version 2.6.0 contains a patch for the issue.
CVE-2026-49358
This low-severity CVE scores 3.0 under a secondary CVSS source (NVD's own analysis pending). EPSS exploit probability: 0.1%, top 98% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- Lower severity and no public exploit yet
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 3.0
- EG Score
- 3.0(medium)
- EPSS
- 1.6%
- KEV
- Not listed
Published
June 19, 2026
Last Modified
June 23, 2026
References (5)
- security-advisories@githubhttps://github.com/KnpLabs/snappy/security/advisories/GHSA-87qc-37cw-84h4
- security-advisories@githubhttps://github.com/pontedilana/php-weasyprint/commit/6d328ffd3bcb800c7c2e8a594b1bff0c099c9391
- security-advisories@githubhttps://github.com/pontedilana/php-weasyprint/releases/tag/2.6.0
- security-advisories@githubhttps://github.com/pontedilana/php-weasyprint/security/advisories/GHSA-5g9f-cwwg-4p8g
- 134c704f-9b21-4f2e-91b3-4a467353bcc0https://github.com/pontedilana/php-weasyprint/security/advisories/GHSA-5g9f-cwwg-4p8g
Vendor Advisories for CVE-2026-49358(1)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 7× in last 7d / 18× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-06 16:27 UTCEPSS rescore
- 2026-07-06 02:23 UTCEPSS rescore
- 2026-07-05 03:31 UTCEG score recompute
- 2026-07-05 02:30 UTCEPSS rescore
- 2026-07-04 06:31 UTCEPSS rescore
- 2026-07-02 01:26 UTCEG score recompute
- 2026-06-30 23:22 UTCEPSS rescore
- 2026-06-28 23:22 UTCEG score recompute
- 2026-06-28 14:07 UTCEPSS rescore
- 2026-06-28 04:56 UTCEPSS rescore
- 2026-06-28 04:56 UTCEPSS rescore
- 2026-06-27 03:08 UTCEPSS rescore
- 2026-06-25 21:17 UTCEG score recompute
- 2026-06-23 21:33 UTCEPSS rescore
- 2026-06-23 21:33 UTCEPSS rescore
- 2026-06-22 19:12 UTCEG score recompute
- 2026-06-19 17:04 UTCEG score recompute
- 2026-06-19 17:00 UTCNVD updatefirst tracked
Frequently asked(5)
What is CVE-2026-49358?
When was CVE-2026-49358 disclosed?
Is CVE-2026-49358 actively exploited?
What is the CVSS score of CVE-2026-49358?
How do I remediate CVE-2026-49358?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2026-49358
Is Your Infrastructure Affected by CVE-2026-49358?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.