phpoffice/phpspreadsheet is vulnerable to Server-Side Request Forgery (SSRF)
77
High Risk
The WEBSERVICE() calculation function validates a target URL's host against a configured domain whitelist but fetches the content with file_get_contents() while allowing HTTP redirects to be followed. Because redirect targets are not re-validated against the whitelist, an attacker-supplied spreadsheet can point WEBSERVICE() at a whitelisted host that issues a 302 redirect to an internal address. This lets a crafted file reach internal services and read cloud metadata, bypassing the allowlist as a full-read SSRF. The fix disables redirect following in the stream context and returns a not-implemented sentinel for disallowed hosts.
You are affected if you are using a version that falls within the vulnerable range and your application evaluates the WEBSERVICE() function on untrusted spreadsheets with a configured domain whitelist.
phpoffice/phpspreadsheet is vulnerable to Server-Side Request Forgery (SSRF) in versions 4.0.0 - 5.8.0, 3.3.0 - 3.10.6, 2.2.0 - 2.4.6, 2.0.0 - 2.1.17 and 0.0.1 - 1.30.5.
Upgrade the phpoffice/phpspreadsheet library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant