# Kali Forms — Contact Form & Drag-and-Drop Builder <= 2.4.33 - Authenticated (Author+) Stored Cross-Site Scripting via Field Property Names

- **ID:** WPSEC-2026-4091
- **Plugin:** Kali Forms — Contact Form & Drag-and-Drop Builder (`kali-forms`), https://wordpress.org/plugins/kali-forms/
- **Affected versions:** all versions before 2.4.34
- **Fixed in:** 2.4.34 (Update to 2.4.34 or later.)
- **Severity:** Medium 6.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/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-27)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/kali-forms
- **Fix released:** 2026-11-26
- **Published:** 2026-11-27
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4091/

## Description

The Kali Forms plugin for WordPress is vulnerable to Stored Cross-Site Scripting via form field property names in all versions up to, and including, 2.4.33, due to insufficient validation and escaping of the property key. Keys are stored after only sanitize_text_field() and are output as a data- attribute name with esc_attr(), which leaves spaces and equals signs intact, and the guard for JavaScript event-handler properties only matches keys that consist of a whole on* name. This makes it possible for authenticated attackers with Author-level access and above, who can publish forms, to inject arbitrary attributes such as event handlers into the public form. The injected script runs whenever a user views a page that contains the form.

## References

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

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

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.
