{"affected":[{"defaultStatus":"unaffected","product":"Ninja Tables – Responsive Table Builder for Data, Pricing & Product Tables","source":"CNA: Wordfence","vendor":"wpmanageninja","versions":[{"lessThanOrEqual":"5.5.1","status":"affected","version":"0","versionType":"semver"}]}],"cveId":"CVE-2026-124211","cwes":["CWE-89"],"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.","epss":null,"exploits":[],"kev":null,"metrics":[{"score":7.5,"severity":"high","source":"CNA: Wordfence","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"}],"modifiedAt":1795685603069,"publishedAt":1795685603069,"references":[{"source":"CNA: Wordfence","tags":[],"url":"https://www.wordfence.com/threat-intel/vulnerabilities/id/624e67b5-4159-46fa-a60b-964194e40ffb?source=cve"},{"source":"CNA: Wordfence","tags":[],"url":"https://plugins.trac.wordpress.org/browser/ninja-tables/tags/5.5.0/app/Modules/DataProviders/DefaultProvider.php#L129"},{"source":"CNA: Wordfence","tags":[],"url":"https://plugins.trac.wordpress.org/browser/ninja-tables/tags/5.5.0/app/Modules/DataProviders/DefaultProvider.php#L143"},{"source":"CNA: Wordfence","tags":[],"url":"https://plugins.trac.wordpress.org/browser/ninja-tables/tags/5.5.0/app/Hooks/Handlers/AjaxHandler.php#L30"},{"source":"CNA: Wordfence","tags":[],"url":"https://wordpress.org/plugins/ninja-tables/"},{"source":"CNA: Wordfence","tags":[],"url":"https://plugins.trac.wordpress.org/changeset/3811500/ninja-tables/trunk/app/Modules/DataProviders/DefaultProvider.php"}],"remediation":[],"revision":"129f2baac5bd1d33d079548439fcec3833448506de0fd56400baab7701d4be68","sources":[{"modifiedAt":1795685603069,"name":"CNA: Wordfence","retrievedAt":1795687708879,"url":"https://www.cve.org/CVERecord?id=CVE-2026-124211"}],"ssvc":null,"status":"published","title":"Ninja Tables <= 5.5.1 - Unauthenticated SQL Injection via 'dateFormat' Parameter","updatedAt":1795687708879}