Summary
CVE-2026-18781 is a code injection vulnerability (CWE-94) in the "Drag and Drop Multiple File Upload for Contact Form 7" WordPress plugin. The plugin fails to validate the final filename of an uploaded file after stripping characters from it, allowing unauthenticated attackers to bypass its file-type restrictions and upload files that execute arbitrary code on the server. The flaw is rated HIGH severity with a CVSS v3.1 base score of 8.1.
Technical details
- Root cause: the plugin strips certain characters from uploaded filenames but does not re-validate the resulting filename before accepting the upload, so the file-type/extension restriction can be bypassed.
- Trigger condition: an attacker submits a crafted file upload (e.g., through a Contact Form 7 form using the plugin’s drag-and-drop upload field) with a filename engineered so that character stripping produces a disallowed extension (such as a server-executable script) that passes validation.
- Attack vector: network, requiring no authentication and no user interaction, though the CVSS vector marks attack complexity as high.
- Impact: successful exploitation allows the uploaded file to be executed on the server, resulting in full compromise of confidentiality, integrity, and availability of the affected WordPress site.
Affected software
- Drag and Drop Multiple File Upload for Contact Form 7 (WordPress plugin): all versions before 1.3.9.9
Severity
- CVSS v3.1 Base Score: 8.1 (High)
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Mitigation and recommended actions
- Immediate: Upgrade the "Drag and Drop Multiple File Upload for Contact Form 7" plugin to version 1.3.9.9 or later, where filename validation after character stripping is corrected.
- If no patch can be applied immediately: disable or remove the plugin’s file upload functionality on public-facing forms, restrict access to forms using the plugin, and monitor uploaded-file directories for unexpected executable file types until the update can be applied.

