CVE-2026-45710
Received Received - Intake

Stored XSS in FacturaScripts via WidgetVariante

Vulnerability report for CVE-2026-45710, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-12-04

Last updated on: 2026-12-04

Assigner: GitHub, Inc.

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-12-04
Last Modified
2026-12-04
Generated
2026-12-04
AI Q&A
2026-12-04
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
facturascripts facturascripts to 2026.2 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-79 The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
CWE-116 The product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. As a result, the intended structure of the message is not preserved.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

FacturaScripts versions before 2026.2 have a reflected cross-site scripting (XSS) vulnerability in two widget components. User-controlled input in fields like referencia or codsubcuenta is improperly sanitized and directly embedded into JavaScript string literals within HTML onclick attributes. HTML entity encoding used to neutralize quotes fails because browsers decode these entities before JavaScript parsing, allowing attackers to inject executable JavaScript code.

Detection Guidance

Check FacturaScripts version for versions prior to 2026.2. Inspect WidgetVariante.php and WidgetSubcuenta.php files for the vulnerable code patterns in the renderVariantList and renderSubaccountList methods. Look for user-controlled input being directly concatenated into JavaScript onclick attributes without proper escaping.

Impact Analysis

An attacker could trick users into opening a malicious modal, executing arbitrary JavaScript in their browser session. This could lead to session hijacking, data theft, or unauthorized actions on behalf of the user within the FacturaScripts application. The impact is limited to users who interact with the affected modals.

Compliance Impact

This XSS vulnerability could lead to unauthorized data access or modification, violating GDPR's integrity and confidentiality principles or HIPAA's safeguards for protected health information. Organizations using vulnerable versions may face compliance violations if user data is compromised through this flaw.

Mitigation Strategies

Upgrade FacturaScripts to version 2026.2 or later immediately. If upgrading is not possible, apply input validation to sanitize the referencia and codsubcuenta fields to prevent JavaScript injection. Review and restrict user permissions to reduce attack surface.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-45710. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...