{"id":"CVE-2025-23210","published":"2025-02-03T21:14:57Z","modified":"2025-02-04T15:33:39Z","title":"Bypass XSS sanitizer using the javascript protocol and special characters in phpoffice/phpspreadsheet","vendor":"PHPOffice","product":"PhpSpreadsheet","tier":"tail","description":{"text":"phpoffice/phpspreadsheet is a pure PHP library for reading and writing spreadsheet files. Affected versions have been found to have a Bypass of the Cross-site Scripting (XSS) sanitizer using the javascript protocol and special characters. This issue has been addressed in versions 3.9.0, 2.3.7, 2.1.8, and 1.29.9. Users are advised to upgrade. There are no known workarounds for this vulnerability.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.8,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00433,"percentile":0.38046,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/PHPOffice/PhpSpreadsheet/security/advisories/GHSA-r57h-547h-w24f","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/PHPOffice/PhpSpreadsheet/commit/cde2926a9e2baf146783f8fd1771bbed7d1dc7b3","tags":["x_refsource_MISC"]}],"priority":{"score":11.0,"factors":[{"name":"EPSS percentile","points":7.61},{"name":"CVSS severity","points":3.36}]},"vendorSlug":"phpoffice","affectedVersions":[{"vendor":"PHPOffice","product":"PhpSpreadsheet","versions":[">= 3.0.0, < 3.9.0",">= 2.2.0, < 2.3.7",">= 2.0.0, < 2.1.8","< 1.29.9"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-02-04T15:33:22.331092Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"phpoffice/phpspreadsheet","vulnerableRanges":[">=3.0.0, <3.9.0","<1.29.9",">=2.2.0, <2.3.7",">=2.0.0, <2.1.8"],"patched":["3.9.0","1.29.9","2.3.7","2.1.8"],"from":["GHSA-r57h-547h-w24f"],"provenance":"source"},{"ecosystem":"Packagist","package":"phpoffice/phpexcel","vulnerableRanges":["<=1.8.2"],"patched":[],"from":["GHSA-r57h-547h-w24f"],"provenance":"source"}],"summary":{"text":"A flaw in PhpSpreadsheet, PHPOffice's pure PHP library for reading and writing spreadsheet files, lets the XSS sanitizer be bypassed through the javascript protocol combined with special characters. An attacker with low privileges and network access can craft content that gets past the sanitizer, but exploitation requires active user interaction, and the impact is limited to confidentiality and integrity with no availability effect.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:03:08Z"},"euvd":{"id":"EUVD-2025-0222","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-phpoffice-phpspreadsheet-cve-2018-19277","parents":[{"from":"CVE-2024-45292","to":"CVE-2025-23210","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/PhpSpreadsheet/Writer/Html.php"],"commits":["https://github.com/PHPOffice/PhpSpreadsheet/commit/392dd08c5569b623060784e1333454d64df1f03d","https://github.com/PHPOffice/PhpSpreadsheet/commit/8b9b378ecdc603234a34aab3b293d2cdc8e9210e","https://github.com/PHPOffice/PhpSpreadsheet/commit/cde2926a9e2baf146783f8fd1771bbed7d1dc7b3"],"basis":"shared function","functions":["generateRow"]},{"kind":"similar","provenance":"machine","score":0.51,"basis":"same product + CWE + description similarity"}]},{"from":"CVE-2024-56410","to":"CVE-2025-23210","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/PhpSpreadsheet/Writer/Html.php"],"commits":["https://github.com/PHPOffice/PhpSpreadsheet/commit/45052f88e04c735d56457a8ffcdc40b2635a028e","https://github.com/PHPOffice/PhpSpreadsheet/commit/cde2926a9e2baf146783f8fd1771bbed7d1dc7b3"],"basis":"shared function","functions":["generateRow"]}]},{"from":"CVE-2024-56411","to":"CVE-2025-23210","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/PhpSpreadsheet/Writer/Html.php"],"commits":["https://github.com/PHPOffice/PhpSpreadsheet/commit/45052f88e04c735d56457a8ffcdc40b2635a028e","https://github.com/PHPOffice/PhpSpreadsheet/commit/cde2926a9e2baf146783f8fd1771bbed7d1dc7b3"],"basis":"shared function","functions":["generateRow"]}]},{"from":"CVE-2024-56412","to":"CVE-2025-23210","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/PhpSpreadsheet/Writer/Html.php"],"commits":["https://github.com/PHPOffice/PhpSpreadsheet/commit/45052f88e04c735d56457a8ffcdc40b2635a028e","https://github.com/PHPOffice/PhpSpreadsheet/commit/cde2926a9e2baf146783f8fd1771bbed7d1dc7b3"],"basis":"shared function","functions":["generateRow"]},{"kind":"similar","provenance":"machine","score":0.51,"basis":"same product + CWE + description similarity"}]}],"children":[{"from":"CVE-2025-23210","to":"CVE-2026-108357","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/PhpSpreadsheet/Worksheet/Drawing.php"],"commits":["https://github.com/PHPOffice/PhpSpreadsheet/commit/cde2926a9e2baf146783f8fd1771bbed7d1dc7b3","https://github.com/PHPOffice/PhpSpreadsheet/commit/89f455c133e1a7e2d4abfadc43ce29eb7450d781","https://github.com/PHPOffice/PhpSpreadsheet/commit/980b5c294493856f1a25754f1e8a1d2185b93738"],"basis":"shared function","functions":["setPath"]}]},{"from":"CVE-2025-23210","to":"CVE-2026-108358","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/PhpSpreadsheet/Worksheet/Drawing.php"],"commits":["https://github.com/PHPOffice/PhpSpreadsheet/commit/cde2926a9e2baf146783f8fd1771bbed7d1dc7b3","https://github.com/PHPOffice/PhpSpreadsheet/commit/299993894dce37aa3b64aa23e9a3f4bb77ab0e66","https://github.com/PHPOffice/PhpSpreadsheet/commit/89f455c133e1a7e2d4abfadc43ce29eb7450d781"],"basis":"shared function","functions":["setPath"]}]},{"from":"CVE-2025-23210","to":"CVE-2026-108359","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/PhpSpreadsheet/Worksheet/Drawing.php"],"commits":["https://github.com/PHPOffice/PhpSpreadsheet/commit/cde2926a9e2baf146783f8fd1771bbed7d1dc7b3","https://github.com/PHPOffice/PhpSpreadsheet/commit/299993894dce37aa3b64aa23e9a3f4bb77ab0e66","https://github.com/PHPOffice/PhpSpreadsheet/commit/2de29384aa11223ee08136c0e6a9e9981bc1a2eb"],"basis":"shared function","functions":["setPath"]}]},{"from":"CVE-2025-23210","to":"CVE-2026-108360","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/PhpSpreadsheet/Worksheet/Drawing.php"],"commits":["https://github.com/PHPOffice/PhpSpreadsheet/commit/cde2926a9e2baf146783f8fd1771bbed7d1dc7b3","https://github.com/PHPOffice/PhpSpreadsheet/commit/299993894dce37aa3b64aa23e9a3f4bb77ab0e66","https://github.com/PHPOffice/PhpSpreadsheet/commit/94590951d76a250a5fc1ecf69a0b3f7439a9af49"],"basis":"shared function","functions":["setPath"]}]}],"packageHistory":[{"cve":"CVE-2024-56411","published":"2025-01-03","fixed":"3.7.0","kev":false},{"cve":"CVE-2024-56412","published":"2025-01-03","fixed":"3.7.0","kev":false},{"cve":"CVE-2025-22131","published":"2025-01-20","fixed":"3.8.0","kev":false,"link":{"from":"CVE-2025-22131","to":"CVE-2025-23210","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:phpoffice/phpspreadsheet","fromFixed":"3.8.0","toFixed":"3.9.0","daysApart":14},{"kind":"version-step","provenance":"source","package":"Packagist:phpoffice/phpspreadsheet","fromFixed":"2.3.6","toFixed":"2.3.7","daysApart":14},{"kind":"same-code","provenance":"machine","files":["src/PhpSpreadsheet/Writer/Html.php"],"commits":["https://github.com/PHPOffice/PhpSpreadsheet/commit/4088381ccfaf241d7d42c333de0dc8c98e338743","https://github.com/PHPOffice/PhpSpreadsheet/commit/cde2926a9e2baf146783f8fd1771bbed7d1dc7b3"],"basis":"shared file"}]}},{"cve":"CVE-2025-23210","published":"2025-02-03","fixed":"3.9.0","kev":false},{"cve":"CVE-2025-54370","published":"2025-08-25","fixed":"5.0.0","kev":false,"link":{"from":"CVE-2025-23210","to":"CVE-2025-54370","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:phpoffice/phpspreadsheet","fromFixed":"3.9.0","toFixed":"3.10.0","daysApart":203},{"kind":"version-step","provenance":"source","package":"Packagist:phpoffice/phpspreadsheet","fromFixed":"2.1.8","toFixed":"2.1.12","daysApart":203}]}},{"cve":"CVE-2026-34084","published":"2026-05-05","fixed":"5.6.0","kev":false},{"cve":"CVE-2026-35453","published":"2026-05-05","fixed":"5.7.0","kev":false}],"package":"Packagist:phpoffice/phpspreadsheet"}}