Read the docs

Stored XSS in FacturaScripts variant and subaccount modal lists

Priority MEDIUM 50CWE-116Published · Updated

Key facts

Attack vector
Network
Privileges required
High
User interaction
Required
Attack complexity
Low
Impact type
Cross-site scripting
Confidentiality · integrity · availability
Low · Low · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.

Summary

FacturaScripts versions before 2026.2 are affected. The variant and subaccount picker modals build table rows with user-controlled reference or subaccount codes inside a single-quoted JavaScript string in an HTML onclick attribute. Because the HTML attribute decodes the escaped apostrophe, a stored value containing an apostrophe can break out of the string (CWE-116). An attacker with high privileges who can store such a value can run script in the browser of any user who opens the modal, with user interaction required.

Written with Claude Haiku 5.5 from the sources below · 2026-12-04

Description from the CNA

FacturaScripts is an open source accounting and invoicing software. Prior to version 2026.2, WidgetVariante::renderVariantList (Core/Lib/Widget/WidgetVariante.php:298-330) and WidgetSubcuenta::renderSubaccountList (Core/Lib/Widget/WidgetSubcuenta.php:290-321) build the <tr onclick="..."> row for each modal hit by concatenating the user-controlled referencia / codsubcuenta field directly into a single-quoted JavaScript string literal inside an HTML onclick attribute. The defender's intuition is that Tools::noHtml (called in Variante::test() and Subcuenta::test()) replaces ' with the HTML entity &#39;, neutralising the JavaScript string break. The intuition is wrong: HTML attribute parsing decodes character references before the JavaScript fragment is parsed, so &#39; becomes a literal ' in the JavaScript context. An attacker who can store a value such as 1',alert(1),'2 in Variante.referencia (no special characters required, just one apostrophe) ends up with widgetVarianteSelect('id', '1',alert(1),'2'); executing in any user's browser the moment they open the variant-picker modal. This issue has been patched in version 2026.2.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
Fix Fixed facturascripts (NeoRazorX): 2026.2facturascripts/facturascripts (Packagist): 2026.2

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
NeoRazorXfacturascriptsbefore 2026.22026.2Patch availableCNA
—facturascripts/facturascripts (Packagist)before 2026.22026.2Patch availableGHSA-3x7p-v8hj-xh5m
  • facturascripts VendorNeoRazorX Affected before 2026.2 Fixed in 2026.2 Patch available CNA
  • facturascripts/facturascripts (Packagist) Vendor— Affected before 2026.2 Fixed in 2026.2 Patch available GHSA-3x7p-v8hj-xh5m

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:facturascripts:facturascripts:*:*:*:*:*:*:*:*——NeoRazorX
  • cpe:2.3:a:facturascripts:facturascripts:*:*:*:*:*:*:*:* Versions — — ·NeoRazorX

Remediation

Update FacturaScripts to version 2026.2, which fixes this issue for both the facturascripts product and the facturascripts/facturascripts Packagist package.

Written with Claude Haiku 5.5 from the sources below · 2026-12-04

  • Fix · CNA facturascripts (NeoRazorX) Fixed in 2026.2
  • Fix · GHSA-3x7p-v8hj-xh5m facturascripts/facturascripts (Packagist) Fixed in 2026.2 Advisory →

Timeline

  1. 2026-12-04 Threatist record created from CVE-2026-45710
  2. 2026-12-04 CISA SSVC decision points changed

References

  • TI-2026-67066 Path traversal in NeoRazorX facturascripts CVSS 3.1CRITICAL 9.9
  • TI-2026-104319 Authenticated SQL injection in FacturaScripts REST API filter parameter CVSS 3.1CRITICAL 9.9
  • TI-2026-19336 FacturaScripts has a Stored Cross-Site Scripting (XSS) in "Observations" field via History View CVSS 3.1CRITICAL 9.0
  • TI-2026-104320 CSV formula injection in FacturaScripts CSV export CVSS 3.1HIGH 8.0
  • TI-2026-22235 Remote Code Execution (RCE) via Zip Slip in Plugin Upload Mechanism CVSS 3.1HIGH 7.2
  • TI-2026-31084 FacturaScripts: Unauthenticated phpinfo() Disclosure via Installer Endpoint in FacturaScripts CVSS 3.1MEDIUM 5.3
See all 31 →

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences