Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. facturascripts/facturascripts
  4. ›
  5. CVE-2026-25513

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

February 3, 2026 (updated February 4, 2026)

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.


References

  • github.com/NeoRazorX/facturascripts
  • github.com/NeoRazorX/facturascripts/commit/1b6cdfa9ee1bb3365ea4a4ad753452035a027605
  • github.com/NeoRazorX/facturascripts/security/advisories/GHSA-cjfx-qhwm-hf99
  • github.com/advisories/GHSA-cjfx-qhwm-hf99
  • nvd.nist.gov/vuln/detail/CVE-2026-25513

Code Behaviors & Features

Detect and mitigate CVE-2026-25513 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2025.81

Fixed versions

  • 2025.81

Solution

Upgrade to version 2025.81 or above.

Impact 7.7 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-1286: Improper Validation of Syntactic Correctness of Input
  • CWE-20: Improper Input Validation
  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
  • CWE-943: Improper Neutralization of Special Elements in Data Query Logic

Source file

packagist/facturascripts/facturascripts/CVE-2026-25513.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 18 Feb 2026 12:19:43 +0000.