Skip to main content

FacturaScripts CVE-2026-27964

LOW
Cross-site Scripting (XSS) (CWE-79)
2026-05-07 https://github.com/NeoRazorX/facturascripts GHSA-gq5c-rw37-g46c
3.9
CVSS 3.1 · Vendor: https://github.com/NeoRazorX/facturascripts
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to FacturaScripts
  2. Delivery
    Intercept and modify fsNick cookie with script payload
  3. Exploit
    Send GET request with malicious cookie
  4. Execution
    Server renders HTML with unsanitized payload
  5. Persist
    JavaScript executes before session termination
  6. Impact
    Attacker 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 <script>alert(window.origin)</script>. Upon sending a GET request with the malicious cookie, the server renders the unsanitized payload into the HTML response before processing the session invalidation. The script executes immediately upon page load, allowing the attacker to steal session tokens, perform administrative actions, or trigger unintended state changes within the brief window before logout redirection.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

composer facturascripts/facturascripts fix: 2025.8, 2025.81

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

Vendor (https://github.com/NeoRazorX/facturascripts) PRIMARY 3.9 LOW
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

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

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

  1. 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" />

  1. Capture any the GET request .

<img width="1267" height="276" alt="image" src="https://github.com/user-attachments/assets/22e43f73-4f86-4cab-a074-7aba584a71ac" />

  1. Modify the value of "fsNick" with the following JavaScript:

<script>alert(window.origin)</script>

  1. Send the modified request.

<img width="1569" height="319" alt="image" src="https://github.com/user-attachments/assets/ade88db1-aadc-4c50-9e02-d09888067e98" />

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

EPSS Score
0.0%
Top 95% exploitable
Threat Intel
1
1 source
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Low

Priority Score

20
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +20
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

Affected Products (CPE)CVE.org

pkg:composer/facturascripts_facturascripts

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy