# Database for Contact Form 7, WPforms, Elementor forms <= 1.5.7 - Unauthenticated SQL Injection via 'orderby' Parameter

- **ID:** WPSEC-2026-4433
- **Plugin:** Database for Contact Form 7, WPforms, Elementor forms (`contact-form-entries`), https://wordpress.org/plugins/contact-form-entries/
- **Affected versions:** all versions before 1.5.8
- **Fixed in:** 1.5.8 (Update to 1.5.8 or later.)
- **Severity:** Medium 5.9 (CVSS:3.1/AV:N/AC:H/PR:N/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-12-03)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/contact-form-entries
- **Fix released:** 2026-12-01
- **Published:** 2026-12-03
- **URL:** https://wpsec.com/vuln/WPSEC-2026-4433/

## Description

The Database for Contact Form 7, WPforms, Elementor forms plugin for WordPress is vulnerable to SQL Injection via the 'orderby' parameter in all versions up to, and including, 1.5.7. This is due to insufficient validation of the user-supplied value before it is placed into the ORDER BY clause of the entries query. The plugin checks the 'orderby' value from the query string against an allow-list but then builds the clause from the merged request value, which a POST parameter can override. The entries query reads this parameter from the request every time it runs, including when the [vx-entries] shortcode renders entries on a public page. This makes it possible for unauthenticated attackers to append additional SQL to existing queries and extract sensitive information from the database, when a page that displays entries through the [vx-entries] shortcode has been published by a user who can read entries.

## References

- https://wpsec.com/vuln/WPSEC-2026-4433/
- https://plugins.svn.wordpress.org/contact-form-entries/tags/1.5.8/
- https://wordpress.org/plugins/contact-form-entries/

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

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.
