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-2025-68147

CVE-2025-68147: Open Source Point Of Sale XSS Vulnerability

CVE-2025-68147 is a Stored Cross-Site Scripting vulnerability in Open Source Point of Sale that allows attackers to inject malicious JavaScript into receipts. This post covers technical details, affected versions, and mitigation.

Published: June 2, 2026

CVE-2025-68147 Overview

CVE-2025-68147 is a stored Cross-Site Scripting (XSS) vulnerability in Open Source Point of Sale (opensourcepos), a PHP-based point-of-sale application built on the CodeIgniter framework. The flaw affects versions 3.4.0 through 3.4.1 and resides in the Return Policy configuration field within Store Configuration. The application fails to sanitize input before persisting it to the database and rendering it on transaction receipts. Attackers with administrative access can inject JavaScript payloads that execute in the browser of every user who views a receipt. The issue is tracked as [CWE-79] and was patched in version 3.4.2.

Critical Impact

Authenticated attackers can hijack sessions, exfiltrate sensitive transaction data, and perform unauthorized actions in the browser context of administrators and sales staff.

Affected Products

  • Open Source Point of Sale (opensourcepos) version 3.4.0
  • Open Source Point of Sale (opensourcepos) version 3.4.1
  • All opensourcepos deployments using the unpatched Return Policy configuration field

Discovery Timeline

  • 2025-12-17 - CVE-2025-68147 published to NVD
  • 2025-12-18 - Last updated in NVD database

Technical Details for CVE-2025-68147

Vulnerability Analysis

The vulnerability stems from missing output encoding in the receipt template that renders the Return Policy value. An authenticated user with access to Store Configuration can save arbitrary HTML and JavaScript into the field. The stored payload is retrieved and inserted into receipt views without HTML escaping, causing the browser to parse and execute the attacker-controlled markup.

Because receipts are viewed by every user completing or reviewing a transaction, the payload propagates broadly across administrators, cashiers, and back-office staff. Successful exploitation can lead to session cookie theft, credential harvesting via injected forms, forced administrative actions through CSRF chaining, and pivoting into adjacent application features.

The scope change reflected in the CVSS vector indicates that exploitation crosses the privilege boundary from the configuration component into the rendering context used by all authenticated sessions.

Root Cause

The root cause is improper neutralization of input during web page generation [CWE-79]. The CodeIgniter esc() helper was not applied to the Return Policy variable inside the receipt template, so raw user-supplied content was concatenated directly into the rendered HTML. The fix in commit 22297a introduces esc() around the field on output.

Attack Vector

Exploitation requires an authenticated account with rights to modify Store Configuration. A rogue administrator can inject the payload directly. Alternatively, a lower-privileged or external attacker can chain the previously disclosed CSRF weakness in opensourcepos to coerce an administrator's browser into saving the malicious value. Once stored, no further attacker interaction is needed — the payload fires whenever any user views a receipt.

For technical detail and proof-of-concept material, see the GitHub PoC for CVE-2025-68147 and the GHSA-xgr7-7pvw-fpmh advisory.

Detection Methods for CVE-2025-68147

Indicators of Compromise

  • HTML tags or <script> elements stored in the Return Policy field of the opensourcepos configuration table
  • Receipt HTML responses containing unexpected <script>, onerror, onload, or javascript: attributes
  • Outbound browser requests from staff workstations to unknown domains immediately after viewing receipts
  • Unexpected session token usage or administrative actions originating from staff accounts that recently viewed transactions

Detection Strategies

  • Query the application database for any non-plaintext content in the Return Policy configuration value, flagging records containing <, >, or &#
  • Inspect web server access logs for POST requests to the Store Configuration endpoint containing encoded script payloads
  • Deploy a web application firewall (WAF) rule that blocks script-like patterns submitted to configuration update endpoints
  • Review running opensourcepos versions and confirm they are at 3.4.2 or later through software inventory tooling

Monitoring Recommendations

  • Log all modifications to Store Configuration with the actor account, source IP, and submitted values
  • Alert on administrative configuration changes occurring outside expected maintenance windows
  • Monitor browser endpoints for anomalous JavaScript execution and outbound data transfers tied to point-of-sale workstations

How to Mitigate CVE-2025-68147

Immediate Actions Required

  • Upgrade opensourcepos to version 3.4.2 or later, which applies esc() to the Return Policy field in the receipt template
  • Audit the current Return Policy configuration value and remove any HTML or scripting content
  • Rotate session cookies and force re-authentication for all administrative and sales accounts after patching
  • Review administrative account activity for unexpected configuration changes since deployment of 3.4.0

Patch Information

The vendor released the fix in opensourcepos version 3.4.2 via commit 22297a. The patch wraps the Return Policy output in the CodeIgniter esc() function inside the receipt template, ensuring HTML entities are encoded before rendering. Refer to the vendor commit and the GHSA-xgr7-7pvw-fpmh security advisory for the authoritative remediation.

Workarounds

  • Restrict the Return Policy field to plain text only and prohibit any HTML markup as an operational policy
  • Limit Store Configuration access to a minimal set of trusted administrative accounts
  • Enforce strong CSRF protections and require re-authentication before saving configuration changes to reduce chained exploitation
  • Apply a Content Security Policy (CSP) that disallows inline script execution on receipt pages where feasible
bash
# Upgrade opensourcepos to the patched release
git fetch --tags
git checkout v3.4.2
composer install --no-dev --optimize-autoloader
php spark migrate

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechOpensourcepos

  • SeverityHIGH

  • CVSS Score8.1

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • GitHub PoC for CVE-2025-68147
  • Vendor Resources
  • GitHub Commit 22297a

  • GitHub Security Advisory GHSA-xgr7-7pvw-fpmh
  • Related CVEs
  • CVE-2026-32712: Open Source Point Of Sale XSS Vulnerability

  • CVE-2025-70091: OpenSourcePOS XSS Vulnerability

  • CVE-2025-70094: Open Source Point Of Sale XSS Flaw

  • CVE-2025-70095: Open Source Point Of Sale 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