Ninja Tables – Responsive Table Builder for Data, Pricing & Product Tables
Ninja Tables <= 5.5.1 - Unauthenticated SQL Injection via 'dateFormat' Parameter
CVE-2026-124211Published 26 Nov 2026, 09:33 UTC
Real-world risk
6.8/ 10Medium
Schedule in the normal cycle
PreliminaryFrom the CVSS vector only · confidence low
CVSS
7.5
scored by the vendor (CNA), CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from Wordfence)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| Ninja Tables – Responsive Table Builder for Data, Pricing & Product TablesNiche | <= 5.5.1 | — |
What to do
Check the vendor advisory in the references below for fixed versions and workarounds.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Major data exposureReads secrets, credentials, databases, arbitrary files | From the CVSS vector | 0.80 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.6% chance of exploitation in 30 days (percentile 48), as of 2026-12-02.
The arithmetic
- Prerequisites multiplied together1.000
- Threat T1: Nothing known0.850
- 10 × impact 0.8 × prerequisites 1 × threat 0.856.800
- Rounded to one decimal between 0.1 and 106.8
Exploitation and evidence timeline
- 26 Nov 2026 Published
- 2 Dec 2026 Risk 6.8 (cvss fallback)
Weakness
CWE-89
References
- https://www.wordfence.com/threat-intel/vulnerabilities/id/624e67b5-4159-46fa-a60b-964194e40ffb?source=cve
- https://plugins.trac.wordpress.org/browser/ninja-tables/tags/5.5.0/app/Modules/DataProviders/DefaultProvider.php#L129
- https://plugins.trac.wordpress.org/browser/ninja-tables/tags/5.5.0/app/Hooks/Handlers/AjaxHandler.php#L30
- https://wordpress.org/plugins/ninja-tables/
- https://plugins.trac.wordpress.org/changeset/3811500/ninja-tables/trunk/app/Modules/DataProviders/DefaultProvider.php
- CVE-2026-124211 on CVE.org