The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-66205

CVE-2025-66205: Frappe Framework SQL Injection Vulnerability

CVE-2025-66205 is an error-based SQL injection flaw in Frappe Framework that allows attackers to extract database information. This article covers the technical details, affected versions, security impact, and mitigation.

Updated: January 22, 2026

CVE-2025-66205 Overview

CVE-2025-66205 is a critical SQL Injection vulnerability affecting the Frappe full-stack web application framework. The vulnerability exists in a certain endpoint that lacks proper validation of parameters, making it susceptible to error-based SQL injection attacks. Attackers can exploit this flaw to extract sensitive information from the database, including version details and potentially other confidential data.

Critical Impact

This vulnerability has a CVSS score of 9.8 (Critical) with network-based attack vector requiring no authentication. Successful exploitation could lead to unauthorized access to sensitive database information, data manipulation, and potential complete system compromise.

Affected Products

  • Frappe Framework versions prior to 15.86.0
  • Frappe Framework versions prior to 14.99.2

Discovery Timeline

  • 2025-12-01 - CVE-2025-66205 published to NVD
  • 2025-12-04 - Last updated in NVD database

Technical Details for CVE-2025-66205

Vulnerability Analysis

The vulnerability is classified as CWE-89 (SQL Injection) and resides in the Frappe framework's database query handling mechanism. The flaw stems from insufficient validation and sanitization of user-supplied parameters before they are incorporated into SQL queries. Error-based SQL injection allows attackers to extract database information by triggering deliberate errors and analyzing the error messages returned by the application.

The CVSS:3.1 vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H indicates:

  • Attack Vector: Network-based, remotely exploitable
  • Attack Complexity: Low - easily exploitable
  • Privileges Required: None - no authentication needed
  • User Interaction: None required
  • Impact: High confidentiality, integrity, and availability impact

Root Cause

The root cause of this vulnerability lies in the inadequate function detection mechanism within the frappe/model/db_query.py module. The framework was not properly parsing and validating SQL functions, allowing malicious SQL syntax to bypass input sanitization controls. The lack of proper SQL parsing meant that crafted input could be interpreted as executable SQL rather than data.

Attack Vector

The vulnerability is exploitable over the network without authentication. An attacker can send specially crafted requests to the vulnerable endpoint, injecting malicious SQL syntax that exploits error-based extraction techniques. When the database engine processes the malformed query, it returns error messages containing sensitive information that the attacker can leverage to enumerate database structure and extract data.

The security patch introduces sqlparse for proper SQL function detection:

python
 import re
 from collections import Counter
 from collections.abc import Mapping, Sequence
-from functools import cached_property
+from functools import cached_property, lru_cache
+
+import sqlparse
+from sqlparse import tokens
+from sqlparse.sql import Function, Parenthesis, Statement
 
 import frappe
 import frappe.defaults

Source: https://github.com/frappe/frappe/commit/984c641bff9539b6126a01146096f133db6a955b

The fix implements proper SQL parsing using the sqlparse library, which provides robust detection of SQL functions and statements, preventing injection attacks by properly identifying and handling SQL syntax elements.

Detection Methods for CVE-2025-66205

Indicators of Compromise

  • Unusual database error messages in application logs containing SQL syntax errors
  • Abnormal HTTP requests to Frappe endpoints with special characters (', ", ;, --, /**/)
  • Unexpected database queries appearing in database logs with error-inducing SQL constructs
  • Multiple failed requests followed by successful data extraction patterns

Detection Strategies

Organizations should implement the following detection strategies:

  1. Web Application Firewall (WAF) Rules: Configure WAF rules to detect and block SQL injection patterns, including error-based injection signatures such as EXTRACTVALUE(), UPDATEXML(), and other database-specific error functions.

  2. Database Activity Monitoring: Monitor database logs for unusual query patterns, syntax errors, and queries containing suspicious functions or concatenated strings.

  3. Application Log Analysis: Review Frappe application logs for error messages that may indicate exploitation attempts, particularly those referencing SQL parsing errors.

  4. Network Traffic Analysis: Inspect HTTP request payloads for SQL injection indicators in URL parameters, POST data, and headers targeting Frappe endpoints.

Monitoring Recommendations

Security teams should implement continuous monitoring of:

  • All inbound HTTP traffic to Frappe application servers
  • Database query logs for anomalous patterns and error frequencies
  • Application error rates and types, particularly SQL-related exceptions
  • Authentication and access logs for patterns indicating reconnaissance activity

SentinelOne Singularity platform provides real-time detection of SQL injection attempts through behavioral analysis and endpoint telemetry, enabling rapid identification and response to exploitation attempts.

How to Mitigate CVE-2025-66205

Immediate Actions Required

  • Update Frappe Framework to version 15.86.0 or later (for 15.x branch)
  • Update Frappe Framework to version 14.99.2 or later (for 14.x branch)
  • Review application and database logs for signs of prior exploitation
  • Implement Web Application Firewall rules to block SQL injection attempts as a defense-in-depth measure

Patch Information

The vulnerability has been addressed in the official Frappe security patch. The fix introduces the sqlparse library for proper SQL function detection in the sanitize_fields function within frappe/model/db_query.py.

Patch Commit: 984c641bff9539b6126a01146096f133db6a955b

Security Advisory: GHSA-mp93-8vxr-hqq9

Organizations should apply the patch immediately by upgrading to the fixed versions. The patch is available through the standard Frappe update process.

Workarounds

If immediate patching is not possible, organizations should implement the following temporary mitigations:

  • Deploy a Web Application Firewall (WAF) with SQL injection protection rules in front of the Frappe application
  • Restrict network access to the Frappe application to trusted IP addresses only
  • Enable enhanced database logging to detect exploitation attempts
  • Consider temporarily disabling or restricting access to the vulnerable endpoint if identified
bash
# Example: Restrict access to Frappe application using iptables
# Allow only trusted IP ranges
iptables -A INPUT -p tcp --dport 8000 -s 10.0.0.0/8 -j ACCEPT
iptables -A INPUT -p tcp --dport 8000 -j DROP

These workarounds should be considered temporary measures only. Applying the official security patch remains the definitive solution for addressing CVE-2025-66205.

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

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechFrappe

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-89
  • Vendor Resources
  • Patch

  • Vendor Advisory
  • Related CVEs
  • CVE-2026-32954: Frappe ERPNext SQL Injection Vulnerability

  • CVE-2026-31877: Frappe Framework SQL Injection Vulnerability

  • CVE-2026-29081: Frappe Framework SQLi Vulnerability

  • CVE-2026-31878: Frappe Framework SSRF 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
  • 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