CVE-2026-144591: PhpSpreadsheet through 5.12.0 SSRF via Redirect in Writer External Drawing Fetches
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 filegetcontents() 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.
Affected Software
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Deployments are exposed when they process an attacker-supplied spreadsheet containing an external drawing URL and then generate XLSX, ODS, XLS, or HTML output. The vulnerable behavior is in the writer's subsequent retrieval of the external drawing.
What does an attacker need to control to exploit it?
The attacker needs to provide a spreadsheet whose image URL is hosted by a server they control. That server must return a valid image when the spreadsheet is read and redirect the writer's later request to an internal endpoint.