# JS Help Desk – AI-Powered Support & Ticketing System <= 5.0.6 - Authenticated (Help Desk Agent+) SQL Injection via 'tablename' Parameter

- **ID:** WPSEC-2026-3242
- **Plugin:** JS Help Desk – AI-Powered Support & Ticketing System (`js-support-ticket`), https://wordpress.org/plugins/js-support-ticket/
- **Affected versions:** all versions before 5.0.7
- **Fixed in:** 5.0.7 (Update to 5.0.7 or later.)
- **Severity:** Medium 4.9 (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N)
- **Weakness:** CWE-89
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-11-17)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/js-support-ticket
- **Fix released:** 2026-11-16
- **Published:** 2026-11-17
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3242/

## Description

The JS Help Desk – AI-Powered Support & Ticketing System plugin for WordPress is vulnerable to SQL Injection via the 'tablename' parameter of the ticket edit form in all versions up to, and including, 5.0.6, due to the JSSTtable::setColumns() update routine copying every submitted key that matches an object property onto the table object, including the internal 'tablename' property. WordPress then places that value, without escaping, into the table metadata query it runs before the UPDATE. This makes it possible for authenticated attackers with a help desk agent role that may edit tickets, and above, to add SQL to that query and extract sensitive information from the database.

## References

- https://wpsec.com/vuln/WPSEC-2026-3242/
- https://plugins.svn.wordpress.org/js-support-ticket/tags/5.0.7/
- https://wordpress.org/plugins/js-support-ticket/

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

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.
