CVE-2026-42877

FacturaScripts: Stored XSS via product reference in sales/purchases

Published May 27, 2026 CVSS 3.1 · 5.4 Medium EPSS < 1% KEV · Not listed
Description
FacturaScripts is an open source accounting and invoicing software. In 2025.92 and earlier, a stored Cross-Site Scripting (XSS) vulnerability exists in the product search modal of sales (Core/Lib/AjaxForms/SalesModalHTML.php) and purchases documents (Core/Lib/AjaxForms/PurchasesModalHTML.php). An authenticated user with access to the warehouse module can create a product with a malicious reference that executes arbitrary JavaScript in the browser of any other user who opens the product search modal inside an invoice, order, or delivery note.

Analysis

AI-generated

Technical impact

The CVE describes a stored Cross‑Site Scripting flaw in the product search modal of sales and purchases documents in FacturaScripts 2025.92 and earlier. An authenticated user with access to the warehouse module can create a product whose reference contains malicious JavaScript. When another authenticated user opens the product search modal, the script runs in that user’s browser, allowing arbitrary code execution.

Affected Systems

The flaw affects the NeoRazorX FacturaScripts application for versions 2025.92 and older. It is present in the product search modal used for sales and purchases documents and requires the warehouse module to be enabled as well as permissions to create products.

Risk and Exploitability

The CVSS score of 5.4 indicates moderate severity and the necessity of authentication. EPSS is not available, and the vulnerability is not listed in the CISA KEV catalog. Exploitation requires the attacker to be an authenticated user who has permission to create products in the warehouse module; after inserting a malicious product reference, any other user who opens the search modal will have the script executed.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a FacturaScripts version newer than 2025.92 to remove the stored XSS flaw
  • If an immediate upgrade is not possible, restrict access to the warehouse module so that only trusted users can create products or disable the module for users who do not need it
  • Review existing product references and remove or sanitize any that contain JavaScript or script tags

Generated by OpenCVE AI on May 27, 2026 at 21:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-r736-2678-fcrx FacturaScripts vulnerable to stored XSS via product reference in sales/purchases
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Neorazorx
Neorazorx facturascripts
Vendors & Products Neorazorx
Neorazorx facturascripts
Type Values Removed Values Added
Description FacturaScripts is an open source accounting and invoicing software. In 2025.92 and earlier, a stored Cross-Site Scripting (XSS) vulnerability exists in the product search modal of sales (Core/Lib/AjaxForms/SalesModalHTML.php) and purchases documents (Core/Lib/AjaxForms/PurchasesModalHTML.php). An authenticated user with access to the warehouse module can create a product with a malicious reference that executes arbitrary JavaScript in the browser of any other user who opens the product search modal inside an invoice, order, or delivery note.
Title FacturaScripts: Stored XSS via product reference in sales/purchases
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
May 28, 2026, 3:15 PM
Reserved
Apr 30, 2026, 6:49 PM
Status
Deferred
Published
May 27, 2026, 8:16 PM
Modified
Oct 26, 2026, 11:10 AM