# FacturaScripts: Authenticated SQL injection in the FacturaScripts REST API filter parameter via parenthesis bypass in `Where::sqlColumn`

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

Canonical URL: https://buzzphp.com/security/ghsa-5qmh-x653-g8qj · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | critical (CVSS 9.9) |
| Published | 2026-07-14 |
| Updated | 2026-11-02 |
| CVE | [CVE-2026-45262](https://nvd.nist.gov/vuln/detail/CVE-2026-45262) |
| GHSA | [GHSA-5qmh-x653-g8qj](https://github.com/advisories/GHSA-5qmh-x653-g8qj) |
| Weakness | CWE-89, CWE-918 |

| 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 scoped ApiKey with fullaccess=0 and an ApiAccess row granting allowget=1 on the clientes resource only (no other rights, no UI session, no admin) issued one GET /api/3/clientes?filter[(0)UNION%20SELECT%20...]= request and the response body contained the raw bcrypt hash of the admin user's password ($2y$12$sLfA/XCqnjqLmYJwK.2V7eUHrHTHcQfkTYYfs1.lxX3OHrsmmkMGO) and the admin's logkey cookie value. The leaked logkey was injected into a fresh cookie jar and GET /AdminPlugins returned 200 with the admin plugin management UI.

## Links

- [GHSA-5qmh-x653-g8qj on GitHub](https://github.com/advisories/GHSA-5qmh-x653-g8qj)
- [CVE-2026-45262 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-45262)
- [All Composer security advisories](https://buzzphp.com/security)
