CVE-2026-45262: Authenticated SQL Injection in FacturaScripts REST API Filter Keys
CVE-2026-45262 is an authenticated SQL injection vulnerability in FacturaScripts REST API filter-key processing. Where::sqlColumn returns identifiers containing parentheses without escaping, allowing attacker-controlled filter keys to alter SQL queries. Generic resource handlers and the attached-files handler are affected through APIModel::getWhereValues and ApiAttachedFiles::getWhereValues. A low-privilege API token restricted to a permitted resource can exploit the flaw to bypass resource restrictions and disclose arbitrary database columns. Administrator credential disclosure and session takeover have been demonstrated. The vulnerability has a CVSS v3.0 base score of 9.9.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Exploitation can expose password hashes, session tokens, two-factor authentication secrets, API keys, email addresses, and financial data beyond the resources authorized for the attacker's API token. Stolen administrator session tokens permit administrator impersonation and access to privileged management functions. This can potentially lead to arbitrary code execution through plugin installation. Database modification and filesystem writes depend on reachable write paths, database engine capabilities, and database privileges. Successful malicious queries may leave no application error-log evidence. The CVSS assessment indicates changed scope and high confidentiality, integrity, and availability impacts.
Mitigation
If you can’t patch tonight, do this now.
Until patched, disable API access or restrict it to trusted clients where operationally feasible. Validate filter field names in both affected API handlers, allowing only valid identifiers after processing operator suffixes. Log invalid filter attempts and throttle offending sources. Resource-scoped API permissions and response-field redaction do not prevent exploitation. If exposure or exploitation is suspected, invalidate user session tokens, rotate passwords and API credentials, and assess other database-held secrets for compromise.
Remediation
Patch, then assume compromise.
Upgrade facturascripts/facturascripts and related packages to version 2026.2 or later. Code-level remediation replaces the parentheses-based escaping exemption in Where::sqlColumn with strict identifier validation and narrowly parsed, explicitly supported SQL expressions. Independently validate filter keys in both APIModel::getWhereValues and ApiAttachedFiles::getWhereValues, and add regression tests for malicious filter identifiers and cross-resource disclosure attempts.
Exploits
No public exploits tracked yet. Mallory keeps watching.
References
Frequently asked questions
- Is CVE-2026-45262 exploited in the wild?
- As of Nov 3, 2026, Mallory has no reports of CVE-2026-45262 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-45262?
- As of Nov 3, 2026, Mallory has found no public exploit for CVE-2026-45262.
- Is there a patch for CVE-2026-45262?
- Upgrade facturascripts/facturascripts and related packages to version 2026.2 or later. Code-level remediation replaces the parentheses-based escaping exemption in Where::sqlColumn with strict identifier validation and narrowly parsed, explicitly supported SQL expressions.
Recent activity
3 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.