FacturaScripts contains a critical path traversal vulnerability in the UploadedFile::move() method, allowing authenticated users to write files outside the intended upload directory by supplying filenames with '../' segments. This flaw arises because the code concatenates the destination path and the unsanitized client filename without normalization. The default Apache configuration serves files directly from certain directories (e.g., Dinamic/Assets/), enabling an attacker to upload malicious files such as .htaccess overrides and PHP payloads, resulting in remote code execution.
FacturaScripts versions prior to 2026.2 contain a stored cross-site scripting (XSS) vulnerability in the WidgetVariante and WidgetSubcuenta modal lists. The vulnerability arises because user-controlled fields are inserted directly into JavaScript string literals inside HTML onclick attributes with only HTML entity escaping, which browsers decode before JavaScript parsing, allowing injection of arbitrary JavaScript code. This flaw was not addressed in these two widget classes during a recent fix wave that corrected similar issues in related classes. The vulnerability allows an attacker with write access to store payloads that execute when users open the affected modals.
FacturaScripts versions prior to 2026.2 are vulnerable to CSV formula injection via the CSV export feature. A low-privilege authenticated user can insert malicious formula payloads into text fields such as customer names. When an admin exports data to CSV and opens it in spreadsheet software like Excel or LibreOffice, the embedded formulas execute, potentially running arbitrary commands on the admin's machine. The vulnerability arises because the export function wraps cell values in quotes but does not neutralize leading formula trigger characters, and the input sanitization only removes HTML metacharacters, not formula prefixes.
FacturaScripts contains an authenticated SQL injection vulnerability in its REST API filter parameter. The flaw allows an attacker with limited API access to inject SQL via specially crafted filter keys containing parentheses, bypassing identifier escaping. This leads to leakage of sensitive data such as admin password hashes and session cookies, enabling full account takeover without UI session or second factor. The vulnerability is fixed in version 2026.2.
FacturaScripts contains a critical authentication bypass vulnerability in its two-factor authentication (2FA) validation endpoint. The endpoint accepts unauthenticated POST requests with only a username and TOTP code, without verifying the user's password or requiring CSRF protection. It also lacks rate limiting, allowing brute force attacks against the 2FA codes. Due to an extended verification window, multiple valid codes exist simultaneously, making brute forcing feasible within minutes. Successful exploitation results in complete account takeover of any 2FA-enabled user, including administrators. The vulnerability affects versions prior to 2026.3 and has a CVSS 4.0 base score of 9.3 (critical).
FacturaScripts contains a reflected cross-site scripting (XSS) vulnerability via the fsNick cookie parameter. The application reflects the cookie's value into the HTML DOM without proper encoding, allowing script execution before the server invalidates the session and forces logout. This can enable a single unauthorized action before logout occurs.
FacturaScripts, an open-source ERP application, has a sensitive information disclosure vulnerability in its Library module. The application does not strip EXIF or other embedded metadata from user-uploaded images before storing and serving them. This allows any authenticated user with access to the Library to download images containing metadata such as GPS coordinates, device details, timestamps, and personal comments, potentially exposing sensitive personal information like an employee's home address.
FacturaScripts contains a critical vulnerability (CVE-2026-27891) in its plugin upload mechanism that allows a Zip Slip attack. The system fails to properly sanitize file paths inside uploaded ZIP archives, enabling attackers to write arbitrary files outside the intended directory. This can lead to remote code execution by overwriting sensitive PHP files. The vulnerability affects versions up to 2025.71 and has a CVSS score of 7.2 (high severity).
FacturaScripts contains a vulnerability in its EditUser controller where the 'nick' parameter can be modified via a POST request despite being intended as immutable. This allows users to rename any account, including Administrator, bypassing UI restrictions. The flaw leads to broken access control and risks audit log corruption, enabling attackers to evade detection or impersonate others.