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.2%, top 85% 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)
- EPSS
- 15.3%
- 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.
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 13× in last 7d / 35× 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-07 02:45 UTCEG score recompute
- 2026-07-06 16:27 UTCEPSS rescore
- 2026-07-06 02:23 UTCEPSS rescore
- 2026-07-06 02:20 UTCEG score recompute
- 2026-07-05 02:30 UTCEPSS rescore
- 2026-07-05 01:54 UTCEG score recompute
- 2026-07-04 06:31 UTCEPSS rescore
- 2026-07-04 01:29 UTCEG score recompute
- 2026-07-03 01:03 UTCEG score recompute
- 2026-07-02 00:38 UTCEG score recompute
- 2026-07-01 15:07 UTCEPSS rescore
- 2026-07-01 00:11 UTCEG score recompute
- 2026-06-30 23:22 UTCEPSS rescore
- 2026-06-29 23:43 UTCEG score recompute
- 2026-06-29 14:06 UTCEPSS rescore
- 2026-06-29 14:06 UTCEPSS rescore
- 2026-06-28 23:17 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 22:50 UTCEG score recompute
- 2026-06-27 03:08 UTCEPSS rescore
- 2026-06-26 22:25 UTCEG score recompute
- 2026-06-25 21:58 UTCEG score recompute
- 2026-06-25 13:49 UTCEPSS rescore
Show 10 moreShow fewer
- 2026-06-24 21:32 UTCEG score recompute
- 2026-06-24 14:05 UTCEPSS rescore
- 2026-06-23 21:33 UTCEPSS rescore
- 2026-06-23 21:33 UTCEPSS rescore
- 2026-06-23 21:07 UTCEG score recompute
- 2026-06-22 20:36 UTCEG score recompute
- 2026-06-21 20:09 UTCEG score recompute
- 2026-06-20 19:43 UTCEG score recompute
- 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
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
Explore the affected products and dependency analysis for 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.