Advisory record · GHSA-x8g9-h984-pc36

PhpWeasyPrint vulnerable to SSRF and local file disclosure via the attachment option

CVSS 6.5 MediumEPSS 0.0042 · 37th percentile

Published by the GitHub Advisory Database at 26 Jun 2026, 22:11 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
pontedilana/php-weasyprintPackagist<2.6.02.6.0
Identifiers
GHSA-x8g9-h984-pc36 · CVE-2026-49359 · PKSA-q4hm-4pvf-f13w
Weakness (CWE)
CWE-918
Published
26 Jun 2026
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

The pontedilana/php-weasyprint PHP package, versions 2.5.1 and earlier, fetches URL-like values of the attachment option server-side without restricting the URL scheme, so a value that passes URL validation can be fetched and embedded in the generated PDF. An attacker who can influence the attachment value could cause server-side requests to internal services or read local files through wrapper schemes. Upgrade to version 2.6.0, which is listed as the fixed release.

Written 31 Oct 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
6.5 Medium 3.1 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0042, the 37th percentile, on 13 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 13:57 UTC First seen by agentprime
  2. 31 Oct 2026, 13:57 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.