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-23476

CVE-2026-23476: FacturaScripts Reflected XSS Vulnerability

CVE-2026-23476 is a reflected XSS flaw in FacturaScripts that allows attackers to inject malicious scripts via error messages. This article covers technical details, affected versions, impact, and mitigation steps.

Updated: May 15, 2026

CVE-2026-23476 Overview

CVE-2026-23476 is a reflected cross-site scripting (XSS) vulnerability in FacturaScripts, an open-source enterprise resource planning (ERP) and accounting application. The flaw exists in versions prior to 2025.8 and stems from the use of Twig's | raw filter when rendering error messages. When a database error is triggered, such as supplying a string where an integer is expected, the user-controlled input is echoed back into the response without HTML escaping. An attacker can craft a malicious link that executes arbitrary JavaScript in the victim's browser session [CWE-79].

Critical Impact

Authenticated attackers can execute arbitrary JavaScript in a victim's browser, leading to session theft, defacement, or actions performed on behalf of the user.

Affected Products

  • FacturaScripts versions prior to 2025.8
  • Self-hosted FacturaScripts ERP/accounting instances
  • Web deployments exposing the affected error rendering path

Discovery Timeline

  • 2026-02-02 - CVE-2026-23476 published to NVD
  • 2026-02-23 - Last updated in NVD database

Technical Details for CVE-2026-23476

Vulnerability Analysis

The vulnerability resides in the error message rendering pipeline of FacturaScripts. The application uses the Twig templating engine to display server-side errors back to the user. The template applies the | raw filter to the error message string, instructing Twig to bypass its default HTML auto-escaping behavior. When an unhandled exception or database error occurs, the message frequently contains the offending user input verbatim. This combination causes any HTML or JavaScript supplied by the attacker to be rendered as live markup in the browser.

Exploitation requires low privileges (an authenticated session) and user interaction, since the victim must visit an attacker-crafted URL. Because the scope is changed, the injected script executes in the FacturaScripts origin and can access session cookies and DOM data accessible to the user.

Root Cause

The root cause is improper output encoding in the Twig template responsible for rendering error feedback. The | raw filter disables contextual escaping, and the application does not sanitize the error string before passing it to the template. Database driver exceptions, such as type mismatch errors, embed the raw user-supplied value into the message, providing a direct injection channel.

Attack Vector

The attack vector is network-based and reflected. An attacker constructs a URL targeting a FacturaScripts endpoint where a parameter is type-coerced into an integer (for example, a record identifier). The attacker supplies a string payload containing HTML or JavaScript. The backend triggers a database error, and the resulting error page renders the payload unescaped. When a logged-in user clicks the link, the script runs in their session context.

The vulnerability is documented in the GitHub Security Advisory GHSA-g6w2-q45f-xrp4 and resolved in commit 2afd98c. No public proof-of-concept code is available.

Detection Methods for CVE-2026-23476

Indicators of Compromise

  • HTTP requests to FacturaScripts endpoints containing <script>, onerror=, onload=, or encoded JavaScript payloads in query parameters or form fields
  • Server-side application logs showing database type-mismatch or casting errors correlated with unusual parameter values
  • Outbound requests from authenticated user browsers to attacker-controlled domains shortly after visiting a FacturaScripts URL

Detection Strategies

  • Inspect web server and application logs for requests where integer-typed parameters receive non-numeric strings containing HTML metacharacters
  • Deploy a web application firewall (WAF) rule set that flags reflected XSS patterns targeting FacturaScripts URL paths
  • Review Twig template rendering errors and correlate them with the originating HTTP request to identify injection attempts

Monitoring Recommendations

  • Enable a strict Content Security Policy (CSP) and alert on report-uri or report-to violations originating from FacturaScripts hosts
  • Monitor session cookie usage for anomalies such as concurrent geographic logins after suspected XSS delivery
  • Track FacturaScripts version inventory and alert on any host still running a release prior to 2025.8

How to Mitigate CVE-2026-23476

Immediate Actions Required

  • Upgrade all FacturaScripts deployments to version 2025.8 or later, as released in the v2025.8 GitHub release
  • Review web access logs for prior exploitation attempts containing script tags or event handlers in request parameters
  • Rotate session tokens and credentials for users who may have followed suspicious links to the application

Patch Information

The issue is fixed in FacturaScripts 2025.8. The patch is applied in commit 2afd98cecd26c5f8357e0e321d86063ad1012fc3, which removes the unsafe | raw rendering of error messages so that Twig's default HTML escaping is enforced. Administrators should pull the release tag and redeploy following the project's standard upgrade procedure.

Workarounds

  • Restrict FacturaScripts access to trusted networks or VPN users until the upgrade is applied
  • Deploy a WAF rule that blocks requests containing HTML or JavaScript metacharacters in numeric parameters
  • Apply a strict Content Security Policy that disallows inline scripts to reduce the impact of a successful injection
bash
# Upgrade FacturaScripts to the patched release
git fetch --tags
git checkout v2025.8
composer install --no-dev --optimize-autoloader

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

  • EPSS Probability0.02%

  • 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 Release v2025.8
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-g6w2-q45f-xrp4
  • Related CVEs
  • CVE-2026-27964: FacturaScripts Reflected XSS Vulnerability

  • CVE-2026-23997: FacturaScripts Stored XSS Vulnerability

  • CVE-2026-27891: FacturaScripts Zip Slip RCE Vulnerability

  • CVE-2026-27892: FacturaScripts Information Disclosure Flaw
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