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

- Severity: High 7.5 (CVSS:3.1, scored by Wordfence) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.57%, higher than 48% of CVEs (2026-12-01)
- Published: 2026-11-26T09:33:23.069Z
- Modified: 2026-12-01T20:17:57.250Z
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- wpmanageninja Ninja Tables – Responsive Table Builder for Data, Pricing & Product Tables: up to 5.5.1

## 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/Modules/DataProviders/DefaultProvider.php#L143>
- <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>

## Sources

- CVE List: [CVE-2026-124211](https://www.cve.org/CVERecord?id=CVE-2026-124211), CVE Terms of Use, modified 2026-12-01
- NVD: [CVE-2026-124211](https://nvd.nist.gov/vuln/detail/CVE-2026-124211), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-124211 · Whole record: https://cve.day/CVE-2026-124211.json · Rebuilt by cve.day 2026-12-01T20:32:31.427Z
