Skip to content
DayZeroHub
High Not yet writtenCVSS 7.5CVE-2026-124211

CVE-2026-124211: Ninja Tables <= 5.5.1 - Unauthenticated SQL Injection via 'dateFormat' Parameter

wpmanageninja Ninja Tables – Responsive Table Builder for Data, Pricing & Product Tables

Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.

Summary

CVE-2026-124211: high-severity vulnerability (CVSS 7.5) in wpmanageninja Ninja Tables – Responsive Table Builder for Data, Pricing & Product Tables.

What happened

Original description from the source: 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.

Why it matters

High severity, CVSS 7.5.

Affected products and versions

wpmanageninja Ninja Tables – Responsive Table Builder for Data, Pricing & Product Tables <= 5.5.1

ProductVersionsFixed in
wpmanageninja Ninja Tables – Responsive Table Builder for Data, Pricing & Product Tables<= 5.5.1—

Action recommended by the source

See the official references for the fix or mitigation.

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-89

Relevant change history

  1. Published

    Preliminary advisory published.