CVE-2026-78208

exceljs through 4.4.0 Path Traversal via Unvalidated addImage filename

Published Aug 24, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The vulnerability originates from the Workbook.addImage() function in exceljs, which fails to validate the file path supplied by the caller. By providing arbitrary file paths, an attacker can cause the library to read any file the Node.js process can access and embed its contents into the generated workbook. This flaw, categorized as CWE-73, allows local file read and potential information disclosure, as sensitive files such as configuration or credential files could be exposed when the workbook is served or opened.

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 the EPSS score is low (<1%), the high CVSS score indicates potential for significant impact if the flaw is exploited. 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. Given the low EPSS, exploitation is likely to be rare, though the flaw could still be leveraged if attacker‑controlled input can reach the addImage call.

Remediation

No solution or workaround provided in the CVE record.

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 29, 2026 at 13:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
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. 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.
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

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'}

Weaknesses
  • CWE-73

    External Control of File Name or Path

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 8, 2026, 2:09 PM
Reserved
Aug 24, 2026, 12:15 AM
Status
Deferred
Published
Aug 24, 2026, 1:16 AM
Modified
Oct 14, 2026, 1:10 PM