Threadlinqs IntelligenceStart free

VulnerabilityCVE-2026-49260Published 2026-06-19

CVE-2026-49260 — pontedilana php-weasyprint

high

As of 2026-06-19, CVE-2026-49260 is a HIGH-severity vulnerability in pontedilana php-weasyprint, CVSS v3.1 8.2. No Threadlinqs-tracked threat campaign has been attributed to CVE-2026-49260 as of 2026-06-19; the identifier is re-checked against the Threadlinqs threat corpus on every daily ingest.

CVSS v3.1
8.2/10High
EPSS
—No EPSS score yet
CISA KEV
NoNot in the KEV catalog
Tracked threats
0None linked yet
Priority
4.1/10Threadlinqs triage score
Published
CVSS v3.1 8.2 (HIGH) · Priority 4.1/10 · Published 2026-06-19

Last updated:

What is CVE-2026-49260?

PhpWeasyPrint is a PHP library allowing PDF generation from a URL or an HTML page. Prior to version 2.5.1, `pontedilana/php-weasyprint` builds the shell command for WeasyPrint by passing the binary path through `escapeshellarg()` first and then checking the *quoted* result with `is_executable()`. On POSIX `escapeshellarg('/usr/local/bin/weasyprint')` returns `'/usr/local/bin/weasyprint'` with the single-quote characters as part of the string, so `is_executable()` looks for a file whose actual name includes those quotes. That file never exists, the "safe" branch is dead code, and the raw `$binary` string (set via the constructor or `setBinary()`) flows directly into `Symfony\Component\Process\Process::fromShellCommandline()`. Any deployment whose binary path is sourced from configuration, an environment variable, or a per-tenant setting reaches a shell-command-injection sink. The library is documented as a one-to-one substitute for KnpLabs/snappy and inherited the exact pre-fix codepath KnpLabs patched in GHSA-vpr4-p6fq-85jc. PhpWeasyPrint version 2.5.1 contains a patch for the issue.

The record classifies CVE-2026-49260 under weakness class CWE-78. Its CVSS v3 base vector states that the flaw requires local access to the host, needs high-privilege credentials, needs no user interaction, and has high impact on confidentiality, integrity, availability. 1 affected-product entry is recorded, across 1 vendor, listed below. The identifier was first published 108 days ago.

Severity and exploitation probability

CVSS v3.1 base score
8.2 — HIGH
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
CISA KEV
Not listed in the CISA Known Exploited Vulnerabilities catalog
Threadlinqs priority
4.1/10 — a Threadlinqs composite of the CVSS base score, the EPSS percentile and public exploit availability
Published
2026-06-19

Is CVE-2026-49260 being exploited?

It currently carries a trending score of 30 in the Threadlinqs vulnerability feed.

Affected products and versions

  • pontedilana: php-weasyprint

How to fix CVE-2026-49260

No vendor patch reference has been recorded for CVE-2026-49260 in the tracked sources. Follow the references below for a fix, and treat the products listed above as exposed until the vendor states otherwise.

Threat activity tracking CVE-2026-49260

No threat campaign in the Threadlinqs corpus currently references CVE-2026-49260, in its CVE list or as an indicator. The linkage is recomputed from the live corpus on every daily ingest, so this section fills in as soon as a tracked campaign cites the identifier.

Sources

Enriched from CVE.org. Last verified by Threadlinqs on .

Vendor advisory and patch

Other references