Skip to main content

ExcelJS CVE-2026-128347

| EUVDEUVD-2026-125152 HIGH
External Control of File Name or Path (CWE-73)
2026-11-13 VulnCheck GHSA-jf4h-9vf8-6gmp
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Supply crafted image filename to app
  2. Delivery
    Inject ../ traversal into addImage call
  3. Exploit
    Streaming writer reads arbitrary local file
  4. Execution
    Content embedded under xl/media in workbook
  5. Impact
    Attacker opens workbook and extracts file

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 the host application to use the streaming stream.xlsx.WorkbookWriter and pass a user-controlled value into the filename property of addImage; the non-streaming Workbook#addImage is NOT vulnerable because it validates against parent-directory traversal. The attacker-supplied filename must contain ../ segments pointing at a target file, and disclosure is limited to files readable by the Node.js process. The embedded file content is only recovered if the generated workbook is returned to or accessible by the attacker. No authentication is required at the library call itself (PR:N), but the practical limiting factor is that the application must expose user-influenced image paths to the streaming writer - applications that do not route untrusted input to addImage are not exploitable regardless of the high base score.

Impact

Multiple signals point to a genuine but context-dependent priority. The CVSS 4.0 vector (CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N, base 8.7 High) credits network reach with no privileges or user interaction, but the impact is confidentiality-only (VC:H, VI:N, VA:N) - this is an arbitrary file-read/information-disclosure issue, not code execution or integrity loss, so the 'Code Injection' tag overstates the mechanism. No EPSS score and no KEV entry are present in the supplied data, so there is no evidence of active exploitation; CISA KEV status is NO. A public proof-of-concept does exist in the GHSA advisory (working JavaScript that embeds /etc/hostname into the output workbook), which raises practical exploitability above a theoretical finding. The vuln.today Decision label is 'this_week', consistent with a serious-but-not-emergency triage. The most important caveat: ExcelJS is a library, so the PR:N/UI:N metrics describe the flawed call in isolation - real-world exploitation requires a host application that uses the streaming stream.xlsx.WorkbookWriter and routes user-controlled input into addImage's filename option. The non-streaming Workbook#addImage already rejects traversal, so only the streaming path is affected. Net: a real priority for teams whose applications expose user-influenced image paths to the streaming writer, lower real risk elsewhere despite the high base score.

Exploit ScenarioDerived

An application that generates spreadsheets with ExcelJS's streaming WorkbookWriter lets users influence an image's filename (e.g. an upload path or report field) and passes it to addImage. An attacker supplies a filename such as '../../../../etc/hostname', causing addMedia to read that local file and embed its contents as xl/media/image0.png in the delivered workbook, which the attacker then opens to recover the file. A working PoC demonstrating exactly this is published in the GHSA advisory.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 13, 2026

Arbitrary local file read in ExcelJS lets a crafted image filename pull any file the Node.js process can read into a generated workbook: the streaming stream.xlsx.WorkbookWriter#addImage hands the path to the ZIP writer without a traversal check, which then stores that file's contents under xl/media/ inside the .xlsx output. All ExcelJS versions through 4.4.0 carry the flaw, but exploitation is limited to applications that route user-influenced image paths into the streaming writer - the non-streaming Workbook#addImage performs a parent-directory traversal check and rejects the identical input. The upstream GHSA publishes a proof-of-concept that embeds /etc/hostname into a workbook, the issue is tracked at this_week priority, and no CISA KEV entry or confirmed active exploitation is reported.

RemediationAI

No upstream ExcelJS release fixing this is identified in the available data; the only concrete fixed version supplied is 5.1.0 for the hardened fork npm/exceljs-hardened (versions ≤ 5.0.2 vulnerable), documented in GHSA-f9m8-8qmf-qq29, so teams running that fork should upgrade to 5.1.0. For upstream ExcelJS through 4.4.0, the nearest grounded workaround is to stop passing attacker-influenced paths into the streaming writer: validate the filename so it contains no '..' segments and no absolute prefix, and resolve it against a fixed, allowed media directory before calling addImage, since the non-streaming Workbook#addImage already applies exactly this parent-directory traversal check and rejects the crafted input - switching to the non-streaming writer is safe from this flaw but costs the memory advantages of streaming very large workbooks. Where user-supplied image identifiers are unavoidable, map them to a server-side fixed filename or store id rather than accepting a path, and ensure generated workbooks are never returned to untrusted users with embedded arbitrary local content; applications that never route untrusted input to addImage need no change. Vendor and reference advisories: https://github.com/mateocallec/exceljs-hardened/security/advisories/GHSA-f9m8-8qmf-qq29 and https://www.vulncheck.com/advisories/exceljs-through-4.4.0-arbitrary-file-read-via-workbookwriter-addimage-filename.

Affected VersionsENISA

exceljs 0 ≤4.4.0

Affected Packages

euvd exceljs no fix

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

