CVE-2026-78209 in exceljs-hardenedinfo

Summary

by MITRE • 08/24/2026

exceljs-hardened versions before 5.0.0 fail to neutralize leading equals, plus, minus, or at signs in cell values written to CSV output. Attackers who can influence exported cell values can inject formulas that execute when the CSV file is opened in a spreadsheet application, potentially exfiltrating data or performing other malicious actions.

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

Analysis

by VulDB Data Team • 08/24/2026

The vulnerability identified in exceljs versions prior to 5.0.0 represents a significant security risk associated with server-side document generation libraries that export data to comma-separated values format. This flaw stems from the library's failure to properly sanitize specific leading characters within cell content during the CSV serialization process. Specifically, when writing string values to a CSV file, exceljs does not neutralize or escape input strings that begin with an equals sign, plus sign, minus sign, or at symbol. In standard spreadsheet applications such as Microsoft Excel or LibreOffice Calc, these characters serve as indicators for formula evaluation rather than literal text representation. Consequently, any data exported through the vulnerable library retains its raw form without being prefixed by a single quote or otherwise escaped to force plain-text interpretation.

This technical deficiency allows an attacker who has control over the input data destined for export to inject malicious spreadsheet formulas into the resulting CSV file. When a victim opens this compromised file in a compatible spreadsheet application, the software interprets the leading special characters as the start of a formula and attempts to execute it immediately upon loading or recalculation. This behavior transforms what appears to be simple tabular data into an execution vector for remote code-like actions within the context of the office suite environment. The vulnerability is particularly dangerous because CSV files are often treated as trusted, static data sources by end-users who may not anticipate that opening them could trigger active script or formula execution.

The operational impact of this flaw extends beyond simple data corruption and encompasses severe privacy breaches and potential system compromise through Social Engineering attacks leveraging Office applications. Attackers can craft formulas designed to exfiltrate sensitive information from the user's local environment, such as file paths, clipboard contents, or network credentials, by sending them to a remote server controlled by the attacker via HTTP requests embedded within the formula logic. Furthermore, this vulnerability aligns with CWE-94 Improper Control of Generation of Code (Code Injection) and specifically relates to CWE-116 Improper Mitigation of Log Injection or Incorrectly Neutralized Special Characters in Logs if viewed through a logging lens, but more accurately fits CWE-78 Improper Neutralization of Special Elements used in an OS Command when considering the broader context of application logic injection. In terms of offensive security frameworks, this technique is categorized under ATT&CK T1059 Command and Scripting Interpreter with sub-techniques related to Microsoft Office Application Commands, allowing for lateral movement or data staging after initial access via phishing or compromised exports.

Mitigation strategies must focus on both immediate patching and defensive coding practices within application logic that utilizes exceljs. The primary remediation is to upgrade the library to version 5.0.0 or later, where this sanitization issue has been addressed by properly escaping leading special characters during CSV export operations. For applications unable to immediately update dependencies, developers should implement a preprocessing step before passing data to the csv writer function. This involves inspecting each cell value and prepending an apostrophe character if it starts with =, +, -, or @, thereby forcing spreadsheet parsers to treat the content as plain text rather than executable formula syntax. Additionally, organizations should enforce strict input validation on all user-supplied data that is destined for export, ensuring that no unexpected special characters are introduced into fields meant for display purposes only. Security awareness training for end-users regarding the risks of opening CSV files from untrusted sources remains a critical complementary control to mitigate residual risk in environments where legacy systems or delayed patching cycles exist.

Responsible

VulnCheck

Reservation

08/24/2026

Disclosure

08/24/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Do you want to use VulDB in your project?

Use the official API to access entries easily!