# WS Form LITE – Drag & Drop Contact Form Builder <= 1.12.22 - Unauthenticated JavaScript Code Injection via Calculation Expressions

- **ID:** WPSEC-2026-4498
- **Plugin:** WS Form LITE – Drag & Drop Contact Form Builder (`ws-form`), https://wordpress.org/plugins/ws-form/
- **Affected versions:** all versions before 1.12.23
- **Fixed in:** 1.12.23 (Update to 1.12.23 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-95
- **Usage among sites WPSec scans:** plugin Low, affected versions None seen (as of 2026-12-03)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/ws-form
- **Fix released:** 2026-12-01
- **Published:** 2026-12-03
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4498/

## Description

The WS Form LITE plugin for WordPress is vulnerable to client-side JavaScript code injection (DOM-based Cross-Site Scripting) via calculation expressions in all versions up to, and including, 1.12.22 due to the front-end calculation engine evaluating strings built from parsed variables, which can include user-supplied field or query-string values, with new Function() without validating that they contain only numbers and operators. This makes it possible for unauthenticated attackers to execute arbitrary JavaScript in a victim's browser by tricking them into visiting a crafted link or entering crafted values into a form that uses calculated fields.

## References

- https://wpsec.com/vuln/WPSEC-2026-4498/
- https://plugins.svn.wordpress.org/ws-form/tags/1.12.23/
- https://wordpress.org/plugins/ws-form/

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

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.
