# Kali Forms — Contact Form & Drag-and-Drop Builder <= 2.4.31 - Unauthenticated Reflected Cross-Site Scripting via Form Submission Response

- **ID:** WPSEC-2026-2790
- **Plugin:** Kali Forms — Contact Form & Drag-and-Drop Builder (`kali-forms`), https://wordpress.org/plugins/kali-forms/
- **Affected versions:** from 2.1.0 before 2.4.32
- **Fixed in:** 2.4.32 (Update to 2.4.32 or later.)
- **Severity:** Medium 6.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-11-10)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/kali-forms
- **Fix released:** 2026-11-09
- **Published:** 2026-11-10
- **URL:** https://wpsec.com/vuln/WPSEC-2026-2790/

## Description

The Kali Forms plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the form submission response of the kaliforms_form_process AJAX action in all versions up to, and including, 2.4.31. This is due to the form processor returning its responses through wp_die(wp_json_encode(...)), which admin-ajax.php serves as text/html, without hex-escaping HTML characters. These responses echoed request-supplied values unsanitized, including the raw submitted form data and the admin_stop_reason and error_bag values, which the processor accepted from visitors. This makes it possible for unauthenticated attackers to inject arbitrary web scripts that execute in a victim's browser if they can trick a user into performing an action such as submitting a crafted form. In versions that require the form nonce, the attack works against visitors who are not logged in, because the nonce for logged-out visitors can be read from any public form page.

## References

- https://wpsec.com/vuln/WPSEC-2026-2790/
- https://plugins.svn.wordpress.org/kali-forms/tags/2.4.32/
- https://wordpress.org/plugins/kali-forms/

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

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.
