FacturaScripts CVE-2026-27964
LOWAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to FacturaScripts
-
DeliveryIntercept and modify fsNick cookie with script payload
-
ExploitSend GET request with malicious cookie
-
ExecutionServer renders HTML with unsanitized payload
-
PersistJavaScript executes before session termination
-
ImpactAttacker performs unauthorized action
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The attacker must be authenticated to FacturaScripts with a valid session. The attacker must have the ability to modify the fsNick cookie in their own browser (via developer tools, local proxy, or browser extension) and send a request bearing the malicious cookie value. The victim's browser must load the resulting HTML page, which renders the unsanitized cookie value without encoding. No special server configuration or non-default application settings are required; the vulnerability exists in the default code path for any active session. |
| Impact | The CVSS:3.1 vector (AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N) assigns a score of 3.9, indicating low severity. Attack vector is LOCAL (AV:L) because the attacker must modify their own browser's cookie, not send a crafted request from the network. Privileges required (PR:L) confirms authentication is mandatory - the attacker must have a valid login session. User interaction (UI:R) is required as the victim's browser must load the modified request. Scope is UNCHANGED (S:U), limiting impact to the application itself. Confidentiality and Integrity are LOW (C:L/I:L), reflecting single-action capability. Availability is NONE (A:N). The combination of required login, local cookie modification, and single-action window before logout significantly constrains real-world risk. An attacker with shell or proxy access could exploit this to steal a session token or perform a single administrative action, but the tight timing window and logout redirection mitigate widespread harm. No EPSS score, POC availability status, or KEV listing was provided, so exploitation prevalence cannot be assessed. The practical threat is limited to compromised endpoints or man-in-the-middle scenarios where the attacker already has sufficient control to manipulate network traffic or local browser state. |
| Exploit ScenarioDerived | An authenticated attacker with access to their own browser or network traffic modifies the fsNick cookie to contain a JavaScript payload such as |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 07, 2026
Reflected cross-site scripting in FacturaScripts allows authenticated attackers to execute arbitrary JavaScript via manipulation of the fsNick cookie parameter. The application renders the cookie value directly into the HTML without sanitization, permitting script execution before session termination and logout redirection. CVSS score is 3.9 with low impact due to login requirement and single-action execution window.
RemediationAI
Patch status is currently unconfirmed - no vendor-released fix version is identified in available data. Immediate remediation requires upgrading to a patched version when released by the FacturaScripts maintainers; monitor the GitHub advisory at https://github.com/NeoRazorX/facturascripts/security/advisories/GHSA-gq5c-rw37-g46c for fix availability. As a compensating control pending patch deployment, enforce strict cookie handling policies: configure the fsNick cookie with HttpOnly flag (prevents JavaScript modification), Secure flag (HTTPS-only transmission), and SameSite=Strict (blocks cross-site cookie transmission). Apply output encoding at the template layer where the fsNick value is rendered; use a templating engine's automatic escaping feature or explicitly HTML-entity-encode all cookie values before DOM insertion. These controls do not prevent the underlying vulnerability but raise the bar for exploitation and limit the attacker's ability to inject executable JavaScript.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in composer
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
FacturaScripts is a PHP-based enterprise resource planning (ERP) and accounting web application. The vulnerability resides in cookie handling for the fsNick parameter, which stores user nickname/display name. The affected component fails to apply HTML entity encoding or output escaping when reflecting the cookie value into the DOM. This is a classic Reflected XSS (CWE-79) where unsanitized user-controllable input is output to HTML context without proper encoding. The attack chain relies on the attacker's ability to modify their own session cookie (via browser developer tools or proxy interception) and trigger a GET request that renders the malicious payload. Although the server invalidates the tampered session and redirects to logout, the vulnerable HTML is delivered to the browser before the redirect takes effect, allowing inline script execution within the initial page load.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N
Primary rating from Vendor (https://github.com/NeoRazorX/facturascripts) · only source for this CVE.
CVSS VectorVendor: https://github.com/NeoRazorX/facturascripts
DescriptionCVE.org
Summary
A Reflected Cross-Site Scripting (XSS) vulnerability exists in the fsNick cookie parameter. The application reflects the cookie's value directly into the HTML without sanitization.
Details
The fsNick cookie is rendered into the DOM without encoding. While the server does reject the modified session and forces a logout, the HTML containing the payload reaches the browser first. This lets the script execute immediately upon load, effectively beating the redirect.
PoC
- Log in to the application with any valid account.
<img width="2078" height="302" alt="image" src="https://github.com/user-attachments/assets/d8a9a779-44e0-4a3e-839f-0a031868fbd5" />
- Capture any the GET request .
<img width="1267" height="276" alt="image" src="https://github.com/user-attachments/assets/22e43f73-4f86-4cab-a074-7aba584a71ac" />
- Modify the value of "fsNick" with the following JavaScript:
<script>alert(window.origin)</script>
- Send the modified request.
<img width="1569" height="319" alt="image" src="https://github.com/user-attachments/assets/ade88db1-aadc-4c50-9e02-d09888067e98" />
- Result
<img width="1217" height="771" alt="image" src="https://github.com/user-attachments/assets/5858fe9f-127a-4845-b484-5a7ef4ae2cb4" />
Impact
The payload executes before the session ends, which could potentially allow for a single unauthorized action before the logout.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
GHSA-gq5c-rw37-g46c
NVD
CVE.org
EPSS
Exploit-DB