Summary
CVE-2026-40798 is a critical unauthenticated SQL Injection vulnerability in the wpForo Forum WordPress plugin, affecting all versions up to and including 3.0.4. The flaw arises from insufficient validation of user-supplied sorting parameters passed into forum topic database queries, classified under CWE-89 (Improper Neutralization of Special Elements used in an SQL Command). With a CVSS v3.1 base score of 9.3 (Critical), any WordPress site running wpForo with its forum publicly accessible is exposed to unauthenticated remote exploitation.
Technical details
- Root cause: The plugin fails to adequately sanitize or parameterize user-supplied values in the topics sorting (ORDER BY) parameter before they are incorporated into SQL queries, enabling an attacker to manipulate the structure of those queries.
- Trigger conditions: No authentication is required. An attacker sends a specially crafted HTTP request to a publicly accessible wpForo forum endpoint, injecting malicious SQL via the sorting parameter — no login credentials or user interaction needed.
- Attack vector: Fully network-accessible and unauthenticated (AV:N, PR:N, UI:N) with Low attack complexity (AC:L), making exploitation straightforward and automatable at scale.
- Impact: The Changed scope (S:C) combined with High Confidentiality impact (C:H) means a successful attack can exfiltrate data beyond the plugin’s own database scope — potentially the entire WordPress database, including user credentials, hashed passwords, email addresses, and site configuration. A Low Availability impact (A:L) indicates a potential for limited service disruption.
Affected software
- wpForo Forum (by Tomdever / gVectors Team) — all versions ≤ 3.0.4
Severity
- CVSS v3.1 Base Score: 9.3 (Critical)
- Vector String:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L - CWE: CWE-89 – Improper Neutralization of Special Elements used in an SQL Command
Mitigation and recommended actions
- Immediate: Upgrade wpForo Forum to version 3.0.5 or later. The 3.0.5 release (April 13, 2026) directly addresses this vulnerability; its changelog entry reads "Security: Hardened sorting parameter validation."
- If immediate patching is not feasible, restrict public access to wpForo forum pages using web application firewall rules or network controls to block unauthenticated requests carrying SQL injection patterns until the upgrade can be applied.
IONIX Status
The IONIX research team is tracking ongoing exploitation attempts and recommends immediate patching. Potentially affected assets are outlined in this post.

