Description
exceljs-hardened before 5.0.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.
Published: 2026-08-24
Score: 8.7 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability arises from the Workbook.addImage() function in exceljs, which does not validate the filename supplied by the caller. This allows an attacker to supply a crafted path such as "../../../../etc/passwd" and cause the library to read and embed the contents of that file into the generated workbook. The flaw is categorized as CWE-73 and results in local file read and potential information disclosure. An attacker who can supply the filename can read any file that the Node.js process has permission to access, potentially leaking sensitive configuration, credentials, or other confidential data.

Affected Systems

The affected product is exceljs and the hardened variant of exceljs prior to version 5.0.0. The vulnerability is present in releases up through version 4.4.0. Any project that imports or uses the exceljs library, directly or via a hardened wrapper, before upgrading to 5.0.0 or later, could be affected.

Risk and Exploitability

The CVSS score of 8.7 marks this as a high‑severity flaw. Although an EPSS score is not provided, the absence of a known public exploit does not mitigate the risk; the flaw can be leveraged if an attacker can control the filename argument passed to addImage. This typically requires that the attacker has some influence over the input processed by the Node.js application or that the application itself is compromised. The Node.js process must have read access to the target file, which is usually the case for many deployments. Because the flaw can read arbitrary files, the impact on confidentiality can be significant, and the lack of a KEV listing does not mean it is safe. The safest assumption is that the vulnerability poses a high likelihood of exploitation in environments where attacker-controlled input can reach the addImage call.

Generated by OpenCVE AI on August 24, 2026 at 01:20 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to exceljs 5.0.0 or later, or use the hardened package v5.0.0 or newer to remove the flaw.
  • Prior to calling Workbook.addImage, validate or sanitize the filename by rejecting relative paths, enforcing a whitelist of allowed directories, and ensuring only trusted paths are used.
  • Configure the Node.js process to run with the minimum file system permissions required, restricting read access to sensitive files such as /etc/passwd or application configuration directories.

Generated by OpenCVE AI on August 24, 2026 at 01:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 24 Aug 2026 00:45:00 +0000

Type Values Removed Values Added
Description exceljs-hardened before 5.0.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.
Title exceljs through 4.4.0 Path Traversal via Unvalidated addImage filename
First Time appeared Exceljs Project
Exceljs Project exceljs
Weaknesses CWE-73
CPEs cpe:2.3:a:exceljs_project:exceljs:*:*:*:*:*:*:*:*
Vendors & Products Exceljs Project
Exceljs Project exceljs
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}

cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N'}


Subscriptions

Exceljs Project Exceljs
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-24T00:30:47.795Z

Reserved: 2026-08-24T00:15:01.656Z

Link: CVE-2026-78208

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-24T01:16:58.280

Modified: 2026-08-24T01:16:58.280

Link: CVE-2026-78208

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-24T01:30:04Z

Weaknesses
  • CWE-73

    External Control of File Name or Path