# CVE-2026-142219: mPDF through 8.3.2 SSRF via gopher:// and dict:// URLs in CurlHttpClient

Source: https://aplosec.si/cve/CVE-2026-142219/

[AploSec](https://aplosec.si/) / [Disclosures](https://aplosec.si/disclosures/) / CVE-2026-142219

Medium 6.3 · Reported · No fix listed · CWE-918 · Packagist

# mPDF through 8.3.2 SSRF via gopher:// and dict:// URLs in CurlHttpClient

CVE-2026-142219 · published 2026-12-02

In plain words: this type of bug lets someone trick the server into making requests to places it should not reach (server-side request forgery, SSRF). No fixed release is listed yet.

## Summary

CVE-2026-142219 affects mPDF (Packagist) <= 8.3.2: SSRF via gopher:// and dict:// URLs in CurlHttpClient (CWE-918). No fixed release is listed. CVSS 4.0 base score 6.3 (Medium), assigned by VulnCheck. Published 2026-12-02 by VulnCheck. Credit: Zachariah Mithani (AploSec).

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 CURLOPT_PROTOCOLS, letting attackers send chosen bytes to arbitrary hosts and ports such as Redis or Memcached.

## Evidence

Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.

## Remediation

No fixed release is listed in the advisory. Check the references for upstream status.

## References

- [VulnCheck advisoryhttps://www.vulncheck.com/advisories/mpdf-through-8.3.2-ssrf-via-gopher-and-dict-urls-in-curlhttpclient](https://www.vulncheck.com/advisories/mpdf-through-8.3.2-ssrf-via-gopher-and-dict-urls-in-curlhttpclient)

- [Vulnerable codehttps://github.com/mpdf/mpdf/blob/v8.3.2/src/Http/CurlHttpClient.php#L25-L67](https://github.com/mpdf/mpdf/blob/v8.3.2/src/Http/CurlHttpClient.php#L25-L67)

- [Vulnerable codehttps://github.com/mpdf/mpdf/blob/v8.3.2/src/File/StreamWrapperChecker.php#L22-L44](https://github.com/mpdf/mpdf/blob/v8.3.2/src/File/StreamWrapperChecker.php#L22-L44)

- [Vulnerable codehttps://github.com/mpdf/mpdf/blob/v8.3.2/src/Utils/Path.php#L32-L37](https://github.com/mpdf/mpdf/blob/v8.3.2/src/Utils/Path.php#L32-L37)

- [CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-142219](https://www.cve.org/CVERecord?id=CVE-2026-142219)

**Severity:** Medium 6.3 CVSS 4.0, scored by VulnCheck in the [CVE record](https://www.cve.org/CVERecord?id=CVE-2026-142219)

**Package:** mPDF

**Ecosystem:** Packagist

**Affected:** <= 8.3.2

**Fixed:** None

**Weakness:** CWE-918

**CNA:** VulnCheck

**Credit:** Zachariah Mithani (AploSec) finder
