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

Medium 5.9 CWE-89Fixed in 1.5.8
ID
WPSEC-2026-4433
Plugin
Database for Contact Form 7, WPforms, Elementor forms (contact-form-entries)
Affected
all versions before 1.5.8
Remediation
Update to 1.5.8 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Weakness
CWE-89
Usage
Plugin Low · Affected versions Low among sites WPSec scans, 2026-12-03
Attack surface
Database for Contact Form 7, WPforms, Elementor forms on WPSec AttackSurface
Fix released
Published

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

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS

License: CC BY 4.0