PhpWeasyPrint is a PHP library allowing PDF generation from a URL or an HTML page. Prior to version 2.6.0, pontedilana/php-weasyprint fetches the content of option values server-side via file_get_contents() when the value looks like a URL, without restricting the URL scheme. The attachment option of Pdf is the reachable sink: any value that passes isOptionUrl() (filter_var(..., FILTER_VALIDATE_URL)) is downloaded by the PHP process and embedded into the generated PDF. Because FILTER_VALIDATE_URL accepts http, https, ftp, file and PHP stream wrappers such as php://, an attacker who can influence the attachment value reaches both a Server-Side Request Forgery primitive (e.g. internal HTTP endpoints, cloud metadata) and a local file disclosure primitive (file://, php://filter/...), with the fetched bytes exfiltrated as a PDF attachment. This is the same class of issue KnpLabs/snappy patched for its xsl-style-sheet option in GHSA-c5fp-p67m-gq56. The library is documented as a one-to-one substitute for KnpLabs/snappy and shares the same code shape. PhpWeasyPrint version 2.6.0 contains a patch for the issue.
CVE-2026-49359
This medium-severity CVE scores 6.5 under a secondary CVSS source (NVD's own analysis pending). EPSS exploit probability: 0.4%, top 65% 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
- 6.5
- EG Score
- 6.5(medium)
- EG Risk
- 45(Track)EG Risk 45/100SSVC: Track
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity65% × 45%Exploitation40% × 40%Automatability0% × 15%Action: Routine — remediate on your standard cadence. - EPSS PROB
- 0%
- EPSS %ILE
- 35%
- KEV
- Not listed
Published
June 19, 2026
Last Modified
June 23, 2026
Advisory Details (4)
Auto-updated Jun 19, 2026SSRF and local file disclosure via the attachment option · Advisory · pontedilana/php-weasyprint · GitHub
https://github.com/pontedilana/php-weasyprint/security/advisories/GHSA-x8g9-h984-pc362.6.0
Patch available: pontedilana/php-weasyprint 2.6.0
https://github.com/pontedilana/php-weasyprint/releases/tag/2.6.0commit 9582dcf119a4 (pontedilana/php-weasyprint)
Patch available: pontedilana/php-weasyprint 2.6.0 (contains commit 9582dcf119a4)
https://github.com/pontedilana/php-weasyprint/commit/9582dcf119a405276cf55e9e10bc577a887792cbSSRF and local file read via the xsl-style-sheet option · Advisory · KnpLabs/snappy · GitHub
https://github.com/KnpLabs/snappy/security/advisories/GHSA-c5fp-p67m-gq56Vendor Advisories for CVE-2026-49359(1)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Affected Packages
(1 across 1 ecosystem)
Packagist(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| pontedilana/php-weasyprint | 0.10.0 ... 2.5.1 (21 versions) | 2.6.0 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 11× in last 7d / 47× 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-08-25 13:49 UTCEPSS rescore
- 2026-08-25 00:46 UTCEG score recompute
- 2026-08-24 00:16 UTCEG score recompute
- 2026-08-23 00:19 UTCEPSS rescore
- 2026-08-22 23:51 UTCEG score recompute
- 2026-08-21 23:49 UTCEPSS rescore
- 2026-08-21 08:31 UTCEG score recompute
- 2026-08-20 22:55 UTCEPSS rescore
- 2026-08-20 08:05 UTCEG score recompute
- 2026-08-19 17:04 UTCEPSS rescore
- 2026-08-19 07:18 UTCEG score recompute
- 2026-08-18 13:48 UTCEPSS rescore
- 2026-08-17 13:47 UTCEPSS rescore
- 2026-08-16 22:59 UTCEG score recompute
- 2026-08-16 14:56 UTCEPSS rescore
- 2026-08-16 02:14 UTCEPSS rescore
- 2026-08-15 22:34 UTCEG score recompute
- 2026-08-15 01:30 UTCEPSS rescore
- 2026-08-14 22:08 UTCEG score recompute
- 2026-08-13 22:00 UTCEPSS rescore
- 2026-08-12 20:47 UTCEG score recompute
- 2026-08-12 13:51 UTCEPSS rescore
- 2026-08-11 20:22 UTCEG score recompute
- 2026-08-11 00:00 UTCEPSS rescore
- 2026-08-09 19:32 UTCEG score recompute
Show 63 moreShow fewer
- 2026-08-09 13:46 UTCEPSS rescore
- 2026-08-08 19:07 UTCEG score recompute
- 2026-08-08 16:37 UTCEPSS rescore
- 2026-08-07 18:41 UTCEG score recompute
- 2026-08-06 18:16 UTCEG score recompute
- 2026-08-06 13:47 UTCEPSS rescore
- 2026-08-05 19:17 UTCEPSS rescore
- 2026-08-04 15:21 UTCEG score recompute
- 2026-08-04 15:10 UTCEPSS rescore
- 2026-08-04 10:39 UTCEPSS rescore
- 2026-08-03 10:36 UTCEPSS rescore
- 2026-08-02 05:28 UTCEG score recompute
- 2026-08-02 02:27 UTCEPSS rescore
- 2026-08-01 05:03 UTCEG score recompute
- 2026-08-01 04:16 UTCEPSS rescore
- 2026-07-31 03:48 UTCEG score recompute
- 2026-07-30 16:28 UTCEPSS rescore
- 2026-07-30 02:58 UTCEG score recompute
- 2026-07-30 01:30 UTCEPSS rescore
- 2026-07-29 01:38 UTCEG score recompute
- 2026-07-28 15:37 UTCEPSS rescore
- 2026-07-27 18:04 UTCEG score recompute
- 2026-07-26 16:53 UTCEG score recompute
- 2026-07-26 14:54 UTCEPSS rescore
- 2026-07-25 14:18 UTCEPSS rescore
- 2026-07-24 14:18 UTCEPSS rescore
- 2026-07-23 14:18 UTCEPSS rescore
- 2026-07-23 03:18 UTCEG score recompute
- 2026-07-22 14:08 UTCEPSS rescore
- 2026-07-21 15:25 UTCEPSS rescore
- 2026-07-20 17:08 UTCEPSS rescore
- 2026-07-19 14:31 UTCEPSS rescore
- 2026-07-19 14:31 UTCEPSS rescore
- 2026-07-19 02:29 UTCEPSS rescore
- 2026-07-18 10:04 UTCEPSS rescore
- 2026-07-16 17:03 UTCEPSS rescore
- 2026-07-15 16:57 UTCEPSS rescore
- 2026-07-15 02:00 UTCEPSS rescore
- 2026-07-13 22:30 UTCEPSS rescore
- 2026-07-13 06:13 UTCEPSS rescore
- 2026-07-12 05:46 UTCEPSS rescore
- 2026-07-11 08:27 UTCEPSS rescore
- 2026-07-09 19:10 UTCEPSS rescore
- 2026-07-08 15:16 UTCEPSS rescore
- 2026-07-07 13:46 UTCEPSS rescore
- 2026-07-06 16:27 UTCEPSS rescore
- 2026-07-06 02:23 UTCEPSS rescore
- 2026-07-05 02:30 UTCEPSS rescore
- 2026-07-04 06:31 UTCEPSS rescore
- 2026-07-01 15:07 UTCEPSS rescore
- 2026-06-30 23:22 UTCEPSS rescore
- 2026-06-29 14:06 UTCEPSS rescore
- 2026-06-29 14:06 UTCEPSS rescore
- 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 13:49 UTCEPSS rescore
- 2026-06-24 14:05 UTCEPSS rescore
- 2026-06-23 21:33 UTCEPSS rescore
- 2026-06-23 21:33 UTCEPSS rescore
- 2026-06-19 19:14 UTCEG score recompute
- 2026-06-19 19:14 UTCNVD updatefirst tracked
Related CVEs(same CWE)
Same CWE
10 shownCWE-918
- CVE-2016-10927EG 10.0CRITICAL
- CVE-2016-10926EG 10.0CRITICAL
- CVE-2018-10511EG 10.0CRITICAL
- CVE-2018-1000124EG 10.0CRITICAL
- CVE-2017-11291EG 10.0EPSS p92CRITICAL
- CVE-2017-12905EG 10.0CRITICAL
- CVE-2017-8794EG 10.0CRITICAL
- CVE-2017-13667EG 9.9CRITICAL
- CVE-2017-17674EG 9.8CRITICAL
- CVE-2013-4864EG 9.8EPSS p93CRITICAL
Frequently asked(5)
What is CVE-2026-49359?
When was CVE-2026-49359 disclosed?
Is CVE-2026-49359 actively exploited?
What is the CVSS score of CVE-2026-49359?
How do I remediate CVE-2026-49359?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2026-49359
Is Your Infrastructure Affected by CVE-2026-49359?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.