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

CVE-2026-38432: ERPNext Email Template XSS Vulnerability

CVE-2026-38432 is a Cross Site Scripting flaw in ERPNext v15.103.1 and earlier that allows attackers to inject malicious JavaScript in email templates. This article covers technical details, affected versions, and mitigation.

Published: May 7, 2026

CVE-2026-38432 Overview

CVE-2026-38432 is a stored Cross-Site Scripting (XSS) vulnerability affecting ERPNext v15.103.1 and earlier versions. The flaw resides in the Email Template engine, where input is not properly sanitized before rendering. An authenticated attacker with permission to create or edit email templates can inject malicious JavaScript. The injected payload executes in the victim's browser when the template is applied. The vulnerability is classified under CWE-79 (Improper Neutralization of Input During Web Page Generation).

Critical Impact

Authenticated attackers can execute arbitrary JavaScript in the browser of any user who applies a poisoned email template, enabling session hijacking, credential theft, and unauthorized actions within ERPNext.

Affected Products

  • ERPNext v15.103.1
  • ERPNext versions prior to v15.103.1
  • Frappe Email Template engine integrated with ERPNext

Discovery Timeline

  • 2026-05-05 - CVE-2026-38432 published to NVD
  • 2026-05-07 - Last updated in NVD database

Technical Details for CVE-2026-38432

Vulnerability Analysis

The vulnerability exists within the ERPNext Email Template engine, a feature that allows administrators and privileged users to define reusable HTML email bodies with dynamic placeholders. The template engine fails to neutralize JavaScript content embedded inside template fields before rendering them in the application's web interface.

When a user applies a malicious template, the rendering context evaluates the embedded <script> tags or HTML event handlers. The payload runs with the privileges of the victim's session within the ERPNext application. This stored XSS pattern persists across sessions because the malicious content is saved server-side as part of the template record.

The attack requires authenticated access with permission to create or edit email templates. User interaction is required, since the payload only fires when a victim selects or previews the template. The scope changes because the script executes outside the original security boundary of the stored data.

Root Cause

The root cause is missing or insufficient output encoding when rendering user-controlled email template fields. The application trusts template authors to supply safe HTML, but does not enforce a sanitizer policy or strict Content Security Policy (CSP) on rendered content.

Attack Vector

An attacker first obtains an account with email template management privileges. The attacker then creates or modifies a template containing JavaScript inside HTML attributes or script blocks. When another ERPNext user, including higher-privileged administrators, applies the template, the script executes in their browser context. Refer to the public technical write-up for proof-of-concept details.

Detection Methods for CVE-2026-38432

Indicators of Compromise

  • Email Template records containing <script> tags, javascript: URIs, or HTML event handlers such as onerror, onload, or onclick.
  • Audit log entries showing template creation or modification by accounts that do not normally manage communications.
  • Browser console errors or unexpected outbound network requests originating from the ERPNext UI when previewing or sending templated emails.

Detection Strategies

  • Query the tabEmail Template table for fields containing suspicious HTML patterns and review any matches against expected template content.
  • Inspect web server access logs for POST and PUT requests to /api/method/frappe.client.set_value and /api/resource/Email Template originating from low-trust accounts.
  • Correlate template edits with subsequent authenticated session anomalies, such as new API key generation or user permission changes.

Monitoring Recommendations

  • Enable Frappe activity logging for the Email Template doctype and forward events to a centralized log platform for retention and review.
  • Alert on any modification to email templates outside scheduled change windows or by non-administrative roles.
  • Monitor browser-side telemetry, such as CSP violation reports, to surface inline script execution attempts.

How to Mitigate CVE-2026-38432

Immediate Actions Required

  • Upgrade ERPNext to a version newer than v15.103.1 once the vendor publishes a fixed release that addresses the Email Template sanitization issue.
  • Restrict the Email Template Manager and equivalent roles to a small set of trusted administrators until patching is complete.
  • Audit existing email templates and remove any entries containing inline scripts, event handlers, or javascript: URIs.

Patch Information

No specific patched version is listed in the NVD record at the time of publication. Administrators should track the ERPNext GitHub repository and the Frappe security advisories for fix announcements and apply updates promptly when released.

Workarounds

  • Apply a strict Content Security Policy that disallows inline scripts (script-src 'self') at the reverse proxy or application layer to neutralize injected payloads.
  • Reduce the number of users assigned roles with email template create or edit permissions to limit the attack surface.
  • Implement a manual review workflow that requires a second administrator to approve any new or modified email template before it can be applied.
bash
# Example: enforce CSP via Nginx in front of ERPNext
add_header Content-Security-Policy "default-src 'self'; script-src 'self'; object-src 'none'; base-uri 'self'; 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 Score6.1

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • Hashnode Article on Stored XSS
  • Related CVEs
  • CVE-2026-42840: ERPNext POS Interface XSS Vulnerability

  • CVE-2026-42839: ERPNext Point of Sale 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