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

CVE-2025-65924: ERPNext XSS Vulnerability

CVE-2025-65924 is an XSS vulnerability in ERPNext through version 15.88.1 that enables attackers to inject malicious hyperlinks into PDF documents, facilitating phishing attacks. This post covers technical details, impact, and mitigation.

Published: February 6, 2026

CVE-2025-65924 Overview

ERPNext through version 15.88.1 contains an HTML injection vulnerability in the 'Add Quality Goal' function. The application fails to sanitize or remove certain HTML tags, specifically <a> hyperlinks, in fields intended for plain text input. While JavaScript is blocked to prevent traditional XSS attacks, the HTML markup is preserved when generating PDF documents. This allows attackers to inject malicious clickable links into ERP-generated PDFs, which are generally considered trustworthy by users, making them highly susceptible to phishing attacks or malware delivery.

Critical Impact

Attackers can inject malicious hyperlinks into trusted ERP-generated PDF documents, enabling phishing attacks and potential malware delivery through user trust exploitation.

Affected Products

  • ERPNext versions through 15.88.1
  • Frappe Framework (underlying framework)
  • PDF generation functionality within Quality Goal module

Discovery Timeline

  • 2026-02-03 - CVE CVE-2025-65924 published to NVD
  • 2026-02-05 - Last updated in NVD database

Technical Details for CVE-2025-65924

Vulnerability Analysis

This vulnerability is classified under CWE-80 (Improper Neutralization of Script-Related HTML Tags in a Web Page). The core issue lies in the application's incomplete input sanitization approach. While ERPNext implements controls to block JavaScript execution (preventing traditional XSS attacks), it fails to strip or neutralize HTML anchor (<a>) tags from user-controlled input fields.

When users create Quality Goals within the ERP system, the input fields accept HTML markup that persists through the PDF generation pipeline. The PDF renderer processes these HTML elements, resulting in fully functional clickable hyperlinks embedded within the generated documents. This creates a trust-based attack vector since PDF documents generated by enterprise systems are typically considered authoritative and safe by end users.

Root Cause

The root cause is inadequate input validation in the Quality Goal functionality. The application's sanitization logic specifically targets script execution but does not account for the security implications of allowing arbitrary HTML links in PDF output. The Frappe framework's PDF generation component preserves HTML formatting, including anchor tags with href attributes, without additional security filtering.

Attack Vector

The attack requires network access and low-privilege authentication to the ERPNext system. An attacker with basic user access can create or modify Quality Goal entries, injecting malicious <a> tags with attacker-controlled URLs into text fields. When these records are exported to PDF format, the malicious links become active elements within the document. Users who receive and open these PDFs may click the embedded links, believing them to be legitimate references, potentially leading to credential theft, malware downloads, or other social engineering attacks.

The attack leverages the inherent trust users place in internally-generated ERP documents. Since the links appear within an official business document, users are significantly more likely to interact with them compared to links received through external channels.

Detection Methods for CVE-2025-65924

Indicators of Compromise

  • Presence of HTML anchor tags (<a href=) in Quality Goal database entries or text fields
  • PDF documents generated from ERPNext containing unexpected external hyperlinks
  • User reports of suspicious links within ERP-generated PDF documents
  • Audit log entries showing unusual modification of Quality Goal records

Detection Strategies

  • Implement content inspection rules to detect HTML tags in plain text database fields
  • Review Quality Goal entries for embedded HTML markup using database queries
  • Monitor PDF generation logs for documents containing external URLs
  • Deploy email gateway rules to scan ERP-generated PDF attachments for suspicious links

Monitoring Recommendations

  • Enable detailed audit logging for Quality Goal creation and modification events
  • Implement regular automated scans of the Quality Goal database table for HTML content
  • Configure alerts for PDF generation events containing external domain references
  • Establish baseline analysis of normal link patterns in ERP-generated documents

How to Mitigate CVE-2025-65924

Immediate Actions Required

  • Review all existing Quality Goal entries for embedded HTML content and sanitize as needed
  • Implement input validation at the application layer to strip HTML tags from plain text fields
  • Educate users about the potential for malicious links in ERP-generated documents
  • Consider restricting Quality Goal creation privileges to trusted users only

Patch Information

No official vendor patch has been announced at the time of publication. Organizations should monitor the GitHub Frappe Docker Repository and official ERPNext release channels for security updates addressing this vulnerability. Given the low severity rating and requirement for authenticated access, organizations should prioritize this remediation based on their risk assessment.

Workarounds

  • Implement a custom server-side hook to sanitize HTML from Quality Goal fields before saving
  • Deploy a PDF post-processing solution to strip or neutralize hyperlinks from generated documents
  • Configure Content Security Policy headers where applicable to limit external resource loading
  • Use database triggers or application middleware to detect and block HTML injection attempts
bash
# Example: Query to identify potentially injected HTML in Quality Goal entries
# Run against your ERPNext/MariaDB database
mysql -u [username] -p erpnext -e "SELECT name, goal FROM \`tabQuality Goal\` WHERE goal LIKE '%<a %' OR goal LIKE '%href=%';"

# Example: Frappe bench command to run custom sanitization script
bench --site [site-name] execute custom_app.sanitize_quality_goals

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechErpnext

  • SeverityLOW

  • CVSS Score3.5

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-80
  • Technical References
  • GitHub Frappe Docker Repository
  • Related CVEs
  • CVE-2025-65923: ERPNext CSV Import 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