PluginCheck.Security.DirectDB.UnescapedDBParameter

Database parameter is not escaped

A value is passed into database-related code without escaping, preparation, or strict allowlisting.

critical weight

Why It Shows Up

Plugin Check found a database parameter that appears to come from dynamic input without the usual `$wpdb->prepare()` protection.

Why It Matters

Database parameters often influence queries directly. Unsafe values can corrupt data access or create SQL injection risk.

How to Fix

  • Use `$wpdb->prepare()` for values.
  • Use explicit allowlists for table names, column names, order fields, and directions.
  • Sanitize and validate request data before it reaches query construction.

Affected Plugins

RankPluginScoreErrorsWarningsInstallsUpdatedTop Issue
#101Advanced Form Integration — Connect Forms to 200+ Apps225,7714,67810k+wp function not compatible with requires wp
#102Ajax Load More – Infinite Scroll, Load More, & Lazy Load2264159540k+Unsafe printing function
#103All-in-One Video Gallery229112,89220k+Non-prefixed global variable
#104Booking for Appointments and Events Calendar – Amelia221,48948090k+Exception output is not escaped
#105Shortcodes and extra features for Phlox theme2241342690k+Output is not escaped
#106Knowledge Base documentation & wiki plugin – BasePress Docs226711,7672k+Non-prefixed global variable
#107Better Messages – Chat Rooms, Group Chat, Private Messages & AI Chat Bots221,6042,01910k+Direct Query
#108BuddyPress225839,008100k+Non-prefixed function
#109Captcha by BestWebSoft – Advanced Spam Protection, Math & OCR-Friendly Captcha for Site Forms2249329510k+Text Domain Mismatch
#110Divi Carousel Lite – 17+ Carousel Module229671,27510k+Non-prefixed global variable
#111Cleanup Action Scheduler225451,3061k+Non-prefixed global variable
#112Clearfy Cache – WordPress optimization plugin, Minify HTML, CSS & JS, Defer222,8581,27050k+Text Domain Mismatch
#113Passster – Password Protect Pages and Content225391,41910k+Non-prefixed global variable
#114Cozy Blocks – Page Builder for Gutenberg Editor & FSE with 500+ Patterns, 57 Blocks & Templates222,1674,1757k+Non-prefixed global variable
#115RegistrationMagic – Custom Registration Forms, User Registration, Payment, and User Login223,6545,0618k+Non-prefixed global variable
#116Data Tables Generator by Supsystic2215614410k+Exception output is not escaped
#117Directorist: AI-Powered Business Directory, Listings & Classified Ads224432,12920k+Non-prefixed global variable
#118Download Manager222,2901,301100k+Output is not escaped
#119Dynamic QR Code – generator222382086k+Missing direct file access protection
#120E2Pdf – Export Pdf Tool for WordPress221,07583610k+Unsafe printing function
#121Easy Social Feed – Social Photos Gallery and Post Feed for WordPress221,5671,27730k+Non-prefixed global variable
#122EleSpare – News, Magazine and Blog Addons for Elementor227331,42310k+Non-prefixed global variable
#123Estatik Real Estate Plugin223,04932510k+Text Domain Mismatch
#124Events Manager – Calendar, Bookings, Tickets, and more!224,7225,62170k+Output is not escaped
#125Falang multilanguage for WordPress227167691k+Output is not escaped
#126Finale Lite – Sales Countdown Timer & Discount for WooCommerce221,0314514k+Output is not escaped
#127FireBox Popups – Increase Sales and Grow Your Email List221538127k+Non-prefixed global variable
#128Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder22409236700k+Text Domain Mismatch
#129Notification Bar, Announcement and Cookie Notice WordPress Plugin – FooBar221,3211,3713k+Non-prefixed global variable
#130Five Star Restaurant Menu and Food Ordering227526095k+Output is not escaped
#131FunnelKit Payment Gateway for Stripe WooCommerce2224432120k+Input is not sanitized
#132GeoDirectory – WP Business Directory Plugin and Classified Listings Directory224,4623,97210k+Output is not escaped
#133Anti-Malware Security and Brute-Force Firewall22544965100k+Output is not escaped
#134Happyforms – Form Builder for WordPress: Drag & Drop Contact Forms, Surveys, Payments & Multipurpose Forms221,03772220k+Unsafe printing function
#135Csomagpontok és Címkék WooCommerce-hez222,0017697k+Text Domain Mismatch
#136IMPress for IDX Broker221,0856367k+Text Domain Mismatch
#137Insert or Embed Articulate Content into WordPress226591,4372k+Non-prefixed global variable
#138InfiniteWP Client222,2861,812200k+Exception output is not escaped
#139Import WP – Export and Import CSV and XML files to WordPress225803304k+Exception output is not escaped
#140LearnPress – WordPress LMS Plugin for Create and Sell Online Courses222,3613,38470k+Non-prefixed global variable
#141Leyka222533,4452k+Request data is not unslashed
#142Custom Login Page Customizer – Login Designer225881,45530k+Non-prefixed global variable
#143MailOptin – Popup, Optin Forms & Email Newsletters for Mailchimp, HubSpot, AWeber Etc.222,6192,45310k+Output is not escaped
#144Slider, Gallery, and Carousel by MetaSlider – Image Slider, Video Slider22207323500k+Non-prefixed global variable
#145Modula Image Gallery – Photo Grid & Video Gallery22474436100k+Text Domain Mismatch
#146Molongui Authorship – Author Boxes, Guest Authors & Co-Authors for WordPress229191,23010k+Output is not escaped
#147Moloni229023562k+Missing Arg Domain
#148Motors – Car Dealership & Classified Listings Plugin225,3405,9589k+Text Domain Mismatch
#149Newsletters222,9682,2482k+Text Domain Mismatch
#150WP OAuth Server (OAuth Authentication)221893473k+Non-prefixed function