AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
exceljsの4.4.0までのバージョンには、Workbook.addImage()関数でファイルパスを検証しない脆弱性があります。攻撃者は任意のパスを指定して、Node.jsプロセスが読み取れるファイルをワークブックに埋め込むことができます。修正版の情報は現時点で確認できていないため、最新の情報を確認してください。
exceljs-hardenedのWorkbook.addImage()関数にはパストラバーサルの脆弱性があります。
exceljs-hardenedバージョン5.0.0未満
攻撃者が任意のファイルを読み取れる可能性があるため、システムの情報漏洩リスクが高まります。
バージョン5.0.0にアップデートすることで、この脆弱性を修正できます。
一時的にファイルパスのバリデーションを自前で実装することが推奨されます。
コードベースでWorkbook.addImage()関数の使用箇所を調査し、バリデーションが適用されているか確認します。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| exceljsexceljs |
≤ 4.4.0→ Not listed |
Not listed |
This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.
Original description The description as published by the source.
exceljs through 4.4.0 contains a path traversal vulnerability in the Workbook.addImage() function that fails to validate file paths. Attackers can supply arbitrary file paths to read any file accessible to the Node.js process and embed it in the generated workbook.
Source: NIST National Vulnerability Database NVD GitHub Advisory
References
- advisory github.com
- advisory vulncheck.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- web github.com
- web github.com
- web github.com
- web npmjs.com