CVE-2026-47677
CriticalCVSS 9.3Exploitation Probability (EPSS)
Elevated risk60th percentile - higher than 60% of all known CVEs
Summary
FacturaScripts before version 2026.3 contains an authentication bypass in /login?action=two-factor-validation that accepts brute-forceable TOTP without a password or CSRF protection. This allows an attacker to bypass the second authentication factor.
Risk Assessment
An attacker can take over user accounts, including administrators, by guessing TOTP codes without knowing the password. This poses a serious threat to the security of the accounting system.
Recommendation
Update FacturaScripts to version 2026.3 or later. Until patched, consider restricting access to the two-factor validation endpoint.
Other vulnerabilities in FacturaScripts
See all- CVE-2026-77526Critical
In FacturaScripts, UploadedFile::move() concatenates the destination path with the client-supplied filename without normalization. An authenticated user can submit a filename containing ../ segments to write files outside MyFiles/, and in directories served directly by Apache (Dinamic/Assets/, node_modules/) this escalates to remote code execution.
- CVE-2026-45262Critical
FacturaScripts before version 2026.2 in Core/Where.php::sqlColumn() exempts field names containing both ( and ) from identifier escaping. The API filter builders feed the raw request key into DataBaseWhere, allowing an attacker to inject SQL conditions and perform UNION SELECT to leak arbitrary columns from tables.
- CVE-2026-77530Medium
In FacturaScripts before 2026.5, the ListCuenta restore-special action overwrites the special-accounts mapping (cuentasesp) without an authorization re-check and without an anti-CSRF token. Any non-admin with ListCuenta page access can invoke it, or an admin can be tricked via CSRF.
- CVE-2026-77529Medium
In FacturaScripts before 2026.2, EditEmailSent::getHtmlAction returns the stored EmailSent::html value through Tools::fixHtml(), reversing HTML-entity escaping. On the browser side, a hand-rolled regex sanitizer (limpiarJS) fails to strip many XSS payloads, which execute in the administrator's session context.
- CVE-2026-45710Low
In FacturaScripts before 2026.2, WidgetVariante::renderVariantList and WidgetSubcuenta::renderSubaccountList concatenate the user-controlled referencia/codsubcuenta field into a JavaScript string literal inside an onclick attribute. HTML entities are decoded before JavaScript parsing, so an apostrophe in the value enables script execution (XSS) when the variant-picker modal is opened.
- CVE-2026-45693High
FacturaScripts is an open source accounting and invoicing software. Prior to version 2026.2, the static file controllers decide whether a request is authorized by looking at the URL string instead of the canonical filesystem path. A request that starts with an allow-listed folder name but contains a ../ segment in the middle ends up serving a file from a different directory than the one the URL pretended to point at. This makes any file inside the FacturaScripts installation readable without authentication as long as the file's extension is on the controllers' allow-list (pdf, xlsx, docx, csv, sql, zip, xml, json, xsig, etc.).
- CVE-2026-45263High
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(), 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: a low-priv user plants a payload in any text field that ships in the default list export, the admin downloads the CSV, and the admin's spreadsheet client runs the formula in the admin's local context.
- CVE-2026-11960Medium
Enumeration of unauthenticated users in FacturaScripts, version 2025.61. The application returns different responses when attempting to log in with a valid username compared to an invalid one. An unauthenticated attacker could systematically identify valid usernames by examining variations in the application's responses, such as changes in response time, discrepancies between error messages or differences in HTTP status codes.
- CVE-2026-11959Medium
A Stored Cross-Site Scripting (XSS) vulnerability exists in FacturaScripts version 2025.61 due to insufficient validation or sanitisation of user input in the 'city' and 'province' fields in the 'ListAlmacen' endpoint. Successful exploitation could allow an attacker to execute arbitrary JavaScript in the victim's browser or escalate privileges from a normal user to an administrator.
- CVE-2026-104905High
FacturaScripts before version 2026.7 contains a PHP object injection vulnerability in WidgetSelect::processFormData() that allows authenticated attackers to trigger unserialize() on raw POST data without an allowed_classes filter for multiple-select fields. Attackers can submit a serialized XLSXWriter object as the field value to invoke its __destruct() method, deleting arbitrary attacker-specified files such as config.php or backup data, resulting in denial of service and potential application reinstall hijack.
Original NVD description (English source)
FacturaScripts is an open source accounting and invoicing software. Prior to version 2026.3, there is an authentication bypass in FacturaScripts. /login?action=two-factor-validation accepts brute-forceable TOTP without password or CSRF protection. This issue has been patched in version 2026.3.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

