CVE-2026-9843
Received Received - Intake
Arbitrary File Deletion in WordPress Form Plugins

Publication date: 2026-06-20

Last updated on: 2026-06-20

Assigner: Wordfence

Description
The Database for Contact Form 7, WPforms, Elementor forms plugin for WordPress is vulnerable to arbitrary file deletion due to insufficient file path validation in the view_page function in all versions up to, and including, 1.5.1. 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). Successful exploitation requires an administrator to view or edit the poisoned form entry, at which point PHP's bracket parser reshapes the attacker-crafted JSON key to bypass the stored-path isset check and trigger deletion of the traversal-specified file.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-20
Last Modified
2026-06-20
Generated
2026-06-20
AI Q&A
2026-06-20
EPSS Evaluated
N/A
NVD
EUVD
Affected Vendors & Products
Showing 3 associated CPEs
Vendor Product Version / Range
contact_form_7 contact_form_7 to 1.5.1 (inc)
wpforms wpforms to 1.5.1 (inc)
elementor elementor_forms to 1.5.1 (inc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-22 The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

The vulnerability exists in the Database for Contact Form 7, WPforms, and Elementor forms plugin for WordPress, specifically in the view_page function in all versions up to and including 1.5.1. It is caused by insufficient file path validation, which allows unauthenticated attackers to delete arbitrary files on the server.

The attack works by an attacker crafting a malicious JSON key that bypasses the stored-path check due to PHP's bracket parser behavior. When an administrator views or edits the poisoned form entry, this triggers the deletion of files specified by the attacker, including critical files like wp-config.php.

Impact Analysis

This vulnerability can have severe impacts because it allows unauthenticated attackers to delete arbitrary files on the server.

Deleting critical files such as wp-config.php can lead to remote code execution, which means attackers could gain control over the server, potentially leading to data breaches, website defacement, or complete site takeover.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-9843. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart