# FacturaScripts: CSV formula injection in CSVExport allows authenticated low-priv users to plant payloads that execute when an admin opens the export

High severity, published 2026-07-14. Update facturascripts/facturascripts to 2026.2 or later: composer update facturascripts/facturascripts.

Canonical URL: https://buzzphp.com/security/ghsa-2p5x-4jr6-x5jg · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high (CVSS 8) |
| Published | 2026-07-14 |
| Updated | 2026-11-02 |
| CVE | [CVE-2026-45263](https://nvd.nist.gov/vuln/detail/CVE-2026-45263) |
| GHSA | [GHSA-2p5x-4jr6-x5jg](https://github.com/advisories/GHSA-2p5x-4jr6-x5jg) |
| Weakness | CWE-1236 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| facturascripts/facturascripts | <= 2026.1 | 2026.2 |

## What to do

Update facturascripts/facturascripts to 2026.2 or later: composer update facturascripts/facturascripts.

Check which version you run with `composer show facturascripts/facturascripts`, and every affected package with `composer audit`.

## About this advisory

Summary

Live PoC verified 2026-04-30 against a stock FacturaScripts master at 127.0.0.1:8081. A low-privilege user (lowpriv) created a customer with nombre = "=SUM(1+1)cmd|/c calc!A1". An admin then exported ListCliente to CSV via ?action=export&option=CSV. The downloaded file contains the raw payload as the first cell of the nombre column, with no leading single quote and no escape. Excel and LibreOffice will execute the formula on open, including DDE invocations such as =cmd|'/c calc'!A1 that spawn arbitrary processes on the admin workstation.



## Links

- [GHSA-2p5x-4jr6-x5jg on GitHub](https://github.com/advisories/GHSA-2p5x-4jr6-x5jg)
- [CVE-2026-45263 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-45263)
- [All Composer security advisories](https://buzzphp.com/security)
