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

- Severity: Medium 5.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 9% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-07T19:37:08.000Z
- Modified: 2026-10-26T11:10:00.157Z
- Also known as: GHSA-r736-2678-fcrx
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- NeoRazorX facturascripts: <= 2025.92
- facturascripts/facturascripts (Packagist): up to 2025.92

## Every score

- GitHub_M: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/NeoRazorX/facturascripts/security/advisories/GHSA-r736-2678-fcrx> (exploit, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42877> (advisory)
- <https://github.com/NeoRazorX/facturascripts> (package)

## Sources

- CVE List: [CVE-2026-42877](https://www.cve.org/CVERecord?id=CVE-2026-42877), CVE Terms of Use, modified 2026-05-28
- GitHub Advisory Database: [GHSA-r736-2678-fcrx](https://github.com/advisories/GHSA-r736-2678-fcrx), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-42877](https://nvd.nist.gov/vuln/detail/CVE-2026-42877), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-42877 · Whole record: https://cve.day/CVE-2026-42877.json · Rebuilt by cve.day 2026-11-25T22:59:22.662Z
