CVE-2026-124211
SQL injection in Ninja Tables dateFormat metadata
- CVSS 3.1
- 7.5 high
- EPSS
- —
- Published
- ·
- Modified
Ninja Tables for WordPress, through 5.5.1, concatenates a stored dateFormat column value into an ORDER BY clause after only replacing date tokens, leaving SQL metacharacters intact. An unauthenticated attacker can store a payload in _ninja_table_columns post meta; it runs on every unauthenticated request to wp_ajax_ninja_tables_public_action when a table uses by-column sorting on a date column. The attacker can extract sensitive database information. Sites running those versions with that sorting setup are affected.
What to do: No fixed version is stated for CVE-2026-124211.
| Product | Affected |
|---|---|
| Ninja Tables – Responsive Table Builder for Data, Pricing & Product Tables | up to, and including, 5.5.1 |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
Description · NVD
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.
- Ecosystems
- WordPress
- Weakness
- CWE-89
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
In the news
0 storiesNo ingested article mentions this CVE yet.