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

CVE-2026-42839: ERPNext Point of Sale XSS Vulnerability

CVE-2026-42839 is a cross-site scripting flaw in ERPNext Point of Sale that allows authenticated users to inject malicious scripts via Item records. This post covers technical details, affected versions, and mitigation.

Published: June 4, 2026

CVE-2026-42839 Overview

CVE-2026-42839 is a stored Cross-Site Scripting (XSS) vulnerability [CWE-79] affecting ERPNext version 16.16.0. An authenticated user with Item record edit permissions can persist arbitrary HTML or JavaScript in the item_name, description, or image fields of an Item record. The injected payload renders without proper escaping in the Point of Sale (POS) cart interface. Every operator who adds the affected item to a transaction executes the attacker-controlled script in their browser session.

Critical Impact

A privileged Item editor can pivot to compromise every POS operator session, harvesting credentials, session tokens, or executing actions on behalf of cashiers across all retail terminals.

Affected Products

  • ERPNext 16.16.0
  • Frappe ERPNext Point of Sale module
  • Deployments exposing POS cart interfaces to multiple operators

Discovery Timeline

  • 2026-06-03 - CVE-2026-42839 published to NVD
  • 2026-06-03 - Last updated in NVD database

Technical Details for CVE-2026-42839

Vulnerability Analysis

The vulnerability is a stored XSS flaw in the ERPNext Point of Sale interface. The application accepts unsanitized input in three Item record fields: item_name, description, and image. These fields are persisted to the database without HTML encoding. When a POS operator selects the item during a transaction, the cart component renders the stored values directly into the Document Object Model (DOM) without contextual output escaping.

The attack surface is limited to authenticated users with Item edit privileges. However, the blast radius is broad. Every cashier or store operator who touches the poisoned item triggers the payload, making this a one-to-many attack pattern in retail environments.

Refer to the Fluid Attacks Security Advisory and the GitHub ERPNext Repository for additional technical context.

Root Cause

The root cause is missing output encoding in the POS cart rendering logic. ERPNext stores Item attributes as raw strings and interpolates them into HTML templates without applying contextual escaping. The framework treats privileged user input as trusted, violating the principle of defense in depth for stored content.

Attack Vector

An attacker with Item edit permissions authenticates to ERPNext and modifies an Item record. They inject a JavaScript payload, for example a <script> tag or an onerror handler within the image field. The malicious item then waits in the catalog. When any POS operator adds the item to a cart, their browser parses the unescaped markup and executes the script in the context of the operator's authenticated ERPNext session.

No verified proof-of-concept code is available. See the Fluid Attacks advisory linked above for technical details on payload placement in the item_name, description, and image fields.

Detection Methods for CVE-2026-42839

Indicators of Compromise

  • Item records containing <script>, onerror, onload, javascript:, or other HTML event handlers in the item_name, description, or image fields
  • Outbound HTTP requests from POS terminal browsers to unfamiliar domains shortly after item lookup
  • Unexpected DOM modifications or new form fields appearing in the POS cart interface

Detection Strategies

  • Query the ERPNext database for Item field values containing HTML tags or JavaScript scheme prefixes
  • Review audit logs for Item record modifications by users who do not normally edit the catalog
  • Inspect Content Security Policy (CSP) violation reports from POS operator browsers

Monitoring Recommendations

  • Alert on Item create or update events that introduce angle brackets or javascript: strings in text fields
  • Monitor POS operator session activity for anomalous API calls following item selection
  • Track failed CSP directives in browser telemetry collected from POS endpoints

How to Mitigate CVE-2026-42839

Immediate Actions Required

  • Audit all Item records for HTML or script content in the item_name, description, and image fields and sanitize affected entries
  • Restrict Item edit permissions to a minimal set of trusted catalog administrators
  • Apply vendor updates from the Frappe ERPNext project once a fixed release is published

Patch Information

ERPNext 16.16.0 is identified as affected. Consult the GitHub ERPNext Repository for the latest releases and security fixes. Apply any maintenance release that addresses the stored XSS condition in the POS cart rendering path.

Workarounds

  • Implement a strict Content Security Policy that disallows inline scripts on POS interface routes
  • Add server-side input validation that rejects HTML tags and JavaScript URI schemes in Item text fields
  • Temporarily revoke Item write permissions from non-essential accounts until the patch is deployed
bash
# Example CSP header to block inline script execution on POS routes
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/TechErpnext

  • SeverityMEDIUM

  • CVSS Score4.8

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • Fluid Attacks Security Advisory

  • GitHub ERPNext Repository
  • Related CVEs
  • CVE-2026-42840: ERPNext POS Interface XSS Vulnerability

  • CVE-2026-38432: ERPNext Email Template XSS Vulnerability

  • CVE-2025-65924: ERPNext XSS Vulnerability

  • CVE-2025-65923: ERPNext CSV Import XSS 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