CVE-2026-49286

PhpWeasyPrint · PhpWeasyPrint

PhpWeasyPrint is susceptible to security vulnerabilities due to its functionality as a PHP library for PDF generation from URLs or HTML pages.

Executive summary

The PhpWeasyPrint library contains a security vulnerability that could potentially expose systems to unauthorized interactions through its PDF generation functionality.

Vulnerability

The vulnerability relates to the library's core functionality of rendering PDF content from external URLs or HTML input, which may allow for server-side request forgery or arbitrary file access depending on implementation. Without specific authentication requirements listed, it is assumed that any application utilizing this library in an unauthenticated context is at risk.

Business impact

A successful exploit could lead to unauthorized data exfiltration, internal network scanning, or full system compromise. With a CVSS score of 8.1 (High), this vulnerability poses a significant risk to the confidentiality and integrity of the hosting environment, necessitating immediate attention to prevent malicious abuse.

Remediation

Immediate Action: Review the official PhpWeasyPrint repository and apply the latest security patches or updates provided by the maintainers.

Proactive Monitoring: Monitor server logs for unusual outbound requests or unexpected file access patterns originating from the application process.

Compensating Controls: Implement a Web Application Firewall (WAF) to filter malicious input and restrict the library's ability to reach internal network resources.

Exploitation status

Public Exploit Available: false

Analyst recommendation

Given the High severity rating, organizations should treat this vulnerability with urgency. Evaluate the necessity of the library's current configuration and ensure that all updates are applied promptly to mitigate potential unauthorized access vectors.