A Leader in the 2025 Gartner® Magic Quadrant™ for Endpoint Protection Platforms. Five years running.A Leader in the Gartner® Magic Quadrant™Read the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI Security Portfolio
      Leading the Way in AI-Powered Security Solutions
    • 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
    • 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
      Digital Forensics, IRR & Breach Readiness
    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
    • 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-2025-68658

CVE-2025-68658: Open Source POS Stored XSS Vulnerability

CVE-2025-68658 is a stored XSS vulnerability in Open Source Point of Sale (opensourcepos) that allows authenticated users to inject malicious scripts via the Company Name field. This article covers technical details, affected versions, impact, and mitigation strategies.

Updated: January 22, 2026

CVE-2025-68658 Overview

CVE-2025-68658 is a stored Cross-Site Scripting (XSS) vulnerability affecting Open Source Point of Sale (opensourcepos), a web-based point of sale application written in PHP using the CodeIgniter framework. The vulnerability exists in the Configuration (Information) functionality, where an authenticated user with the "Configuration: Change OSPOS's Configuration" permission can inject malicious JavaScript payloads into the Company Name field. Due to insufficient input validation and output encoding, the injected script persists in the database and executes when any user accesses the /sales/complete endpoint.

Critical Impact

Authenticated attackers can inject persistent malicious scripts that execute in other users' browsers, potentially leading to session hijacking, credential theft, and unauthorized actions within the point of sale system.

Affected Products

  • Open Source Point of Sale (opensourcepos) version 3.4.0
  • Open Source Point of Sale (opensourcepos) version 3.4.1

Discovery Timeline

  • 2026-01-13 - CVE CVE-2025-68658 published to NVD
  • 2026-01-13 - Last updated in NVD database

Technical Details for CVE-2025-68658

Vulnerability Analysis

This stored XSS vulnerability occurs when processing user-supplied input in the Configuration module of opensourcepos. An authenticated user with elevated configuration permissions can inject arbitrary JavaScript code into the Company Name field through the Information settings. The application fails to properly sanitize this input before storing it in the database and subsequently fails to encode the output when rendering the data on the sales completion page.

The attack requires authentication and specific permissions, which limits the attack surface. However, once the payload is stored, it affects all users who access the /sales/complete endpoint, making this a one-to-many attack scenario particularly dangerous in multi-user retail environments.

Root Cause

The root cause is insufficient input validation and missing output encoding in the Configuration module. When updating the Company Name field in the Information section, the application accepts raw user input without sanitizing HTML or JavaScript content. Subsequently, when this data is displayed on the sales completion page, it is rendered without proper HTML entity encoding, allowing the injected script to execute in the context of the victim's browser session.

Attack Vector

The attack leverages the network-based attack vector and requires the attacker to have authenticated access with configuration change permissions. The exploitation sequence involves:

  1. The attacker authenticates to opensourcepos with an account that has "Configuration: Change OSPOS's Configuration" permission
  2. The attacker navigates to the Configuration section and selects Information settings
  3. A malicious JavaScript payload is entered into the Company Name field
  4. When any user accesses the Sales module and navigates to /sales/complete (by selecting Sales, creating a New Item, and clicking Completed), the stored payload executes in their browser

The attack does not require user interaction beyond normal application usage, making it effective against any user who performs routine sales operations. The stored nature of the XSS means the payload persists until the Company Name field is modified, allowing for ongoing exploitation.

Detection Methods for CVE-2025-68658

Indicators of Compromise

  • Unusual JavaScript code or HTML tags present in the Company Name configuration field
  • Unexpected script execution or browser alerts when accessing the /sales/complete endpoint
  • Audit logs showing modifications to Configuration settings with suspicious payloads containing <script>, onerror=, onload=, or similar event handlers
  • User reports of unexpected browser behavior or redirects when completing sales transactions

Detection Strategies

  • Implement web application firewall (WAF) rules to detect and block XSS payloads in POST requests to configuration endpoints
  • Enable Content Security Policy (CSP) headers to restrict inline script execution and report policy violations
  • Deploy application-level logging to capture all configuration changes with full payload details for forensic analysis
  • Use browser-based XSS auditors and security extensions to detect script injection attempts during testing

Monitoring Recommendations

  • Monitor database tables storing configuration values for suspicious entries containing script tags or JavaScript event handlers
  • Review application access logs for repeated access patterns to /sales/complete following configuration changes
  • Implement real-time alerting on configuration modifications, particularly to display-related fields like Company Name
  • Conduct periodic security scans of stored application data to identify potentially malicious content

How to Mitigate CVE-2025-68658

Immediate Actions Required

  • Upgrade opensourcepos to version 3.4.2 or later, which contains the fix for this vulnerability
  • Review and audit the Company Name field and other configuration values for any existing malicious payloads
  • Restrict "Configuration: Change OSPOS's Configuration" permissions to only trusted administrative users
  • Implement Content Security Policy headers to mitigate the impact of any undetected stored XSS payloads

Patch Information

The vulnerability has been fixed in opensourcepos version 3.4.2. The fix is available through the GitHub commit 849439c, which addresses the input validation and output encoding deficiencies. Additional details about the vulnerability and remediation can be found in the GitHub Security Advisory GHSA-32r8-8r9r-9chw.

Organizations should apply the update as soon as possible, particularly those running opensourcepos versions 3.4.0 or 3.4.1 in production environments.

Workarounds

  • Implement strict input validation on the Company Name field using server-side sanitization to strip HTML and JavaScript content
  • Apply output encoding using PHP's htmlspecialchars() or CodeIgniter's built-in XSS filtering on all configuration values before rendering
  • Deploy a Web Application Firewall (WAF) with XSS detection rules to filter malicious payloads
  • Limit configuration change permissions to a minimal set of highly trusted administrators until the patch is applied
bash
# Configuration example - Enable CodeIgniter's global XSS filtering
# In application/config/config.php, set:
$config['global_xss_filtering'] = TRUE;

# Additionally, ensure CSP headers are set in your web server configuration
# Apache example in .htaccess:
Header set 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/TechOpensourcepos

  • SeverityMEDIUM

  • CVSS Score4.3

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:L/A:L
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityLow
  • CWE References
  • CWE-79
  • Technical References
  • GitHub Commit Change

  • GitHub Security Advisory GHSA-32r8-8r9r-9chw
  • Related CVEs
  • CVE-2025-70092: OpenSourcePOS v3.4.1 XSS Vulnerability
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
  • English
  • 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