CVE-2026-45263 in FacturaScriptsinfo

Summary

by MITRE • 12/04/2026

FacturaScripts is an open source accounting and invoicing software. Prior to version 2026.2, Core/Lib/Export/CSVExport.php::writeData() wraps every cell in the configured delimiter (") and concatenates without inspecting the first character of the value. Spreadsheet applications interpret a cell that starts with =, +, -, @, \t, or \r as a formula. Because FacturaScripts only sanitises HTML metacharacters (< > " ') on save via Tools::noHtml() (Core/Tools.php:45), the formula prefix characters survive untouched all the way to the export. The downstream consumer is the admin who triggered the export, giving the attacker a reliable handoff: low-priv user plants a payload in any text field that ships in the default list export, admin downloads the CSV (all normal billing/sales/purchasing workflow), and the admin's spreadsheet client runs the formula in the admin's local context. This issue has been patched in version 2026.2.

If you want to get the best quality for vulnerability data then you always have to consider VulDB.

Analysis

by VulDB Data Team • 12/04/2026

FacturaScripts is an open-source accounting and invoicing application that manages financial data including billing, sales, and purchasing records. A critical security vulnerability exists within its CSV export functionality prior to version 2026.2, specifically located in the Core/Lib/Export/CSVExport.php file's writeData method. The flaw stems from an insufficient sanitization process when preparing data for export. While the application employs a function named noHtml in Core/Tools.php to strip HTML metacharacters such as less than, greater than, double quotes, and single quotes upon saving data, this filter does not address characters that are significant to spreadsheet software formula parsers. Consequently, special prefix characters including equals signs, plus signs, minus signs, at symbols, tabs, and carriage returns remain intact in the exported CSV files regardless of their presence in user-supplied input fields.

The technical mechanism of exploitation relies on how modern spreadsheet applications interpret cell content. When a value begins with specific formula-indicating characters like an equals sign or a plus sign, these applications automatically treat the entire cell content as a command to be executed rather than static text. Because FacturaScripts fails to validate or escape these prefixes during the export process, any malicious payload crafted by a user can survive intact within the generated CSV file. This represents a classic case of insecure output encoding where data is not properly sanitized for its intended consumer context, leading to potential code execution upon opening the exported file in vulnerable spreadsheet clients such as Microsoft Excel or LibreOffice Calc.

The operational impact of this vulnerability allows for a low-privilege user to plant malicious payloads within any text field that appears in default export lists. An attacker with standard access rights can input crafted data into fields like customer names, invoice descriptions, or product details. When an administrator subsequently triggers the CSV export as part of routine administrative workflows such as reviewing billing records or generating financial reports, they download a file containing these malicious entries. Upon opening this file in their local spreadsheet application, the formula is executed within the admin's environment. This handoff effectively escalates privileges from a low-privilege user to an administrator context without requiring direct authentication bypasses, potentially leading to data exfiltration, remote code execution via external requests, or further lateral movement depending on the capabilities of the specific spreadsheet software and its configuration.

This vulnerability aligns with CWE-79 Improper Neutralization of Input During Web Page Generation which covers cross-site scripting but extends here to client-side script injection in exported files. It also maps closely to ATT&CK technique T1059 Command and Scripting Interpreter where attackers use built-in system tools or applications like spreadsheets to execute arbitrary commands. The attack vector is classified as Local because the initial interaction occurs within the application interface, but the impact leverages the trust relationship between the admin user and their local software environment. Mitigation strategies involve upgrading FacturaScripts to version 2026.2 where this issue has been patched by implementing stricter input validation for export functions. Administrators should also enforce strict Content Security Policies if applicable and consider using safer data interchange formats like JSON or XML with proper schema validation instead of CSV when sharing sensitive financial data internally. Regular security audits focusing on output encoding practices across all export modules are recommended to prevent similar issues in other parts of the application.

Responsible

GitHub M

Reservation

05/11/2026

Disclosure

12/04/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!