{"answers":{"affected":"10 open source packages ship an affected version, including phpoffice/phpspreadsheet.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-108360 exists.","fix":"Upgrade phpoffice/phpspreadsheet to a fixed version for your release line: 1.30.7, 2.1.19, 2.4.8 or 3.10.8.","what":"CVE-2026-108360 is a medium-severity vulnerability in PHPOffice PhpSpreadsheet, published on 22 Oct 2026."},"fix_prompt":"Check this codebase for CVE-2026-108360 and fix it if it is affected.\n\nWhat it is: CVE-2026-108360 is a medium-severity vulnerability in PHPOffice PhpSpreadsheet, published on 22 Oct 2026. \nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-108360 exists.\n\nAffected packages and fixed versions:\n- phpoffice/phpspreadsheet (Packagist): affected all versions; fixed in 1.30.7\n- phpoffice/phpspreadsheet (Packagist): affected all versions; fixed in 1.30.7\n- phpoffice/phpspreadsheet (Packagist): affected from 2.0.0; fixed in 2.1.19\n- phpoffice/phpspreadsheet (Packagist): affected from 2.0.0; fixed in 2.1.19\n- phpoffice/phpspreadsheet (Packagist): affected from 2.2.0; fixed in 2.4.8\n- phpoffice/phpspreadsheet (Packagist): affected from 2.2.0; fixed in 2.4.8\n- phpoffice/phpspreadsheet (Packagist): affected from 3.3.0; fixed in 3.10.8\n- phpoffice/phpspreadsheet (Packagist): affected from 3.3.0; fixed in 3.10.8\n- phpoffice/phpspreadsheet (Packagist): affected from 4.0.0; fixed in 5.10.0\n- phpoffice/phpspreadsheet (Packagist): affected from 4.0.0; fixed in 5.10.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-108360/ (Markdown: https://insights.sbomify.com/CVE-2026-108360/index.md)","id":"CVE-2026-108360","markdown":"https://insights.sbomify.com/CVE-2026-108360/index.md","name":"CVE-2026-108360","record":{"aliases":["GHSA-2phh-27fw-q4gc"],"analysis":null,"analysis_generated_by":null,"assigner":"GitHub_M","cpe":[],"cvss":{"score":6.4,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"},{"id":"CWE-863","name":"Incorrect Authorization"}],"description":"PhpSpreadsheet is a pure PHP library for reading and writing spreadsheet files. Prior to 1.30.7, 2.1.19, 2.4.8, 3.10.8, and 5.10.0, Worksheet\\Drawing::setPath validates only the initial external-image URL with setIsWhitelisted when setAllowExternalImages is enabled. The HTTP stream context permits PHP to follow a redirect without applying the callback to the redirected URL, so a permitted image host can redirect the server to an internal address and cause a blind GET request. The response body is not returned to the attacker because the reader validates the downloaded content as an image and removes the temporary file, but internal GET-driven endpoints, network reachability, and cloud metadata endpoints may be reached. This issue is fixed in versions 1.30.7, 2.1.19, 2.4.8, 3.10.8, and 5.10.0.","ecosystems":["Packagist"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"PhpSpreadsheet: SSRF whitelist bypass via unre-validated HTTP redirect in Drawing::setPath external image loading","id":"CVE-2026-108360","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":null,"year":"2026"},"n_packages":10,"n_references":11,"next":{"headline":"Privasys Intra-handshake attested TLS implementation is vulnerable to TOCTOU Attacks","id":"CVE-2026-108361"},"packages":[{"ecosystem":"Packagist","fixed":["1.30.7"],"introduced":["0"],"last_affected":[],"package":"phpoffice/phpspreadsheet","purl":null,"source":"GHSA-2phh-27fw-q4gc"},{"ecosystem":"Packagist","fixed":["1.30.7"],"introduced":["0"],"last_affected":[],"package":"phpoffice/phpspreadsheet","purl":"pkg:composer/phpoffice/phpspreadsheet","source":"GHSA-2phh-27fw-q4gc"},{"ecosystem":"Packagist","fixed":["2.1.19"],"introduced":["2.0.0"],"last_affected":[],"package":"phpoffice/phpspreadsheet","purl":null,"source":"GHSA-2phh-27fw-q4gc"},{"ecosystem":"Packagist","fixed":["2.1.19"],"introduced":["2.0.0"],"last_affected":[],"package":"phpoffice/phpspreadsheet","purl":"pkg:composer/phpoffice/phpspreadsheet","source":"GHSA-2phh-27fw-q4gc"},{"ecosystem":"Packagist","fixed":["2.4.8"],"introduced":["2.2.0"],"last_affected":[],"package":"phpoffice/phpspreadsheet","purl":null,"source":"GHSA-2phh-27fw-q4gc"},{"ecosystem":"Packagist","fixed":["2.4.8"],"introduced":["2.2.0"],"last_affected":[],"package":"phpoffice/phpspreadsheet","purl":"pkg:composer/phpoffice/phpspreadsheet","source":"GHSA-2phh-27fw-q4gc"},{"ecosystem":"Packagist","fixed":["3.10.8"],"introduced":["3.3.0"],"last_affected":[],"package":"phpoffice/phpspreadsheet","purl":null,"source":"GHSA-2phh-27fw-q4gc"},{"ecosystem":"Packagist","fixed":["3.10.8"],"introduced":["3.3.0"],"last_affected":[],"package":"phpoffice/phpspreadsheet","purl":"pkg:composer/phpoffice/phpspreadsheet","source":"GHSA-2phh-27fw-q4gc"},{"ecosystem":"Packagist","fixed":["5.10.0"],"introduced":["4.0.0"],"last_affected":[],"package":"phpoffice/phpspreadsheet","purl":null,"source":"GHSA-2phh-27fw-q4gc"},{"ecosystem":"Packagist","fixed":["5.10.0"],"introduced":["4.0.0"],"last_affected":[],"package":"phpoffice/phpspreadsheet","purl":"pkg:composer/phpoffice/phpspreadsheet","source":"GHSA-2phh-27fw-q4gc"}],"prev":{"headline":"PhpSpreadsheet ODS Reader: Unbounded number-rows-repeated → CPU \u0026 Memory Exhaustion (DoS)","id":"CVE-2026-108359"},"products":["PhpSpreadsheet"],"published":"2026-10-22","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-10-29","vendors":["PHPOffice"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2026-108360/"}