# Ninja Tables <= 5.5.1 - Unauthenticated HTML Injection via Fluent Forms Entries in DataTables Tables

- **ID:** WPSEC-2026-3564
- **Plugin:** Ninja Tables – Responsive Table Builder for Data, Pricing & Product Tables (`ninja-tables`), https://wordpress.org/plugins/ninja-tables/
- **Affected versions:** from 5.5.0 before 5.5.2
- **Fixed in:** 5.5.2 (Update to 5.5.2 or later.)
- **Severity:** Medium 5.3 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N)
- **Weakness:** CWE-80
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-11-20)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/ninja-tables
- **Fix released:** 2026-11-19
- **Published:** 2026-11-20
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3564/

## Description

The Ninja Tables plugin for WordPress is vulnerable to HTML Injection via Fluent Forms entry values shown in DataTables-engine tables in all versions from 5.5.0 up to, and including, 5.5.1, due to insufficient output escaping. Cell values are passed to wp_kses_post() when the table is rendered. That function accepts whitespace after '<', so it turns text such as '< a ...>' into real HTML elements. Form plugins that sanitize with sanitize_text_field() store such text unchanged, because it is not a tag. This makes it possible for unauthenticated attackers who can submit a Fluent Forms form that feeds a DataTables table to inject HTML markup allowed for post content, such as links, images and styled text, which is shown to every visitor who views the table.

## References

- https://wpsec.com/vuln/WPSEC-2026-3564/
- https://plugins.svn.wordpress.org/ninja-tables/tags/5.5.2/
- https://wordpress.org/plugins/ninja-tables/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-3564/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
