CVE-2026-45710: Stored cross-site scripting in FacturaScripts selection widgets
FacturaScripts versions before 2026.2 contain stored cross-site scripting vulnerabilities in WidgetVariante::renderVariantList and WidgetSubcuenta::renderSubaccountList. Attacker-controlled referencia or codsubcuenta values are concatenated into JavaScript string literals inside HTML onclick attributes. Browsers decode apostrophes escaped by Tools::noHtml during HTML parsing, allowing stored values to escape the intended JavaScript string context. Injected JavaScript executes in the application's origin when a victim clicks an affected picker row. WidgetVariante exposure depends on its configured match field: the two identified stock-core consumers use idproducto instead of the default referencia, while plugins retaining the attacker-controlled default are exposed. WidgetSubcuenta has affected stock-core consumers.
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.
Successful exploitation can expose application data, accessible tokens, and non-HttpOnly cookies, and allow actions using the victim's privileges. Administrative compromise is possible if a privileged user triggers the payload. The listed CVSS v3 vector assesses limited confidentiality and integrity impacts and no availability impact.
Mitigation
If you can’t patch tonight, do this now.
Until upgrading, restrict record creation, imports, API operations, plugin functionality, and database writes that can populate referencia or codsubcuenta. Temporarily disable exposed picker paths where feasible, particularly plugin forms using WidgetVariante with its default referencia match field and affected subaccount pickers. Storage-time Tools::noHtml escaping alone is ineffective because browsers decode HTML character references before executing inline event handlers.
Remediation
Patch, then assume compromise.
Upgrade facturascripts/facturascripts and related packages to version 2026.2 or later. For a backport, remove attacker-controlled values from JavaScript string literals in both widgets' inline handlers. Normalize stored entities with html_entity_decode, encode the result with htmlspecialchars using ENT_QUOTES | ENT_SUBSTITUTE and UTF-8, store it in a data-match attribute, and pass this.dataset.match to the selection function. Apply context-aware escaping to related filter attributes, audit shared widget HTML builders, and add browser-based regression tests that click rows containing malicious stored values.
Exploits
No public exploits tracked yet. Mallory keeps watching.
References
Frequently asked questions
- Is CVE-2026-45710 exploited in the wild?
- As of Nov 7, 2026, Mallory has no reports of CVE-2026-45710 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-45710?
- As of Nov 7, 2026, Mallory has found no public exploit for CVE-2026-45710.
- Is there a patch for CVE-2026-45710?
- Upgrade facturascripts/facturascripts and related packages to version 2026.2 or later. For a backport, remove attacker-controlled values from JavaScript string literals in both widgets' inline handlers.
Recent activity
5 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.