# Calculated Fields Form – AI Form Builder for WordPress – Contact, Payment, Quote, Quiz & More <= 5.6.0.3 - Unauthenticated Reflected DOM-Based Cross-Site Scripting via Date/Timeslots Field set_timeslots()

- **ID:** WPSEC-2026-3916
- **Plugin:** Calculated Fields Form – AI Form Builder for WordPress – Contact, Payment, Quote, Quiz & More (`calculated-fields-form`), https://wordpress.org/plugins/calculated-fields-form/
- **Affected versions:** all versions before 5.6.0.4
- **Fixed in:** 5.6.0.4 (Update to 5.6.0.4 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-25)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/calculated-fields-form
- **Fix released:** 2026-11-24
- **Published:** 2026-11-25
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3916/

## Description

The Calculated Fields Form – AI Form Builder for WordPress – Contact, Payment, Quote, Quiz & More plugin for WordPress is vulnerable to Reflected DOM-Based Cross-Site Scripting via the Date/Timeslots field's set_timeslots() method in all versions up to, and including, 5.6.0.3, due to insufficient input validation and output escaping. Slot objects passed to set_timeslots() by a form equation were not validated, and the field built the available-slot markup by concatenating each slot label into an HTML string inserted with jQuery's .html(). This makes it possible for unauthenticated attackers to inject arbitrary web scripts that execute in a victim's browser if they can trick the victim into opening a crafted link, on forms whose equations pass URL-parameter-derived values (for example from getURLParameters()) into set_timeslots().

## References

- https://wpsec.com/vuln/WPSEC-2026-3916/
- https://plugins.svn.wordpress.org/calculated-fields-form/tags/5.6.0.4/
- https://wordpress.org/plugins/calculated-fields-form/

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

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.
