SCA: security update for pontedilana/php-weasyprint (GHSA-2fmj-p74r-3wjm)

high Tenable Self-Hosted Container Security Plugin ID 444053

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- PhpWeasyPrint is a PHP library allowing PDF generation from a URL or an HTML page. Prior to version 2.6.0,
`pontedilana/php-weasyprint` guarded the output filename against the `phar://` stream wrapper with a case-
sensitive blacklist. PHP stream wrappers are case-insensitive, so `PHAR://`, `Phar://`, etc. bypass the
check and reach `fileExists()` (`file_exists()`) in `prepareOutput()`. On PHP 7 (which the library still
supports — PHP 7.4+), this triggers deserialization of a crafted PHAR archive's metadata, leading to
remote code execution. This is the patch-bypass of CVE-2023-28115. The same issue and fix were handled
upstream in KnpLabs/snappy (GHSA-92rv-4j2h-8mjj). PhpWeasyPrint version 2.6.0 contains a patch for the
issue. (CVE-2026-49286)

Solution

Update the pontedilana/php-weasyprint library and its related packages to version 2.6.0 or later.

See Also

https://github.com/advisories/GHSA-2fmj-p74r-3wjm

Plugin Details

Severity: High

ID: 444053

Version: Revision 1.1

Type: Local

Family: SCA Checks

Published: 6/27/2026

Updated: 6/27/2026

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: High

Base Score: 7.6

Temporal Score: 5.6

Vector: CVSS2#AV:N/AC:H/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2026-49286

CVSS v3

Risk Factor: High

Base Score: 8.1

Temporal Score: 7.1

Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 6/26/2026

Vulnerability Publication Date: 6/19/2026

Reference Information

CVE: CVE-2026-49286

cwe: CWE-502