CVE-2026-128348 in ExcelJSinfo

Summary

by MITRE • 11/13/2026

ExcelJS through 4.4.0 contains a formula injection vulnerability in the totals row formula getter in lib/doc/table.js that fails to escape [, ], # and ' characters in structured reference column names. Attackers can supply column names containing ] via untrusted input like imported CSV headers to inject formulas such as HYPERLINK that exfiltrate cell values when users open and click the generated workbook.

Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Analysis

by VulDB Data Team • 11/13/2026

ExcelJS versions through 4.4.0 are susceptible to a formula injection vulnerability located within the totals row formula getter in the lib/doc/table.js module. This security flaw stems from an insufficient sanitization of structured reference column names, specifically failing to properly escape special characters such as square brackets [, ], hash symbols #, and single quotes '. The root cause lies in the library's handling of user-supplied data during the generation or modification of Excel workbooks, where input derived from untrusted sources like imported CSV headers is directly incorporated into formula structures without adequate validation. This lack of rigorous encoding allows malicious actors to inject arbitrary formulas that can execute unintended actions when the resulting file is processed by a compatible spreadsheet application.

The operational impact of this vulnerability is significant as it enables remote code execution scenarios through social engineering tactics rather than direct system compromise. By supplying column names containing specific delimiters like closing square brackets, an attacker can craft structured references that break out of their intended context and inject dangerous functions such as HYPERLINK or VBA macros into the workbook's formula engine. When a victim opens the maliciously generated Excel file in Microsoft Office or other compatible software, clicking on the injected hyperlink triggers external network requests. This mechanism facilitates data exfiltration by allowing the attacker to retrieve cell values from the spreadsheet and send them to an external server controlled by the adversary. The attack relies heavily on user interaction, requiring the victim to open the document and actively click the malicious link, which classifies this as a client-side exploitation vector rather than a purely automated backend vulnerability.

From a classification perspective, this issue aligns with CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component, specifically within the context of formula injection. It also maps to MITRE ATT&CK techniques related to Command and Control via External Remote Services, as the HYPERLINK function is commonly abused for beaconing or data staging. The vulnerability highlights critical gaps in input validation libraries that process structured data formats like CSV before converting them into complex document structures. Developers must recognize that even seemingly benign text fields can become vectors for code injection if they are embedded directly into formulaic contexts without proper escaping of reserved characters defined by the Excel file format specification.

Mitigation strategies should focus on immediate patching and defensive coding practices. Organizations using affected versions of ExcelJS must upgrade to version 4.5.0 or later, where this specific sanitization logic has been corrected to properly escape the identified special characters in structured references. For environments unable to update immediately, implementing a preprocessing step that validates and escapes column headers before they are passed to the library can provide temporary relief. Security teams should also enforce strict content security policies for users handling untrusted Excel files and educate staff on the risks of enabling macros or clicking hyperlinks within documents received from external sources. Regular auditing of third-party libraries used in document generation pipelines is essential to identify similar injection points where user input intersects with executable formula syntax.

Responsible

VulnCheck

Reservation

11/13/2026

Disclosure

11/13/2026

Moderation

accepted

CPE

ready

EPSS

0.00229

KEV

no

Activities

very low

Sources

Want to stay up to date on a daily basis?

Enable the mail alert feature now!