CVE-2026-126716: Mega Forms <= 1.7.9 - Unauthenticated Arbitrary File Deletion via Submitted Field Value
The Mega Forms – Drag & Drop Form Builder with Multi-Step & Conditional Logic plugin for WordPress is vulnerable to arbitrary file deletion due to insufficient file path validation in the deleteentry function in all versions up to, and including, 1.7.9 This makes it possible for unauthenticated attackers to delete arbitrary files on the server, which can easily lead to remote code execution when the right file is deleted (such as wp-config.php). The attacker-supplied path is stored via the unauthenticated form submission endpoint, but the actual file deletion only occurs when an administrator subsequently deletes the stored entry — a routine housekeeping action that serves as the detonation trigger. Successful exploitation additionally requires an action by an administrator — the attacker cannot trigger the vulnerability on their own.
Affected Software
Event History
Frequently Asked Questions
What conditions are required for exploitation?
An unauthenticated attacker must submit a form containing an attacker-controlled file path. The malicious path is only acted on when an administrator later deletes the stored form entry, so administrator interaction is required.
Are sites exposed if they use the plugin's normal form-submission functionality?
The attacker-controlled path is stored through the unauthenticated form submission endpoint. Sites that accept unauthenticated submissions and where administrators delete submitted entries are exposed to the described attack chain.
What makes this issue potentially severe?
Deletion of arbitrary server files can affect integrity and availability. Deleting a file such as wp-config.php can also create conditions that may lead to remote code execution.
How can administrators identify potentially malicious entries before deleting them?
The provided information indicates that the file path is stored in submitted form data before deletion occurs. Administrators should treat stored entries containing unexpected or attacker-controlled file paths as suspicious, although no specific detection pattern is provided.