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

CVE-2025-32020: crud-query-parser SQL Injection Flaw

CVE-2025-32020 is a SQL injection vulnerability in the crud-query-parser library's TypeORM adapter affecting the order/sort parameter. This security flaw allows attackers to inject malicious SQL queries when ordering is enabled.

Published: April 1, 2026

CVE-2025-32020 Overview

CVE-2025-32020 is a critical SQL injection vulnerability affecting the crud-query-parser library, a component that parses query parameters from HTTP requests and converts them to database queries. The vulnerability exists due to improper neutralization of the order/sort parameter in the TypeORM adapter, allowing attackers to inject malicious SQL code into database queries.

Critical Impact

Unauthenticated attackers can exploit this SQL injection vulnerability to access or modify sensitive data in the underlying database, potentially leading to complete database compromise.

Affected Products

  • crud-query-parser versions prior to 0.1.0
  • Applications using the TypeORM adapter with ordering enabled
  • Deployments without property filter configuration

Discovery Timeline

  • 2025-04-08 - CVE-2025-32020 published to NVD
  • 2025-04-08 - Last updated in NVD database

Technical Details for CVE-2025-32020

Vulnerability Analysis

This SQL injection vulnerability (CWE-89: Improper Neutralization of Special Elements used in an SQL Command) exists in the TypeORM adapter component of the crud-query-parser library. The vulnerability arises when user-controlled input in the order or sort query parameters is not properly sanitized before being incorporated into database queries.

Applications are vulnerable when three conditions are met: they use the TypeORM adapter, have ordering functionality enabled, and have not implemented a property filter to restrict which fields can be used for sorting. When these conditions exist, an attacker can craft malicious HTTP requests containing SQL injection payloads in the ordering parameters.

The attack is network-accessible and requires no authentication or user interaction, making it particularly dangerous for internet-facing applications. Successful exploitation could allow attackers to read sensitive database contents, modify or delete data, or potentially escalate to further system compromise depending on the database configuration and privileges.

Root Cause

The root cause is improper input validation and sanitization in the TypeORM adapter's handling of ordering parameters. The order/sort parameter values from HTTP requests are passed to database query construction without adequate neutralization of SQL special characters and syntax. This allows attackers to break out of the intended query context and inject arbitrary SQL commands.

Attack Vector

The vulnerability is exploitable via crafted HTTP requests to any endpoint that uses the crud-query-parser library with the TypeORM adapter. An attacker can manipulate the order or sort query parameters to include SQL injection payloads. Since this is a network-based attack requiring no privileges or user interaction, any unauthenticated remote attacker can potentially exploit vulnerable deployments.

The attack targets the ordering clause of generated SQL queries, where injected content can be used to extract data through techniques such as error-based injection, UNION-based injection, or blind SQL injection depending on the application's error handling and response behavior.

Detection Methods for CVE-2025-32020

Indicators of Compromise

  • Unusual or malformed values in order or sort query parameters containing SQL syntax such as semicolons, quotes, UNION statements, or comment markers
  • Database error messages in application logs indicating SQL syntax errors from ordering operations
  • Unexpected database queries or data access patterns in database audit logs
  • HTTP requests with anomalous query strings targeting sorting functionality

Detection Strategies

  • Implement web application firewall (WAF) rules to detect SQL injection patterns in query parameters
  • Enable database query logging and monitor for suspicious ORDER BY clauses or syntax anomalies
  • Deploy runtime application self-protection (RASP) solutions to detect SQL injection attempts
  • Review application logs for repeated requests with varying order/sort parameter values indicative of injection testing

Monitoring Recommendations

  • Configure alerting for database errors related to malformed SQL queries in ordering operations
  • Monitor for high volumes of requests to endpoints using the crud-query-parser library
  • Implement anomaly detection for unusual query parameter patterns
  • Enable verbose logging on TypeORM to capture generated queries for forensic analysis

How to Mitigate CVE-2025-32020

Immediate Actions Required

  • Upgrade crud-query-parser to version 0.1.0 or later immediately
  • Implement a property filter to restrict which fields can be used for ordering operations
  • Consider temporarily disabling ordering functionality if immediate patching is not possible
  • Review database access logs for signs of prior exploitation

Patch Information

The vulnerability has been fixed in crud-query-parser version 0.1.0. Organizations should upgrade to this version or later to remediate the vulnerability. For more details, see the GitHub Security Advisory.

Workarounds

  • Configure a property filter to explicitly define allowed sorting fields, blocking arbitrary column names in order parameters
  • Disable ordering functionality entirely until the patch can be applied
  • Implement additional input validation at the application layer to sanitize order/sort parameters before they reach the library
  • Deploy a web application firewall with SQL injection detection rules as a defense-in-depth measure

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

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechTypeorm

  • SeverityCRITICAL

  • CVSS Score9.3

  • EPSS Probability0.22%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-89
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2022-33171: TypeORM findOne SQL Injection 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