CVE-2026-23997: FacturaScripts has Stored Cross-Site Scripting (XSS) in "Observations" field via History View
Summary A Stored Cross-Site Scripting (XSS) vulnerability was discovered in the Observations field. The flaw occurs in the History view, where historical data is rendered without proper HTML entity encoding. This allows an attacker to execute arbitrary JavaScript in the browser of viewing the history by administrators.
Published Feb 2, 2026 · Updated Feb 3, 2026
Affected packages
facturascripts/facturascripts
- Ecosystem
- Composer (PHP)
- Affected
- <= 2025.71
- Fixed in
- No patched version yet
- Check
composer show facturascripts/facturascripts
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
A Stored Cross-Site Scripting (XSS) vulnerability was discovered in the Observations field. The flaw occurs in the History view, where historical data is rendered without proper HTML entity encoding. This allows an attacker to execute arbitrary JavaScript in the browser of viewing the history by administrators.
Details
When an administrator views the History tab of that specific note, the script executes in their browser session.
PoC
- Log in as a regular user.
- Open "Sales"=>"Customers"=> "Delivery Notes"
- Chose one of the customer or create the new one.
- Open "Delivery notes"
- Create a new Delivery Note or edit an existing one. Fill the "Number 2" field with any value and save.
- In the Observations field, enter the malicious JavaScript and save it again.
- Now we have record in "History" tab.
- Logout and login as admin. Next go to the "History" tab with malicious code:
Result: Upon opening the history record, the onerror event triggers, executing the JavaScript and displaying an alert box with the application's origin.
Impact
Change admin password via XSS:
Admin password was changed
This vulnerability results in a Critical Full Account Takeover, allowing any user with note-editing permissions to seize control of the admin account. It successfully bypasses CSRF protections and exploits the lack of "current password" verification during credential changes. Once compromised, the attacker gains total access to the system's management, sensitive financial data, and user configurations.
Technical requirements & Complexity
The attack requires prior technical knowledge of the internal API structure (field names and required values), which can be obtained by a legitimate user through browser developer tools. While it requires the target's code (e.g., admin), this is a common default value in most installations.
Credited to jaroslaw-wawiorko.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Composer (PHP) vulnerabilities
All Composer (PHP) entriesCVE-2026-45262
FacturaScripts: Authenticated SQL injection in the FacturaScripts REST API filter parameter via parenthesis bypass in `Where::sqlColumn`
critical9.9Jul 14, 2026CVE-2026-45263
FacturaScripts: CSV formula injection in CSVExport allows authenticated low-priv users to plant payloads that execute when an admin opens the export
high8.0Jul 14, 2026CVE-2026-45693
FacturaScripts: Unauthenticated Path Traversal in Static File Controllers Reads Private MyFiles Documents
high7.5No fixJul 14, 2026CVE-2026-45710
FacturaScripts: Stored XSS in WidgetVariante and WidgetSubcuenta modal lists via HTML-attribute decoding of `Tools::noHtml`-escaped quotes inside `onclick=`
low3.5Jul 14, 2026CVE-2026-77526
FacturaScripts: Path traversal in UploadedFile::move() via getClientOriginalName() — arbitrary file write outside MyFiles/ leading to RCE
critical9.9Jul 14, 2026CVE-2026-47677
FacturaScripts: Account takeover of any 2FA-enabled user
critical9.3Jul 13, 2026
