CVE-2025-32020
JavaScript vulnerability analysis and mitigation

Overview

The crud-query-parser library, which parses query parameters from HTTP requests and converts them to database queries, contains a critical SQL injection vulnerability (CVE-2025-32020) discovered in April 2025. The vulnerability affects versions 0.0.1, 0.0.2, and 0.0.3, specifically in the TypeORM adapter's handling of the order/sort parameter (GitHub Advisory).

Technical details

The vulnerability stems from improper neutralization of special elements in SQL commands within the TypeORM adapter. The issue specifically occurs when ordering is enabled and no property filter is set up. The vulnerability has been assigned a CVSS 4.0 base score of 9.3 (Critical) with the vector string 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, indicating network accessibility, low attack complexity, and no required privileges or user interaction (GitHub Advisory).

Impact

The vulnerability allows attackers to perform SQL injection attacks through the order/sort parameter, potentially leading to unauthorized access to or modification of database contents. The CVSS scoring indicates high impacts on both confidentiality and integrity of the vulnerable system (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 0.1.0, which introduces TypeORM field validation enabled by default. For users unable to upgrade immediately, two workarounds are available: 1) Add an allowlist of fields using the filterProperties function to filter out invalid fields before passing the crudRequest to the TypeOrmQueryAdapter, or 2) Disable ordering by cleaning up the order field just before passing it to the TypeOrmQueryAdapter (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66456CRITICAL9.1
  • JavaScriptJavaScript
  • elysia
NoYesDec 09, 2025
CVE-2025-66457HIGH7.5
  • JavaScriptJavaScript
  • elysia
NoYesDec 09, 2025
CVE-2025-65849MEDIUM6.9
  • JavaScriptJavaScript
  • altcha
NoNoDec 08, 2025
CVE-2025-66202MEDIUM6.5
  • JavaScriptJavaScript
  • astro
NoYesDec 09, 2025
CVE-2025-14284MEDIUM5.1
  • JavaScriptJavaScript
  • @tiptap/extension-link
NoYesDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management