# CVE-2026-144591: PhpSpreadsheet through 5.12.0 SSRF via Redirect in Writer External Drawing Fetches

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

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

High 8.9 · Reported · No fix listed · CWE-918 · Packagist

# PhpSpreadsheet through 5.12.0 SSRF via Redirect in Writer External Drawing Fetches

CVE-2026-144591 · published 2026-12-04

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-144591 affects PhpSpreadsheet (Packagist) <= 5.12.0: SSRF via Redirect in Writer External Drawing Fetches (CWE-918). No fixed release is listed. CVSS 4.0 base score 8.9 (High), assigned by VulnCheck. Published 2026-12-04 by VulnCheck. Credit: Zachariah Mithani (AploSec).

PhpSpreadsheet through 5.12.0 contains a server-side request forgery vulnerability that allows attackers to reach internal addresses because writers re-fetch external drawing URLs with file_get_contents() following redirects. Attackers can supply a spreadsheet whose image host serves a valid image to the reader and then redirects the writer's fetch to internal endpoints, leaking response data in generated xlsx, ods, xls or html files.

## 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/phpspreadsheet-through-5.12.0-ssrf-via-redirect-in-writer-external-drawing-fetches](https://www.vulncheck.com/advisories/phpspreadsheet-through-5.12.0-ssrf-via-redirect-in-writer-external-drawing-fetches)

- [Vulnerable codehttps://github.com/PHPOffice/PhpSpreadsheet/blob/5.12.0/src/PhpSpreadsheet/Writer/Xlsx.php#L598-L622](https://github.com/PHPOffice/PhpSpreadsheet/blob/5.12.0/src/PhpSpreadsheet/Writer/Xlsx.php#L598-L622)

- [Vulnerable codehttps://github.com/PHPOffice/PhpSpreadsheet/blob/5.12.0/src/PhpSpreadsheet/Writer/Ods/Drawing.php#L60-L66](https://github.com/PHPOffice/PhpSpreadsheet/blob/5.12.0/src/PhpSpreadsheet/Writer/Ods/Drawing.php#L60-L66)

- [Vulnerable codehttps://github.com/PHPOffice/PhpSpreadsheet/blob/5.12.0/src/PhpSpreadsheet/Worksheet/Drawing.php#L140-L180](https://github.com/PHPOffice/PhpSpreadsheet/blob/5.12.0/src/PhpSpreadsheet/Worksheet/Drawing.php#L140-L180)

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

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

**Package:** PhpSpreadsheet

**Ecosystem:** Packagist

**Affected:** <= 5.12.0

**Fixed:** None

**Weakness:** CWE-918

**CNA:** VulnCheck

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