{"answers":{"affected":"10 open source packages ship an affected version, including phpoffice/phpspreadsheet.","exploited":"There is no known exploitation of CVE-2026-108358 in the wild and no public exploit code.","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-108358 is a high-severity vulnerability in PHPOffice PhpSpreadsheet, published on 22 Oct 2026."},"fix_prompt":"Check this codebase for CVE-2026-108358 and fix it if it is affected.\n\nWhat it is: CVE-2026-108358 is a high-severity vulnerability in PHPOffice PhpSpreadsheet, published on 22 Oct 2026. \nExploitation: There is no known exploitation of CVE-2026-108358 in the wild and no public exploit code.\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-108358/ (Markdown: https://insights.sbomify.com/CVE-2026-108358/index.md)","id":"CVE-2026-108358","markdown":"https://insights.sbomify.com/CVE-2026-108358/index.md","name":"CVE-2026-108358","record":{"aliases":["CLSA-2026-1793283095","GHSA-3x94-m842-937c"],"analysis":null,"analysis_generated_by":null,"assigner":"GitHub_M","cpe":[],"cvss":{"score":8.8,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:H/SC:L/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-776","name":"Improper Restriction of Recursive Entity References in DTDs"},{"id":"CWE-611","name":"Improper Restriction of XML External Entity Reference"}],"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, XmlScanner::scan in src/PhpSpreadsheet/Reader/Security/XmlScanner.php uses a DOCTYPE detection pattern that accounts for NUL-byte interleaving but not ISO-2022 escape sequences in XLSX XML parts. The escape sequences prevent the scanner from matching the declaration, and XML charset normalization then removes the escape bytes before parsing, exposing a valid DOCTYPE and entity definitions. Processing an attacker-controlled XLSX can therefore cause entity-expansion denial of service on supported PHP versions and can permit local file access or SSRF on PHP before 8.0 or when LIBXML_NOENT is enabled. 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":"none_known"},"has_fix":true,"headline":"PhpSpreadsheet: XmlScanner Bypass via ISO-2022 Escape Sequences Allows XXE and Denial of Service","id":"CVE-2026-108358","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":null,"year":"2026"},"n_packages":10,"n_references":11,"next":{"headline":"PhpSpreadsheet ODS Reader: Unbounded number-rows-repeated → CPU \u0026 Memory Exhaustion (DoS)","id":"CVE-2026-108359"},"packages":[{"ecosystem":"Packagist","fixed":["1.30.7"],"introduced":["0"],"last_affected":[],"package":"phpoffice/phpspreadsheet","purl":null,"source":"GHSA-3x94-m842-937c"},{"ecosystem":"Packagist","fixed":["1.30.7"],"introduced":["0"],"last_affected":[],"package":"phpoffice/phpspreadsheet","purl":"pkg:composer/phpoffice/phpspreadsheet","source":"GHSA-3x94-m842-937c"},{"ecosystem":"Packagist","fixed":["2.1.19"],"introduced":["2.0.0"],"last_affected":[],"package":"phpoffice/phpspreadsheet","purl":null,"source":"GHSA-3x94-m842-937c"},{"ecosystem":"Packagist","fixed":["2.1.19"],"introduced":["2.0.0"],"last_affected":[],"package":"phpoffice/phpspreadsheet","purl":"pkg:composer/phpoffice/phpspreadsheet","source":"GHSA-3x94-m842-937c"},{"ecosystem":"Packagist","fixed":["2.4.8"],"introduced":["2.2.0"],"last_affected":[],"package":"phpoffice/phpspreadsheet","purl":null,"source":"GHSA-3x94-m842-937c"},{"ecosystem":"Packagist","fixed":["2.4.8"],"introduced":["2.2.0"],"last_affected":[],"package":"phpoffice/phpspreadsheet","purl":"pkg:composer/phpoffice/phpspreadsheet","source":"GHSA-3x94-m842-937c"},{"ecosystem":"Packagist","fixed":["3.10.8"],"introduced":["3.3.0"],"last_affected":[],"package":"phpoffice/phpspreadsheet","purl":null,"source":"GHSA-3x94-m842-937c"},{"ecosystem":"Packagist","fixed":["3.10.8"],"introduced":["3.3.0"],"last_affected":[],"package":"phpoffice/phpspreadsheet","purl":"pkg:composer/phpoffice/phpspreadsheet","source":"GHSA-3x94-m842-937c"},{"ecosystem":"Packagist","fixed":["5.10.0"],"introduced":["4.0.0"],"last_affected":[],"package":"phpoffice/phpspreadsheet","purl":null,"source":"GHSA-3x94-m842-937c"},{"ecosystem":"Packagist","fixed":["5.10.0"],"introduced":["4.0.0"],"last_affected":[],"package":"phpoffice/phpspreadsheet","purl":"pkg:composer/phpoffice/phpspreadsheet","source":"GHSA-3x94-m842-937c"}],"prev":{"headline":"PhpSpreadsheet: XmlScanner Bypass via Double-Encoded unentity() TOCTOU Allows XXE and Denial of Service","id":"CVE-2026-108357"},"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":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-10-23","vendors":["PHPOffice"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2026-108358/"}