CVE-2026-137555 in Frappe
Summary
by MITRE • 11/26/2026
Frappe Framework before 15.119.0 and 16.x before 16.32.0 does not neutralize spreadsheet formula elements in user-supplied data included in CSV and XLSX exports, resulting in stored formula injection. Authenticated attackers can store crafted values that are interpreted as formulas when another user opens the exported file in a spreadsheet application.
If you want to get best quality of vulnerability data, you may have to visit VulDB.
Analysis
by VulDB Data Team • 11/27/2026
The vulnerability identified within the Frappe Framework constitutes a critical instance of Stored Formula Injection affecting versions prior to 15.119.0 and 16.x prior to 16.32.0. This security flaw arises from an insufficient sanitization process applied to user-supplied data during the generation of CSV and XLSX export files. When users input specific strings into application fields, these values are stored in the database without adequate neutralization of special characters that hold semantic meaning for spreadsheet applications. Specifically, if a malicious actor inputs a string beginning with an equals sign followed by a function name or operator, such as =SUM(A1:B1) or =cmd|' /C calc', this data is preserved exactly as entered within the exported file structure rather than being escaped or converted to plain text format.
The operational impact of this vulnerability is significant because it leverages the trust users place in application-generated reports and exports. An authenticated attacker can craft a payload that, when included in an export file, triggers automatic execution upon opening by another user using common spreadsheet software like Microsoft Excel, LibreOffice Calc, or Google Sheets. This behavior allows for Remote Code Execution if the specific formula invokes shell commands through supported interfaces such as DDE or OLE automation. Even without direct code execution, this vulnerability facilitates data exfiltration where sensitive information from other cells in the workbook is read and displayed to the attacker via malicious formulas that reference external URLs or hidden sheets containing stolen data. It also enables phishing attacks by manipulating cell values to display misleading content while performing background actions, thereby undermining the integrity of business intelligence reports and internal communications.
From a classification perspective, this vulnerability aligns with CWE-94 Improper Control of Generation of Code (Code Injection) under the subcategory of Stored Formula Injection. It is also closely related to CWE-798 Use of Hard-coded Credentials if used for credential harvesting or CWE-200 Exposure of Sensitive Information through Data Querying when targeting spreadsheet data extraction. In terms of adversary tactics, this technique maps to ATT&CK T1560.001 Archived via Local Archive as the attacker may use spreadsheets to stage stolen data before exfiltration, and potentially T1059 Command and Scripting Interpreter if remote code execution is achieved through formula-based macros or DDE links. The attack vector relies on social engineering principles where a victim is persuaded to open an exported file that appears legitimate but contains hidden malicious logic embedded within the cell values themselves.
Mitigation strategies must focus on both immediate patching and long-term defensive coding practices. Organizations running affected versions of Frappe Framework should upgrade immediately to version 15.119.0 or later, or for the 16.x branch, update to version 16.32.0 or higher where this sanitization logic has been corrected. For environments unable to patch immediately, administrators can implement a middleware layer that intercepts export requests and applies strict input validation rules. This includes stripping leading special characters such as equals signs, plus signs, minus signs, and tabs from all string fields before they are written to the CSV or XLSX output streams. Additionally, enforcing data type constraints so that numeric-only fields reject alphabetic entries can reduce the attack surface. Security awareness training for end-users is also recommended to encourage verification of file sources, although technical controls remain the primary defense against this class of vulnerability.