ExcelJS is a Node.js library for reading and writing XLSX files, which are ZIP containers of Office Open XML parts; images added to a workbook are written by addMedia into the archive as xl/media/imageN.<ext>. The library exposes two write paths: the non-streaming Workbook and the streaming stream.xlsx.WorkbookWriter used for large workbooks. In the non-streaming implementation, addImage checks the supplied filename for parent-directory traversal and throws a 'parent-directory traversal' error, but the streaming writer omits that check and passes the raw path straight to the ZIP writer, which opens and embeds the file. The root cause is CWE-73 (external control of file name or path), also classified as CWE-22 in the GHSA ('Missing path traversal check in the streaming writer's addImage'), i.e. no canonicalisation or containment check on a path that may derive from untrusted input. The referenced code is in lib/stream/xlsx/workbook-writer.js (lines 124-130 and 230-237) at tag v4.4.0. Impact is confidentiality-only: an attacker who controls the filename value gains read access to any file the Node.js process can open, and the disclosure only materialises if the resulting workbook is returned to or reachable by that attacker. The assessor notes the trigger conditions explicitly: a user-controlled value reaching addImage on the streaming writer, a path containing ../ segments that resolves to a readable target, and the generated document coming back to the attacker; authentication requirements at the library call are unconfirmed by the supplied vector data, and the practical gate is whether the host application exposes user-influenced image paths to this API.

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

Vendor (VulnCheck) PRIMARY 8.7 HIGH
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
vuln.today AI 7.5 HIGH

Network-reachable library call with no privileges or interaction yields arbitrary read of local files (C:H); no integrity or availability impact, so I:N/A:N and scope unchanged.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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.

Technical POC Analysis

CWE-73 (External Control of File Name or Path), which the advisory also files as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory).

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

A high-severity vulnerability in the widely used ExcelJS library (versions through 4.4.0) allows attackers to read arbitrary files from the server when applications use the streaming writer with user-influenced image paths. This poses a significant data breach risk for any organization generating Excel reports with user-supplied content, as sensitive configuration files or credentials could be exfiltrated. Leadership should prioritize remediation because the library is common in Node.js report-generation pipelines and the flaw could lead to unauthorized access to critical internal data.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include: enforce strict validation of image filenames to block path traversal sequences (e.g., '../'), use a whitelist of allowed image directories, switch to the non-streaming Workbook#addImage API which performs a parent-directory traversal check, and run Node.js processes with minimal file system permissions to limit exposure.

Threat Intelligence Overview

EPSS Score
0.5%
Top 56% exploitable
Prevalence
High
very popular npm Excel library, but flaw needs app wiring user input to streaming addImage
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.5%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

45
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

CVE-2018-16459 MEDIUM POC
6.1 Sep 06

An unescaped payload in exceljs <v1.6 allows a possible XSS via cell value when worksheet is displayed in browser. Rated

CVE-2026-78207 CRITICAL
9.3 Aug 24

Prototype pollution in exceljs-hardened before 5.0.0 lets a remote attacker corrupt Object.prototype by feeding parsed J

CVE-2026-128339 HIGH
8.7 Nov 13

Parsing an untrusted XLSX workbook with ExcelJS through 4.4.0 can exhaust the Node.js heap and abort the entire process,

CVE-2026-128343 HIGH
8.7 Nov 13

Denial of service in ExcelJS through 4.4.0: a crafted XLSX containing a <row> element numbered far beyond Excel's 1,048,

CVE-2026-128338 HIGH
8.7 Nov 13

ExcelJS through 4.4.0 can be crashed by a crafted .xlsx workbook whose worksheet col element has an unbounded max value:

CVE-2026-128340 HIGH
8.7 Nov 13

Loading a maliciously crafted spreadsheet can abort the entire Node.js process in ExcelJS through 4.4.0: a single define

CVE-2026-128341 HIGH
8.7 Nov 13

Loading an attacker-supplied .xlsx workbook with ExcelJS through 4.4.0 can exhaust CPU and memory and terminate the Node

CVE-2026-128342 HIGH
8.7 Nov 13

Denial of service in ExcelJS through 4.4.0 lets a remote, unauthenticated attacker stall a Node.js service for seconds a

CVE-2026-128344 HIGH
8.7 Nov 13

Heap-exhaustion denial of service in ExcelJS through 4.4.0 lets an unauthenticated attacker crash a Node.js application

CVE-2026-128346 HIGH
8.7 Nov 13

ExcelJS through 4.4.0 leaks temporary files and open file descriptors when the streaming WorkbookReader aborts mid-parse

CVE-2026-78206 HIGH
8.7 Aug 24

Unbounded xlsx decompression in exceljs-hardened before 5.0.0 allows unauthenticated remote attackers to exhaust server

CVE-2026-78208 HIGH
8.7 Aug 24

Path traversal in exceljs-hardened before 5.0.0 allows unauthenticated attackers to read arbitrary files from the server

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy