A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-42877

CVE-2026-42877: FacturaScripts Stored XSS Vulnerability

CVE-2026-42877 is a stored Cross-Site Scripting flaw in FacturaScripts that allows authenticated users to inject malicious JavaScript via product references. This post covers technical details, affected versions, and mitigation.

Published: May 28, 2026

CVE-2026-42877 Overview

CVE-2026-42877 is a stored Cross-Site Scripting (XSS) vulnerability in FacturaScripts, an open source accounting and invoicing platform. The flaw affects versions 2025.92 and earlier. It resides in the product search modal used by sales and purchases documents, specifically in Core/Lib/AjaxForms/SalesModalHTML.php and Core/Lib/AjaxForms/PurchasesModalHTML.php. An authenticated user with access to the warehouse module can store malicious JavaScript inside a product reference field. The payload then executes in the browser of any other user who opens the product search modal from an invoice, order, or delivery note. This vulnerability is categorized under [CWE-79].

Critical Impact

Authenticated attackers can hijack sessions, perform actions on behalf of other users, and exfiltrate accounting data through script execution in the FacturaScripts UI.

Affected Products

  • FacturaScripts versions 2025.92 and earlier
  • Core/Lib/AjaxForms/SalesModalHTML.php component
  • Core/Lib/AjaxForms/PurchasesModalHTML.php component

Discovery Timeline

  • 2026-05-27 - CVE-2026-42877 published to NVD
  • 2026-05-27 - Last updated in NVD database

Technical Details for CVE-2026-42877

Vulnerability Analysis

The vulnerability stems from unsanitized output of product reference data in the FacturaScripts product search modal. When a user opens the product search dialog from a sales or purchase document, the application queries warehouse products and renders their reference fields directly into the HTML response. The rendering logic in SalesModalHTML.php and PurchasesModalHTML.php does not encode user-supplied reference values before injecting them into the DOM. Any JavaScript stored in the reference field executes in the context of the victim's authenticated session. Because invoices, orders, and delivery notes are routine workflows for accounting staff, the payload reaches users with broader privileges than the original attacker.

Root Cause

The root cause is missing output encoding in server-side template rendering. Product reference values originate from authenticated input in the warehouse module and are trusted by the modal renderer. The application stores the malicious string verbatim and emits it into HTML attributes or text nodes without applying HTML entity encoding or context-aware escaping. This is a classic stored XSS pattern described in [CWE-79].

Attack Vector

The attack requires an authenticated account with warehouse module permissions. The attacker creates or edits a product and embeds a JavaScript payload inside the reference field. The payload remains dormant in the database. When any other user — including administrators — opens an invoice, order, or delivery note and triggers the product search modal, the stored script executes in their browser. The CVSS vector CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N reflects network reachability, low attacker privileges, required user interaction, and a scope change into the victim's session context.

No verified public exploit code is available. Refer to the GitHub Security Advisory GHSA-r736-2678-fcrx for vendor-published technical details.

Detection Methods for CVE-2026-42877

Indicators of Compromise

  • Product records whose referencia field contains HTML or JavaScript syntax such as <script>, onerror=, or javascript: URIs.
  • Unexpected outbound HTTP requests from accounting users' browsers immediately after opening a product search modal.
  • Audit log entries showing product creation or edits from warehouse accounts followed by session anomalies for other users.

Detection Strategies

  • Inspect the FacturaScripts productos table for reference values containing angle brackets, event handlers, or encoded script payloads.
  • Review web server access logs for POST requests to product creation or update endpoints originating from low-privilege warehouse accounts.
  • Deploy a web application firewall rule that flags reflected script-like content in modal responses from /Core/Lib/AjaxForms/ endpoints.

Monitoring Recommendations

  • Enable Content Security Policy (CSP) reporting to capture script execution attempts inside the FacturaScripts UI.
  • Monitor browser console errors and CSP violation reports from accounting workstations.
  • Alert on creation of new product records that contain non-alphanumeric characters in reference fields.

How to Mitigate CVE-2026-42877

Immediate Actions Required

  • Upgrade FacturaScripts to a release later than 2025.92 that contains the fix referenced in the GitHub Security Advisory.
  • Audit existing product reference fields and remove any entries containing HTML or JavaScript syntax.
  • Restrict warehouse module permissions to trusted users until the patch is applied.

Patch Information

The maintainers published remediation guidance in the FacturaScripts GHSA-r736-2678-fcrx advisory. Apply the fixed version distributed through the official FacturaScripts repository. Verify the deployed version in the admin panel after upgrade.

Workarounds

  • Apply a strict Content Security Policy that disallows inline scripts on FacturaScripts pages.
  • Temporarily revoke warehouse module access for users who do not require product creation rights.
  • Manually sanitize product reference inputs at the application or reverse-proxy layer to strip HTML special characters.
bash
# Example CSP header to block inline script execution
Header set Content-Security-Policy "default-src 'self'; script-src 'self'; object-src 'none'; base-uri 'self'"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechFacturascripts

  • SeverityMEDIUM

  • CVSS Score5.4

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-27964: FacturaScripts Reflected XSS Vulnerability

  • CVE-2026-23476: FacturaScripts Reflected XSS Vulnerability

  • CVE-2026-23997: FacturaScripts Stored XSS Vulnerability

  • CVE-2026-42879: FacturaScripts RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English