Update Database for Contact Form 7 now: a flaw lets any visitor upload a file to your site
Wordfence disclosed on 27 November 2026 that the Database for Contact Form 7 plugin, used on more than 60,000 WordPress sites, lets any visitor upload a file that can run as code. Version 1.5.6 closes the flaw — update now.

Affects
- WordPress
Tracked as
CVE-2026-115867Database for Contact Form 7, WPforms, Elementor forms plugin for WordPress
A WordPress plugin that saves form entries to the database has a flaw that lets any visitor upload a file to the site — no account, no login. The plugin runs on more than 60,000 sites, and on some servers the uploaded file can run as code, handing the site to an attacker. The fix, version 1.5.6, has been available since 11 November.

What happened
Wordfence published the flaw, tracked as CVE-2026-115867, on 27 November 2026. The United States National Vulnerability Database published its record the same day. Wordfence rates the flaw 9.8 out of 10, the top of its scale, because an attacker needs no login and no help from a site visitor to use it.
The flaw sits in the plugin’s file-copy routine, called copy_files, which runs when a form built with Ninja Forms accepts an uploaded file. That routine never checks what kind of file it is being handed. It also takes the file from a web address the visitor supplies, and builds the saved file’s name from that address without blocking names that end in a runnable extension, such as .php.
The plugin tries to stop uploaded files from running by placing a rule file, named .htaccess, in its uploads folder. That rule only works on Apache servers that honour it. It does nothing on Nginx, on some LiteSpeed setups, or on Apache servers set to ignore such files — and if the rule file is deleted, the plugin never puts it back.
There is no sign yet that anyone has used the flaw in an attack, and no public proof of concept has appeared.
All versions up to and including 1.5.5 are affected. Version 1.5.6, released 11 November, fixes the flaw — its changelog names the arbitrary file upload through Ninja Forms as fixed.

What this means for you
If the plugin is on the site, anyone on the internet can send it a file through a form, and on servers where the plugin’s own block does not apply, that file can run. A running file can change pages, read stored form entries, add accounts, or use the site to attack others. Neither the site owner nor the attacker needs to be logged in — the form is open to everyone.
The risk is highest for sites on Nginx, where the plugin’s rule file never applies. Sites on Apache that honour the rule are safer, but only while that rule file stays in place.
What to do
- In the WordPress admin, go to Dashboard, then Updates, and update “Database for Contact Form 7, WPforms, Elementor forms” to version 1.5.6. If the plugin page is open in another tab, use the update button there: https://wordpress.org/plugins/contact-form-entries/
- Look in the plugin’s uploads folder for files that should not be there — anything ending in .php, or any file dated before the update that nobody on the team recognises. Delete anything suspicious, and ask the host to look if anything seems off.
- Turn on automatic updates for the plugin: in the admin, go to Plugins, then Installed Plugins, find the plugin, and switch on “Enable auto-updates”.
- If the plugin is not in use on the site, remove it instead of updating it — a plugin that is gone cannot be attacked.
Sources
- Database for Contact Form 7, WPforms, Elementor forms <= 1.5.5 - Unauthenticated Arbitrary File Upload via Ninja Forms SubmissionWordfence Threat Intelligence
- CVE-2026-115867 DetailNIST National Vulnerability Database
- CVE-2026-115867: Database for Contact Form 7 plugin allows unauthenticated file uploadStackFlag
- Database for Contact Form 7, WPforms, Elementor formsWordPress.org


