ExcelJS through 4.4.0 Arbitrary File Read via WorkbookWriter addImage Filename
- State
- Published
- Severity
- 8.7 High
- Published
- Nov 13, 2026
- Updated
- Nov 13, 2026
- Reserved
- Nov 13, 2026
Description
ExcelJS through 4.4.0 contains an arbitrary file read vulnerability in the streaming WorkbookWriter that allows attackers to read local files by supplying crafted image filenames to addImage. Attackers can inject ../ path segments into user-controlled image paths, causing addMedia to embed any file readable by the Node.js process under xl/media in the generated workbook.
| Product | Versions |
|---|---|
| exceljs exceljs | 4.4.0 and earlier Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 8.7 High | VulnCheck | |
| 3.1 | 7.5 High | VulnCheck |
Weaknesses
- CWE-73 External Control of File Name or Path
References
- https://github.com/exceljs/exceljsProduct Page
- GitHub Security Advisory (GHSA-f9m8-8qmf-qq29)Third-Party Advisory
- https://github.com/exceljs/exceljs/blob/v4.4.0/lib/stream/xlsx/workbook-writer.js#L230-L237Technical Details
- https://github.com/exceljs/exceljs/blob/v4.4.0/lib/stream/xlsx/workbook-writer.js#L124-L130Technical Details
- VulnCheck Advisory: ExcelJS through 4.4.0 Arbitrary File Read via WorkbookWriter addImage FilenameThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.