# CVE-2026-25513: FacturaScripts has SQL Injection vulnerability in API ORDER BY Clause

- Severity: High 8.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.52%, higher than 45% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-02-03T18:14:43.000Z
- Modified: 2026-06-17T10:24:46.267Z
- Also known as: GHSA-cjfx-qhwm-hf99
- Weaknesses: CWE-20, CWE-89, CWE-943, CWE-1286
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

FacturaScripts is open-source enterprise resource planning and accounting software. Prior to version 2025.81, FacturaScripts contains a critical SQL injection vulnerability in the REST API that allows authenticated API users to execute arbitrary SQL queries through the sort parameter. The vulnerability exists in the ModelClass::getOrderBy() method where user-supplied sorting parameters are directly concatenated into the SQL ORDER BY clause without validation or sanitization. This affects all API endpoints that support sorting functionality. This issue has been patched in version 2025.81.

(As written by CVE List.)

## Affected

- NeoRazorX facturascripts: < 2025.81
- facturascripts/facturascripts (Packagist): before 2025.81
- facturascripts facturascripts: before 2025.81

## Every score

- GitHub_M: CVSS:4.0 8.3 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/NeoRazorX/facturascripts/security/advisories/GHSA-cjfx-qhwm-hf99> (exploit, mitigation, vendor-advisory, web)
- <https://github.com/NeoRazorX/facturascripts/commit/1b6cdfa9ee1bb3365ea4a4ad753452035a027605> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-25513> (advisory)
- <https://github.com/NeoRazorX/facturascripts> (package)

## Sources

- CVE List: [CVE-2026-25513](https://www.cve.org/CVERecord?id=CVE-2026-25513), CVE Terms of Use, modified 2026-02-05
- GitHub Advisory Database: [GHSA-cjfx-qhwm-hf99](https://github.com/advisories/GHSA-cjfx-qhwm-hf99), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2026-25513](https://nvd.nist.gov/vuln/detail/CVE-2026-25513), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-25513 · Whole record: https://cve.day/CVE-2026-25513.json · Rebuilt by cve.day 2026-11-25T22:59:13.500Z
