Skip to main content
Vulnerability Database/CVE-2026-104246

CVE-2026-104246: Contact Form 7 Signature Addon Path Traversal

CVE-2026-104246 is a path traversal vulnerability in Contact Form 7 Signature Addon for WordPress that lets attackers access arbitrary files via email attachments. This article covers technical details, affected versions, and mitigation.

Published:

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-104246 Overview

CVE-2026-104246 is a path traversal vulnerability [CWE-22] affecting the Contact Form 7 Signature Addon WordPress plugin through version 4.2.2. The plugin fails to sanitize the signature field value before constructing an email attachment path. Unauthenticated attackers can exploit this flaw to attach arbitrary files from the wp-content directory to a form's outgoing email. When the form is configured to send a copy of submissions to a submitter-controlled address, the attacker receives the targeted file contents.

Critical Impact

Unauthenticated remote attackers can read arbitrary files under wp-content, potentially exposing credentials, configuration data, and private uploads.

Affected Products

  • Contact Form 7 Signature Addon WordPress plugin
  • All versions through 4.2.2
  • WordPress sites configured to email form copies to submitter-supplied addresses

Discovery Timeline

  • 2026-10-17 - CVE-2026-104246 published to NVD
  • 2026-10-19 - Last updated in NVD database

Technical Details for CVE-2026-104246

Vulnerability Analysis

The Contact Form 7 Signature Addon accepts a signature field value from form submissions and uses that value when assembling the attachment path for the outgoing email. Because the plugin does not sanitize or validate the input, an attacker can inject path traversal sequences such as ../ into the signature field. The server then resolves the manipulated path and attaches the referenced file to the email generated by Contact Form 7.

The attack is bounded by Contact Form 7's current attachment handling, which restricts reads to files under the wp-content directory. This still exposes plugin configuration files, cached credentials, backups, uploaded user data, and other sensitive artifacts commonly stored in that path.

Root Cause

The root cause is missing input sanitization on the signature field value before it is used in filesystem path construction. The plugin trusts attacker-controlled form data when building the attachment reference, violating standard path canonicalization requirements described in [CWE-22].

Attack Vector

Exploitation requires network access to a vulnerable WordPress site that uses the Signature Addon and a form configured to email a copy of the submission to an address the attacker controls. The attacker submits the form with a traversal payload in the signature field. The server builds the attachment path, reads the targeted file from disk, and delivers it to the attacker's inbox as an email attachment. No authentication or user interaction is required. See the WPScan Vulnerability Report for additional technical detail.

Detection Methods for CVE-2026-104246

Indicators of Compromise

  • Contact Form 7 submissions containing ../ sequences or absolute path fragments in the signature field value.
  • Outbound mail from the WordPress host carrying unexpected attachments sourced from wp-content paths.
  • Web server access logs recording POST requests to Contact Form 7 submission endpoints with abnormally long or encoded signature parameters.

Detection Strategies

  • Inspect Contact Form 7 submission payloads for traversal patterns including ../, URL-encoded variants (%2e%2e%2f), and double-encoded sequences.
  • Correlate form submissions with outbound SMTP traffic that includes attachments not originating from legitimate uploads.
  • Review mail server logs for recipient addresses that match the submitter-supplied email field combined with non-standard attachment filenames.

Monitoring Recommendations

  • Enable verbose logging on Contact Form 7 and the Signature Addon to capture submitted field values.
  • Monitor file access patterns against wp-content for reads initiated by the PHP worker outside normal plugin activity.
  • Alert on repeated form submissions from the same source IP targeting signature-enabled forms.

How to Mitigate CVE-2026-104246

Immediate Actions Required

  • Disable the Contact Form 7 Signature Addon on affected WordPress sites until a vendor patch is confirmed installed.
  • Remove or reconfigure any Contact Form 7 forms that email submission copies to submitter-controlled addresses.
  • Audit wp-content for sensitive files such as backups, credential stores, and private media that could be exposed if exploited.

Patch Information

At the time of publication, the vulnerability affects the Contact Form 7 Signature Addon through version 4.2.2. Administrators should monitor the WPScan Vulnerability Report and the plugin's WordPress.org listing for a fixed release and upgrade immediately when available.

Workarounds

  • Replace the Signature Addon with an alternative signature capture mechanism that validates input strictly.
  • Modify Contact Form 7 templates to remove the [mail-2] auto-reply configuration or hardcode administrator-only recipient addresses.
  • Apply a web application firewall rule to block submissions containing path traversal sequences in signature-related form fields.
bash
# Example WAF rule concept to block traversal in form submissions
# Reject POST requests to /wp-admin/admin-ajax.php or /wp-json/contact-form-7/
# where any parameter contains ../ or encoded equivalents
SecRule ARGS "@rx (\.\./|%2e%2e%2f|%2E%2E%2F)" \
    "id:1026104246,phase:2,deny,status:403,msg:'CF7 Signature traversal attempt'"

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.