CVE Explorer
CVE-2026-49359
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
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"php-weasyprint","vendor":"pontedilana","versions":[{"status":"affected","version":"< 2.6.0"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:a351d75f788f85c67f6b6e9aa8383c6d902611de034923aeb06ced50530b1fea · sha256:5d5bae81d337f076… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.5,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:a351d75f788f85c67f6b6e9aa8383c6d902611de034923aeb06ced50530b1fea · sha256:5d5bae81d337f076… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
1 source assertion{"cweId":"CWE-918","description":"CWE-918: Server-Side Request Forgery (SSRF)","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:a351d75f788f85c67f6b6e9aa8383c6d902611de034923aeb06ced50530b1fea · sha256:5d5bae81d337f076… · /containers/cna/problemTypes/0/descriptions/0
Source references
5 source assertions{"name":"https://github.com/KnpLabs/snappy/security/advisories/GHSA-c5fp-p67m-gq56","tags":["x_refsource_MISC"],"url":"https://github.com/KnpLabs/snappy/security/advisories/GHSA-c5fp-p67m-gq56"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:a351d75f788f85c67f6b6e9aa8383c6d902611de034923aeb06ced50530b1fea · sha256:5d5bae81d337f076… · /containers/cna/references/1
{"name":"https://github.com/pontedilana/php-weasyprint/commit/9582dcf119a405276cf55e9e10bc577a887792cb","tags":["x_refsource_MISC"],"url":"https://github.com/pontedilana/php-weasyprint/commit/9582dcf119a405276cf55e9e10bc577a887792cb"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:a351d75f788f85c67f6b6e9aa8383c6d902611de034923aeb06ced50530b1fea · sha256:5d5bae81d337f076… · /containers/cna/references/2
{"name":"https://github.com/pontedilana/php-weasyprint/releases/tag/2.6.0","tags":["x_refsource_MISC"],"url":"https://github.com/pontedilana/php-weasyprint/releases/tag/2.6.0"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:a351d75f788f85c67f6b6e9aa8383c6d902611de034923aeb06ced50530b1fea · sha256:5d5bae81d337f076… · /containers/cna/references/3
{"tags":["exploit"],"url":"https://github.com/pontedilana/php-weasyprint/security/advisories/GHSA-x8g9-h984-pc36"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:a351d75f788f85c67f6b6e9aa8383c6d902611de034923aeb06ced50530b1fea · sha256:5d5bae81d337f076… · /containers/adp/0/references/0
{"name":"https://github.com/pontedilana/php-weasyprint/security/advisories/GHSA-x8g9-h984-pc36","tags":["x_refsource_CONFIRM"],"url":"https://github.com/pontedilana/php-weasyprint/security/advisories/GHSA-x8g9-h984-pc36"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:a351d75f788f85c67f6b6e9aa8383c6d902611de034923aeb06ced50530b1fea · sha256:5d5bae81d337f076… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.