The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2024-4704

CVE-2024-4704: Contact Form 7 Open Redirect Vulnerability

CVE-2024-4704 is an open redirect vulnerability in Contact Form 7 WordPress plugin that enables attackers to redirect users to malicious sites. This article covers the technical details, affected versions, and mitigation.

Updated: January 22, 2026

CVE-2024-4704 Overview

CVE-2024-4704 is an open redirect vulnerability affecting the Contact Form 7 WordPress plugin versions prior to 5.9.5. This popular WordPress plugin, developed by Rocklobster, contains a flaw that allows attackers to craft malicious URLs that redirect users to attacker-controlled websites. Open redirect vulnerabilities are classified under CWE-601 (URL Redirection to Untrusted Site) and can be leveraged in phishing campaigns to increase the perceived legitimacy of malicious links.

Critical Impact

Attackers can abuse the trusted domain reputation of WordPress sites using Contact Form 7 to redirect users to malicious destinations, facilitating phishing attacks, credential theft, and malware distribution.

Affected Products

  • Contact Form 7 WordPress plugin versions before 5.9.5
  • WordPress installations running vulnerable Contact Form 7 versions
  • Websites utilizing Rocklobster Contact Form 7 plugin

Discovery Timeline

  • 2024-06-27 - CVE-2024-4704 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2024-4704

Vulnerability Analysis

This open redirect vulnerability exists due to insufficient validation of URL parameters within the Contact Form 7 plugin. The vulnerability allows network-based attacks that require user interaction, specifically tricking a user into clicking a crafted link. The changed scope indicates that successful exploitation can impact resources beyond the vulnerable component itself, potentially affecting the user's browser session on other domains.

The attack does not require any authentication or special privileges on the target WordPress site. When exploited, this vulnerability enables limited unauthorized access to confidential information and allows modification of data integrity, though it does not impact system availability.

Root Cause

The root cause of CVE-2024-4704 stems from improper input validation in URL handling within the Contact Form 7 plugin. The application fails to adequately validate and sanitize redirect URL parameters before processing, allowing external URLs to be injected. This implementation flaw enables attackers to construct URLs that appear to originate from the legitimate WordPress domain but ultimately redirect users to malicious external sites.

Attack Vector

The attack is conducted over the network and requires user interaction. An attacker crafts a specially constructed URL containing a malicious redirect destination within the Contact Form 7 endpoint. When an unsuspecting user clicks this link—often delivered via phishing emails or social engineering—they are first directed to the legitimate WordPress site before being automatically redirected to the attacker's chosen destination.

This technique is particularly effective because the initial URL displays a trusted domain, making it more likely that security-conscious users and email filters will allow the request. The vulnerability can be chained with other attacks, such as credential harvesting pages that mimic the target WordPress site's login interface.

Detection Methods for CVE-2024-4704

Indicators of Compromise

  • Suspicious outbound redirects from Contact Form 7 plugin endpoints in web server access logs
  • URL parameters containing external domain references in requests to the WordPress site
  • User reports of unexpected redirects after clicking links that appear to point to your WordPress domain
  • Increased bounce rates or unusual traffic patterns on pages utilizing Contact Form 7

Detection Strategies

  • Monitor web application firewall (WAF) logs for requests containing external URLs in redirect parameters
  • Implement URL parameter analysis to detect attempts to inject external domains
  • Configure SIEM rules to alert on unusual redirect patterns originating from WordPress plugin endpoints
  • Review access logs for requests to Contact Form 7 paths containing URL-encoded external destinations

Monitoring Recommendations

  • Enable detailed logging for all Contact Form 7 related endpoints
  • Configure alerting for any HTTP 3xx responses that redirect to external domains
  • Implement real-time monitoring of outbound links generated by WordPress plugins
  • Deploy endpoint detection solutions to identify users who may have been redirected to malicious sites

How to Mitigate CVE-2024-4704

Immediate Actions Required

  • Update Contact Form 7 plugin to version 5.9.5 or later immediately
  • Audit WordPress plugin inventory and identify all installations running vulnerable versions
  • Review web server logs for evidence of exploitation attempts
  • Notify users who may have been exposed to phishing links utilizing this vulnerability

Patch Information

The vulnerability has been addressed in Contact Form 7 version 5.9.5. Site administrators should update to this version or later through the WordPress plugin management interface or by manually downloading the patched version from the official WordPress plugin repository. For detailed technical information about this vulnerability, refer to the WPScan Vulnerability Report.

Workarounds

  • Implement WAF rules to block requests containing external URLs in redirect parameters
  • Temporarily disable Contact Form 7 until the patch can be applied if the risk is unacceptable
  • Configure server-side URL validation to restrict redirect destinations to known safe domains
  • Deploy browser-based security controls that warn users when leaving the trusted domain
bash
# WordPress CLI command to update Contact Form 7
wp plugin update contact-form-7

# Verify the installed version after update
wp plugin list --name=contact-form-7 --fields=name,version,status

# Check for any other outdated plugins
wp plugin list --update=available --format=table

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeOther

  • Vendor/TechRocklobster Contact Form 7

  • SeverityMEDIUM

  • CVSS Score6.1

  • EPSS Probability0.65%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-601
  • Technical References
  • WPScan Vulnerability Report
  • Related CVEs
  • CVE-2025-3247: Contact Form 7 Auth Bypass Vulnerability

  • CVE-2024-2242: Contact Form 7 XSS Vulnerability

  • CVE-2020-35489: Contact Form 7 WordPress RCE Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English