CVE-2026-42877 FacturaScripts: Stored XSS via product reference in sales/purchases
Authenticated users can inject malicious JavaScript via product references, leading to arbitrary code execution in other users' browsers.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2026-42877?
CVE-2026-42877 is a medium-severity cross-site scripting vulnerability in NeoRazorX facturascripts, published on 27 May 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-79
Which versions are affected by CVE-2026-42877?
2 open source packages ship an affected version, including facturascripts/facturascripts.
| Package | Affected | Fixed in |
|---|---|---|
facturascripts/facturascripts Packagist | All versions to 2025.92 | None |
facturascripts/facturascripts Packagist | All versions to 2025.92 | None |
How do I fix CVE-2026-42877?
No fix has been published for CVE-2026-42877 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2026-42877 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-42877 exists.
Sources
Also known as GHSA-r736-2678-fcrx.