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

CVE-2025-65923: ERPNext CSV Import XSS Vulnerability

CVE-2025-65923 is a stored cross-site scripting flaw in ERPNext through version 15.88.1 affecting the CSV import feature. Attackers can inject malicious scripts to hijack user sessions. This guide covers technical details, affected versions, impact, and mitigation strategies.

Published: February 6, 2026

CVE-2025-65923 Overview

A Stored Cross-Site Scripting (XSS) vulnerability was discovered within the CSV import mechanism of ERPNext through version 15.88.1 when using the "Update Existing Records" option. An attacker can embed malicious JavaScript code into a CSV field, which is then stored in the database and executed whenever the affected record is viewed by a user within the ERPNext web interface. This exposure may allow an attacker to compromise user sessions or perform unauthorized actions under the context of a victim's account.

Critical Impact

This stored XSS vulnerability allows attackers to persist malicious scripts in the ERPNext database via crafted CSV imports, enabling session hijacking and unauthorized actions whenever victims view compromised records.

Affected Products

  • ERPNext versions through 15.88.1
  • ERPNext installations using the CSV import functionality with "Update Existing Records" option
  • Frappe Framework-based deployments utilizing ERPNext

Discovery Timeline

  • 2026-02-03 - CVE CVE-2025-65923 published to NVD
  • 2026-02-04 - Last updated in NVD database

Technical Details for CVE-2025-65923

Vulnerability Analysis

This vulnerability is classified under CWE-79 (Improper Neutralization of Input During Web Page Generation), commonly known as Cross-Site Scripting. The stored XSS variant is particularly dangerous because the malicious payload persists in the application's database and executes each time a user views the affected record, potentially impacting multiple victims over time.

The vulnerability specifically affects the CSV import mechanism in ERPNext when the "Update Existing Records" option is enabled. This feature allows users to bulk update database records by uploading CSV files. However, the application fails to properly sanitize input fields within the CSV data before storing them in the database and subsequently rendering them in the web interface.

When a user with appropriate privileges views a record containing the injected payload, the malicious JavaScript executes within their browser session. This can lead to session token theft, account takeover, privilege escalation within the application, or phishing attacks disguised as legitimate ERPNext interface elements.

Root Cause

The root cause of this vulnerability lies in insufficient input validation and output encoding within the ERPNext CSV import processing pipeline. When CSV data is imported using the "Update Existing Records" functionality, field values containing HTML or JavaScript code are not properly sanitized before being stored in the database. Additionally, when these values are rendered in the web interface, they are not properly encoded, allowing embedded scripts to execute in the context of the viewing user's session.

Attack Vector

The attack vector is network-based and requires an authenticated attacker with privileges to import CSV data into ERPNext. The attacker crafts a malicious CSV file containing JavaScript payloads embedded within field values. Upon import using the "Update Existing Records" option, these payloads are stored in the database. When any user subsequently views the affected record through the ERPNext web interface, the malicious script executes in their browser.

A typical attack scenario involves embedding JavaScript payloads such as <script> tags or event handlers within CSV fields like description, notes, or custom text fields. The payload could steal session cookies, redirect users to phishing pages, modify displayed data, or perform actions on behalf of the victim user. For detailed technical information about the ERPNext and Frappe framework architecture, refer to the GitHub Frappe Docker Repository.

Detection Methods for CVE-2025-65923

Indicators of Compromise

  • Unusual JavaScript patterns or <script> tags present in database text fields that were populated via CSV import
  • Unexpected outbound network requests from user browsers when viewing ERPNext records
  • Session tokens or credentials appearing in unexpected locations such as external server logs
  • User reports of unexpected browser behavior or redirects when accessing ERPNext pages

Detection Strategies

  • Implement Content Security Policy (CSP) headers to detect and block inline script execution, monitoring CSP violation reports
  • Review database records imported via CSV for suspicious HTML or JavaScript content patterns
  • Monitor web application firewall logs for XSS payload signatures in CSV upload requests
  • Audit user activity logs for bulk import operations followed by anomalous account behavior

Monitoring Recommendations

  • Enable detailed logging for all CSV import operations including user, timestamp, and affected records
  • Configure browser-side monitoring for unexpected DOM modifications or script injections on ERPNext pages
  • Set up alerts for CSP violations that may indicate XSS exploitation attempts
  • Implement session anomaly detection to identify potential session hijacking following XSS attacks

How to Mitigate CVE-2025-65923

Immediate Actions Required

  • Restrict CSV import privileges to trusted administrative users only until a patch is applied
  • Review recently imported CSV data for potentially malicious JavaScript or HTML content
  • Implement strict Content Security Policy headers to mitigate the impact of stored XSS payloads
  • Educate users to report any unexpected behavior when viewing records in ERPNext

Patch Information

At the time of publication, no official vendor patch has been confirmed for this vulnerability. Organizations should monitor the ERPNext project and Frappe Framework for security updates addressing this stored XSS issue. The GitHub Frappe Docker Repository may contain updated deployment configurations as patches become available.

Workarounds

  • Implement input validation at the application level to sanitize CSV imports before database storage
  • Deploy a Web Application Firewall (WAF) with rules to detect and block XSS payloads in file uploads
  • Apply strict Content Security Policy headers with script-src 'self' to prevent inline script execution
  • Consider temporarily disabling the "Update Existing Records" CSV import option until the vulnerability is patched
bash
# Example Content Security Policy configuration for nginx
# Add to your ERPNext nginx server configuration
add_header Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; frame-ancestors 'self';" always;

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 Score5.4

  • EPSS Probability0.03%

  • 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 Frappe Docker Repository
  • Related CVEs
  • CVE-2025-65924: ERPNext XSS Vulnerability

  • CVE-2026-31017: ERPNext & Frappe SSRF 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