Contact Form 7 (WordPress plugin): is it safe?

Short answer: Version 6.0.6 or later has a fix for every vulnerability listed here. Older versions may be affected: check the table against the exact version you run. 1 actively exploited.

WordPress contact-form-7 has 6 known advisories in the phpwarden feed, 1 actively exploited. Feed 2026.11.23.2, updated 2026-11-23.

6advisories
2critical
1on CISA KEV
0no fix recorded
CVETitleSeverityCVSSAffectedFixed in
CVE-2020-35489 KEVUnrestricted file upload via unsanitised filenames (double extension)critical10.0<5.3.25.3.2
CVE-2018-20979The contact-form-7 plugin before 5.0.4 for WordPress has privilege escalation because of capability_type mishandling in register_post_type.critical9.8<5.0.45.0.4
CVE-2023-6449The Contact Form 7 plugin for WordPress is vulnerable to arbitrary file uploads due to insufficient file type validation in the 'validate' fmedium6.6<5.8.45.8.4
CVE-2024-2242The Contact Form 7 plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the ‘active-tab’ parameter in all versions up tomedium6.1<5.9.25.9.2
CVE-2024-4704The Contact Form 7 WordPress plugin before 5.9.5 has an open redirect that allows an attacker to utilize a false URL and redirect to the URLmedium6.1<5.9.55.9.5
CVE-2025-3247The Contact Form 7 plugin for WordPress is vulnerable to Order Replay in all versions up to, and including, 6.0.5 via the 'wpcf7_stripe_skipmedium5.3<6.0.66.0.6

Quick answers

Is Contact Form 7 safe to use?

Version 6.0.6 or later has a fix for every vulnerability listed here. Older versions may be affected: check the table against the exact version you run.

Is Contact Form 7 being actively exploited?

Yes. 1 of its 6 known vulnerabilities is on CISA's Known Exploited Vulnerabilities list, meaning attackers are using it now. Update before anything else.

How do I check my own site?

Run `phpwarden wordpress /path/to/wordpress`. phpwarden compares the exact version you have installed with these advisories and lists only the ones that apply, exploited ones first.

Am I affected?

Find out in one command. phpwarden checks your WordPress install against this advisory and 21,000+ others, ranked by real-world exploitation (CISA KEV + EPSS). Free, offline, open data.

# PHP projects (recommended)
composer require --dev phpwarden/phpwarden
# then
vendor/bin/phpwarden wordpress /path/to/wordpress

# or, without Composer
pipx install phpwarden   &&   phpwarden wordpress /path/to/wordpress

Or keep it checked automatically with the GitHub Action or a nightly cron; see WordPress docs.

Install docs   How findings are ranked
A version is vulnerable when it falls inside an affected range and below the fixed version. phpwarden applies these ranges to the exact versions in your lockfile or install, so you only see what applies to you.

Add this status to your README

phpwarden status badge

Maintainer of this package? The badge updates itself whenever the feed is rebuilt (twice a day). Add ?v=1.2.3 to the image address to show the status of one exact version.

[![phpwarden](https://phpwarden.io/badge/wordpress-plugin/contact-form-7.svg)](https://phpwarden.io/packages/wordpress-plugin/contact-form-7)