{"answers":{"affected":"4 open source packages ship an affected version, including phpoffice/phpspreadsheet.","exploited":"There is no known exploitation of CVE-2026-108357 in the wild and no public exploit code.","fix":"Upgrade phpoffice/phpspreadsheet to a fixed version for your release line: 3.10.8 or 5.10.0.","what":"CVE-2026-108357 is a high-severity vulnerability in PHPOffice PhpSpreadsheet, published on 22 Oct 2026."},"fix_prompt":"Check this codebase for CVE-2026-108357 and fix it if it is affected.\n\nWhat it is: CVE-2026-108357 is a high-severity vulnerability in PHPOffice PhpSpreadsheet, published on 22 Oct 2026. \nExploitation: There is no known exploitation of CVE-2026-108357 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\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-108357/ (Markdown: https://insights.sbomify.com/CVE-2026-108357/index.md)","id":"CVE-2026-108357","markdown":"https://insights.sbomify.com/CVE-2026-108357/index.md","name":"CVE-2026-108357","record":{"aliases":["GHSA-rxj4-h86g-25gc"],"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. From 3.3.0 until 3.10.8 and 5.10.0, Reader\\Xml passes stored SpreadsheetML XML through XmlScanner::scan in Xml::canRead and Xml::trySimpleXMLLoadStringPrivate, while Xml::unentity decodes numeric entities only after each DOCTYPE pattern check. A double-encoded less-than character is reduced by the first callback to another encoded character and by the second callback to a literal less-than sign, so SimpleXML receives an unchecked DOCTYPE and entity declaration. Processing attacker-controlled SpreadsheetML XML can cause entity-expansion denial of service 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 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 Double-Encoded unentity() TOCTOU Allows XXE and Denial of Service","id":"CVE-2026-108357","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":null,"year":"2026"},"n_packages":4,"n_references":5,"next":{"headline":"PhpSpreadsheet: XmlScanner Bypass via ISO-2022 Escape Sequences Allows XXE and Denial of Service","id":"CVE-2026-108358"},"packages":[{"ecosystem":"Packagist","fixed":["3.10.8"],"introduced":["3.3.0"],"last_affected":[],"package":"phpoffice/phpspreadsheet","purl":null,"source":"GHSA-rxj4-h86g-25gc"},{"ecosystem":"Packagist","fixed":["3.10.8"],"introduced":["3.3.0"],"last_affected":[],"package":"phpoffice/phpspreadsheet","purl":"pkg:composer/phpoffice/phpspreadsheet","source":"GHSA-rxj4-h86g-25gc"},{"ecosystem":"Packagist","fixed":["5.10.0"],"introduced":["4.0.0"],"last_affected":[],"package":"phpoffice/phpspreadsheet","purl":null,"source":"GHSA-rxj4-h86g-25gc"},{"ecosystem":"Packagist","fixed":["5.10.0"],"introduced":["4.0.0"],"last_affected":[],"package":"phpoffice/phpspreadsheet","purl":"pkg:composer/phpoffice/phpspreadsheet","source":"GHSA-rxj4-h86g-25gc"}],"prev":{"headline":"Password Reset Code Accessible in User Listing API","id":"CVE-2026-108337"},"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-108357/"}