Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit crafted HTTP request with traversal path
-
DeliveryApplication passes path to Workbook.addImage()
-
ExploitLibrary reads targeted file from filesystem
-
ExecutionFile contents embedded in generated workbook
-
PersistWorkbook returned in HTTP response
-
ImpactAttacker extracts sensitive data from blob
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V5 - File Handling File name/path control
|
| Exploitation Conditions | Exploitation requires that the target application accepts user-controlled input and passes it without sanitization to the exceljs-hardened Workbook.addImage() function. The Node.js process must have read access to the targeted file (e.g., /etc/passwd, /proc/self/environ, application secret files, or private keys). No non-default library configuration or feature flag is required - the flaw exists in the default behavior of the addImage() function itself. Exploitation is blocked when the calling application independently validates and restricts file paths prior to calling addImage(), or when the addImage() function is never invoked with user-supplied input. Application-layer authentication, if present, would limit exploitation to authenticated users; the library itself enforces no authentication, consistent with the CVSS PR:N rating. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N) scores 8.7, reflecting a network-exploitable flaw with no attack complexity, no privilege requirement, and no user interaction at the library level. These metrics correctly describe the library's own behavior; real-world exploitability is further gated by whether the consuming application exposes addImage() to user-controlled input - a design decision that varies widely across deployments. EPSS data was not provided, and this CVE does not appear in CISA KEV, indicating no confirmed widespread active exploitation. No public exploit code has been identified at time of analysis. The confidentiality impact is high and targeted - arbitrary file reads against Node.js process-readable paths can yield private keys, environment variables, database credentials, and application secrets - while integrity and availability are unaffected. The absence of KEV listing and EPSS data limits automated prioritization; defenders should assess whether their applications pipe user input into addImage() and, if so, treat this as an urgent remediation given the trivial exploitation path once that condition is satisfied. |
| Exploit ScenarioDerived | An attacker submits a crafted HTTP request to a web application that generates Excel workbooks containing embedded images, supplying a filename such as '../../../../etc/passwd' or '/proc/self/environ' as the image source. The application passes this value without sanitization to Workbook.addImage(), causing the Node.js process to read the target file and embed its raw contents in the returned workbook. The attacker downloads the file and extracts the sensitive content from the embedded image blob. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 24, 2026
Path traversal in exceljs-hardened before 5.0.0 allows unauthenticated attackers to read arbitrary files from the server filesystem by supplying crafted paths to the Workbook.addImage() function, which performs no input validation before passing the value to Node.js file system APIs. Any Node.js application that exposes this function to user-controlled input is at risk of exposing secrets, credentials, configuration files, and any other content readable by the process. No public exploit has been identified at time of analysis; vendor-released patch is available as version 5.0.0.
RemediationAI
Upgrade to exceljs-hardened version 5.0.0 or later, which resolves this vulnerability per the GitHub security advisory GHSA-m8mg-8574-gm3m at https://github.com/mateocallec/exceljs-hardened/security/advisories/GHSA-m8mg-8574-gm3m. If an immediate upgrade is not feasible, the consuming application must independently validate and sanitize all file paths supplied to Workbook.addImage() before invocation: resolve the input path with Node.js path.resolve(), confirm it falls within an explicitly allowed base directory using a startsWith() check, and reject any path containing traversal sequences. This workaround must be implemented at the application layer, introduces ongoing maintenance overhead, and is not a substitute for patching. Upgrading to 5.0.0 is the definitive remediation.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
CWE-73 (External Control of File Name or Path) applies when externally-supplied data is used to construct a file path without adequate sanitization. The Workbook.addImage() method in exceljs-hardened accepts a filename argument and passes it directly to Node.js filesystem APIs, reading the file content and embedding it into the generated .xlsx workbook. The vulnerable logic is traceable to the upstream exceljs v4.4.0 codebase at lib/doc/workbook.js (lines 142-147) and lib/xlsx/xlsx.js (lines 421-429), as cited in the references. An attacker can supply traversal sequences such as '../../../etc/passwd' or absolute paths such as '/run/secrets/api_key' to cause the process to read and embed the target file. The library is a Node.js package and the affected CPE is cpe:2.3:a:exceljs:exceljs:*:*:*:*:*:*:*:*, though the CVE specifically concerns the exceljs-hardened fork maintained by mateocallec.
Know when Exceljs gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Network-exploitable with no privilege requirement or user interaction at the library level; impact is confidentiality-only as the flaw enables arbitrary file reads but not writes or service disruption.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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.
Articles & Coverage 1
Executive ViewAI
exceljs-hardened versions before 5.0.0 contain a path traversal vulnerability in the Workbook.addImage() function that enables unauthenticated attackers to read arbitrary files from the server filesystem, including credentials, secrets, and configuration files. Organizations using affected versions that expose this function to user input face unauthorized disclosure of sensitive data.
Apply vendor patch to exceljs-hardened 5.0.0.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Related Vulnerabilities in exceljs-hardened Multiple Security Vulnerabilities
View all 4An unescaped payload in exceljs <v1.6 allows a possible XSS via cell value when worksheet is displayed in browser. Rated
Parsing an untrusted XLSX workbook with ExcelJS through 4.4.0 can exhaust the Node.js heap and abort the entire process,
Denial of service in ExcelJS through 4.4.0: a crafted XLSX containing a <row> element numbered far beyond Excel's 1,048,
ExcelJS through 4.4.0 can be crashed by a crafted .xlsx workbook whose worksheet col element has an unbounded max value:
Loading a maliciously crafted spreadsheet can abort the entire Node.js process in ExcelJS through 4.4.0: a single define
Loading an attacker-supplied .xlsx workbook with ExcelJS through 4.4.0 can exhaust CPU and memory and terminate the Node
Denial of service in ExcelJS through 4.4.0 lets a remote, unauthenticated attacker stall a Node.js service for seconds a
Heap-exhaustion denial of service in ExcelJS through 4.4.0 lets an unauthenticated attacker crash a Node.js application
ExcelJS through 4.4.0 leaks temporary files and open file descriptors when the streaming WorkbookReader aborts mid-parse
Arbitrary local file read in ExcelJS lets a crafted image filename pull any file the Node.js process can read into a gen
EUVD-2026-64683
GHSA-vw3h-4fh6-vvqq
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB