CVE-2026-124211
Deferred Deferred - Pending Action

SQL Injection in Ninja Tables WordPress Plugin

Vulnerability report for CVE-2026-124211, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-26

Last updated on: 2026-11-26

Assigner: Wordfence

Description

The Ninja Tables – Responsive Table Builder for Data, Pricing & Product Tables plugin for WordPress is vulnerable to SQL Injection via the 'dateFormat' column metadata parameter in versions up to, and including, 5.5.1 This is due to insufficient escaping on the stored 'dateFormat' value in DefaultProvider::orderByJsonQuery(); convertDateFormatToMysql() only performs str_replace on date-format tokens and leaves SQL metacharacters (including single quotes) intact, after which the value is concatenated directly into an orderByRaw() ORDER BY clause inside single quotes. This makes it possible for unauthenticated attackers to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database; the payload is stored in the _ninja_table_columns post meta and executed on every unauthenticated request to the wp_ajax_ninja_tables_public_action AJAX endpoint when the table uses sorting_type='by_column' with a date column.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-26
Last Modified
2026-11-26
Generated
2026-11-26
AI Q&A
2026-11-26
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-89 The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is a SQL Injection vulnerability in the Ninja Tables WordPress plugin up to version 5.5.1. It allows unauthenticated attackers to inject malicious SQL queries via the 'dateFormat' parameter. The flaw occurs because user input is not properly escaped before being used in an ORDER BY clause, enabling attackers to extract sensitive database information.

Detection Guidance

Check for suspicious database queries or unauthorized access patterns in WordPress logs. Monitor the wp_ajax_ninja_tables_public_action AJAX endpoint for unauthenticated requests with date column sorting. Inspect the _ninja_table_columns post meta for unexpected SQL metacharacters in the dateFormat parameter.

Impact Analysis

An attacker could exploit this to steal sensitive data from your WordPress database, such as user credentials, personal information, or other confidential data. The vulnerability is triggered by unauthenticated requests, meaning anyone can potentially access your site's database without needing an account.

Compliance Impact

This vulnerability could lead to unauthorized access to personal data, violating GDPR and HIPAA requirements for data protection. A breach could result in legal penalties, fines, and reputational damage due to non-compliance with data security regulations.

Mitigation Strategies

Update the Ninja Tables plugin to the latest version if available. Disable the plugin temporarily if an update is not immediately available. Review and remove any suspicious entries in the _ninja_table_columns post meta table. Implement a web application firewall to block malicious SQL injection attempts.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-124211. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...