| Title | PHPOfficeのPhpSpreadsheetにおけるクロスサイトスクリプティングの脆弱性 |
|---|---|
| Summary | PhpSpreadsheetは、スプレッドシートファイルの読み書きを行う純粋なPHPライブラリです。HTMLライターは、セルの書式設定済みの値が元の値と異なる場合にhtmlspecialcharsによるエスケープ処理をスキップします。セルにテキストプレースホルダー@を含むカスタム数値書式があり、さらに追加のリテラル文字(例えば ". @"、"@ "、または"x@")が含まれている場合、フォーマッターは@をセルの値で置き換え、追加の文字を付加するため、書式設定済みの値が元の値と異なり、HTMLエスケープが完全に回避されます。アップロードされたスプレッドシートのセル値と数値書式を制御でき、その後HTMLに変換され他のユーザーに表示される場面では、攻撃者が永続的なクロスサイトスクリプティングを実現する可能性があります。この問題はバージョン5.7.0、3.10.5、2.4.5、2.1.16、および1.30.4で修正されています。 |
| Possible impacts | 当該ソフトウェアが扱う情報の一部が外部に漏れる可能性があります。 また、当該ソフトウェアが扱う情報の一部が書き換えられる可能性があります。 さらに、当該ソフトウェアは停止しません。 そして、この脆弱性を悪用した攻撃により、他のソフトウェアにも影響が及ぶ可能性があります。 |
| Solution | 正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。 |
| Publication Date | May 6, 2026, midnight |
| Registration Date | May 12, 2026, 10:20 a.m. |
| Last Update | May 12, 2026, 10:20 a.m. |
| CVSS3.0 : 警告 | |
| Score | 5.4 |
|---|---|
| Vector | CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| PHPOffice |
| PhpSpreadsheet 2.2.0 以上 2.4.5 未満 |
| PhpSpreadsheet 3.3.0 以上 3.10.5 未満 |
| PhpSpreadsheet 4.0.0 以上 5.7.0 未満 |
| PhpSpreadsheet 1.30.4 未満 |
| PhpSpreadsheet 2.0.0 以上 2.1.16 未満 |
| No | Changed Details | Date of change |
|---|---|---|
| 1 | [2026年05月12日] 掲載 |
May 12, 2026, 10:20 a.m. |
| Summary | PhpSpreadsheet is a pure PHP library for reading and writing spreadsheet files. The HTML writer skips htmlspecialchars escaping when a cell's formatted value differs from the original value. When a cell has a custom number format containing the text placeholder @ along with any additional literal characters (for example ". @", "@ ", or "x@"), the formatter replaces @ with the cell value and adds the extra characters, causing the formatted value to differ from the original and bypassing HTML escaping entirely. An attacker who can control the cell value and number format of an uploaded spreadsheet that is later converted to HTML and displayed to other users can achieve stored cross-site scripting. This issue is fixed in versions 5.7.0, 3.10.5, 2.4.5, 2.1.16, and 1.30.4. |
|---|---|
| Publication Date | May 7, 2026, 7:16 a.m. |
| Registration Date | May 8, 2026, 4:09 a.m. |
| Last Update | May 11, 2026, 11:42 p.m. |
| Configuration1 | or higher | or less | more than | less than | |
| cpe:2.3:a:phpoffice:phpspreadsheet:*:*:*:*:*:*:*:* | 1.30.4 | ||||
| cpe:2.3:a:phpoffice:phpspreadsheet:*:*:*:*:*:*:*:* | 2.0.0 | 2.1.16 | |||
| cpe:2.3:a:phpoffice:phpspreadsheet:*:*:*:*:*:*:*:* | 2.2.0 | 2.4.5 | |||
| cpe:2.3:a:phpoffice:phpspreadsheet:*:*:*:*:*:*:*:* | 3.3.0 | 3.10.5 | |||
| cpe:2.3:a:phpoffice:phpspreadsheet:*:*:*:*:*:*:*:* | 4.0.0 | 5.7.0 | |||