Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-33628

CVE-2026-33628: Invoice Ninja Stored XSS Vulnerability

CVE-2026-33628 is a stored XSS vulnerability in Invoice Ninja v5.13.0 that allows attackers to execute malicious scripts via invoice line items. This article covers technical details, affected versions, and mitigation.

Published: March 27, 2026

CVE-2026-33628 Overview

Invoice Ninja, a source-available invoice, quote, project and time-tracking application built with Laravel, contains a stored Cross-Site Scripting (XSS) vulnerability in version v5.13.0. The vulnerability exists in the invoice line item description field, which fails to properly sanitize user input before rendering. Attackers with authenticated access can inject malicious XSS payloads that execute when invoices are rendered in the PDF preview or client portal, potentially compromising user sessions and sensitive data.

Critical Impact

Stored XSS payloads in invoice line item descriptions execute when invoices are viewed in PDF preview or client portal, enabling session hijacking, credential theft, and unauthorized actions on behalf of legitimate users.

Affected Products

  • Invoice Ninja v5.13.0
  • Invoice Ninja versions prior to v5.13.4

Discovery Timeline

  • 2026-03-26 - CVE CVE-2026-33628 published to NVD
  • 2026-03-26 - Last updated in NVD database

Technical Details for CVE-2026-33628

Vulnerability Analysis

This vulnerability is classified as CWE-79 (Cross-Site Scripting). The root issue stems from insufficient input sanitization in the invoice line item description processing. When users create or edit invoices, the line item description field was not being passed through the purify::clean() sanitization function before rendering. This allowed attackers to craft payloads that bypass the existing XSS denylist filter.

The vulnerability requires authenticated access (low privileges) and user interaction to trigger, as victims must view the malicious invoice through the PDF preview or client portal. Due to the changed scope characteristic, successful exploitation can impact resources beyond the vulnerable component, potentially affecting other users viewing the same invoice or the broader portal session context.

Root Cause

The line item description field in Invoice Ninja v5.13.0 lacked proper sanitization. While other input fields utilized the purify::clean() function to strip potentially malicious content, the line item description bypassed this security control. The existing XSS denylist filter proved insufficient, as attackers could craft payloads using HTML entity encoding (such as < and &# sequences) to evade detection.

Attack Vector

The attack requires network access and authenticated credentials with at least low-level privileges. An attacker can inject malicious JavaScript payloads into invoice line item descriptions. When legitimate users (such as clients or administrators) view the invoice through the PDF preview or client portal, the XSS payload executes in their browser context. This can lead to session token theft, credential harvesting, or unauthorized actions performed on behalf of the victim.

php
// Security patch in app/Http/Requests/Product/StoreProductRequest.php
// Source: https://github.com/invoiceninja/invoiceninja/commit/b81a3fc302573fc4a53d61e8537dd19154ce1091

         $input['tax_name2'] ??= '';
         $input['tax_name3'] ??= '';
 
+        foreach (['notes', 'product_key', 'custom_value1', 'custom_value2', 'custom_value3', 'custom_value4'] as $field) {
+            if (isset($input[$field]) && is_string($input[$field]) && (str_contains($input[$field], '<') || str_contains($input[$field], '<') || str_contains($input[$field], '&#'))) {
+                $input[$field] = \App\Services\Pdf\Purify::clean($input[$field], true);
+            }
+        }
+
         $this->replace($input);
     }
 }

The patch adds sanitization by checking for HTML-related characters (<, <, &#) and applying Purify::clean() to multiple fields including notes, product_key, and custom value fields.

Detection Methods for CVE-2026-33628

Indicators of Compromise

  • Presence of HTML tags or JavaScript code within invoice line item descriptions in the database
  • Encoded HTML entities such as <script or <script patterns in product notes or line item fields
  • Unusual client-side script execution or network requests originating from invoice preview pages

Detection Strategies

  • Implement Content Security Policy (CSP) headers to detect and report unauthorized script execution
  • Monitor application logs for suspicious invoice creation or modification activities containing script-like content
  • Deploy Web Application Firewall (WAF) rules to detect XSS payload patterns in POST requests to invoice endpoints

Monitoring Recommendations

  • Enable verbose logging for invoice creation and modification endpoints
  • Configure alerting for database entries containing encoded HTML entities or script tags in description fields
  • Monitor client portal access logs for unusual session behavior following invoice views

How to Mitigate CVE-2026-33628

Immediate Actions Required

  • Upgrade Invoice Ninja to version v5.13.4 or later immediately
  • Audit existing invoice line item descriptions for potential malicious payloads
  • Review product notes and custom value fields for any injected XSS content
  • Consider temporarily restricting invoice creation privileges to trusted users until patched

Patch Information

The vendor has addressed this vulnerability in Invoice Ninja v5.13.4 by implementing purify::clean() sanitization on line item descriptions and related fields. The fix adds comprehensive input validation that checks for HTML tag indicators (<, <, &#) and sanitizes content before processing.

For detailed patch information, refer to:

  • GitHub Security Advisory GHSA-98wm-cxpw-847p
  • GitHub Release v5.13.4
  • GitHub Commit b81a3fc

Workarounds

  • Implement strict Content Security Policy (CSP) headers to mitigate XSS impact by restricting inline script execution
  • Deploy a Web Application Firewall (WAF) with XSS detection rules targeting invoice-related endpoints
  • Manually sanitize existing invoice data by searching for and removing HTML/script content from line item descriptions
bash
# Configuration example - Add CSP headers in Laravel middleware or web server config
# For Apache (.htaccess or httpd.conf):
Header set Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline';"

# For Nginx (nginx.conf or site configuration):
add_header Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline';";

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechInvoice Ninja

  • 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 Commit Changes

  • GitHub Release v5.13.4

  • GitHub Security Advisory GHSA-98wm-cxpw-847p
  • Related CVEs
  • CVE-2026-33742: Invoice Ninja Stored XSS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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