CVE-2026-142219: mPDF through 8.3.2 SSRF via gopher:// and dict:// URLs in CurlHttpClient
mPDF through 8.3.2 contains a server-side request forgery vulnerability that allows attackers to reach internal services by supplying gopher:// or dict:// resource URLs in rendered HTML or CSS. CurlHttpClient::sendRequest passes these URLs to cURL without setting CURLOPTPROTOCOLS, letting attackers send chosen bytes to arbitrary hosts and ports such as Redis or Memcached.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Applications using composer/mpdf/mpdf through version 8.3.2 are exposed when untrusted parties can supply HTML or CSS that mPDF renders and that can reference external resource URLs.
What does an attacker need to exploit it?
The attacker needs a way to cause mPDF to render HTML or CSS containing a gopher:// or dict:// resource URL. No authentication or user interaction is required by the vulnerability vector, but exploitation has high attack complexity.
What internal targets could be reached?
The vulnerable cURL request handling can connect to arbitrary hosts and ports reachable from the server running mPDF. The supplied data specifically identifies services such as Redis and Memcached as potential targets and notes that chosen bytes can be sent.
How can I determine whether my deployment is affected?
Check whether your application uses composer/mpdf/mpdf version 8.3.2 or earlier and whether its mPDF rendering input permits externally controlled HTML or CSS resource URLs. Review rendered content for gopher:// or dict:// references.