# Drag and Drop Multiple File Upload for Contact Form 7 <= 1.4.0 - Unauthenticated Stored Cross-Site Scripting via File Upload

- **ID:** WPSEC-2026-2308
- **Plugin:** Drag and Drop Multiple File Upload for Contact Form 7 (`drag-and-drop-multiple-file-upload-contact-form-7`), https://wordpress.org/plugins/drag-and-drop-multiple-file-upload-contact-form-7/
- **Affected versions:** all versions before 1.4.1
- **Fixed in:** 1.4.1 (Update to 1.4.1 or later.)
- **Severity:** Medium 5.4 (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Medium, affected versions Medium (as of 2026-11-03)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/drag-and-drop-multiple-file-upload-contact-form-7
- **Fix released:** 2026-10-30
- **Published:** 2026-11-03
- **URL:** https://wpsec.com/vuln/WPSEC-2026-2308/

## Description

The Drag and Drop Multiple File Upload for Contact Form 7 plugin for WordPress is vulnerable to Stored Cross-Site Scripting via file uploads in all versions up to, and including, 1.4.0 due to an incomplete extension blocklist in the 'dnd_upload_cf7_upload' AJAX upload handler (it did not cover script-capable types such as .xht, .xml, .xsl, .xslt, .xsd, .shtm and .phtm) and no inspection of file content. This makes it possible for unauthenticated attackers to upload XHTML/XML files containing script to the plugin's upload directory when a form's upload field accepts all file types ('*') and the site runs Contact Form 7 older than 6.2.4, which from that release renames these extensions to .txt. The script runs in the browser of any user who opens the uploaded file.

## References

- https://wpsec.com/vuln/WPSEC-2026-2308/
- https://plugins.svn.wordpress.org/drag-and-drop-multiple-file-upload-contact-form-7/tags/1.4.1/
- https://wordpress.org/plugins/drag-and-drop-multiple-file-upload-contact-form-7/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-2308/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
