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

CVE-2026-103999: Ultra Addons Contact Form 7 XSS Vulnerability

CVE-2026-103999 is a stored XSS flaw in Ultra Addons for Contact Form 7 that lets unauthenticated attackers inject malicious scripts via file uploads. This article covers the technical details, affected versions, and mitigation strategies.

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-103999 Overview

The Ultra Addons for Contact Form 7 plugin for WordPress contains a Stored Cross-Site Scripting (XSS) vulnerability via file upload. The flaw affects all versions up to and including 3.5.54. Unauthenticated attackers can inject arbitrary web scripts that execute when users access the injected page. The vulnerability stems from insufficient input sanitization and output escaping during file upload processing. The plugin's extension blocklist gatekeeper can be bypassed by uploading text-type files whose contents begin with an HTML payload. This issue is tracked as [CWE-79] Improper Neutralization of Input During Web Page Generation.

Critical Impact

Unauthenticated attackers can inject persistent JavaScript into WordPress sites by abusing permitted text file extensions, enabling session hijacking, credential theft, and site defacement.

Affected Products

  • Ultra Addons for Contact Form 7 (WordPress plugin) versions up to and including 3.5.54
  • WordPress sites using the vulnerable plugin with file upload functionality enabled
  • Related package identifier: ultimate-addons-for-contact-form-7

Discovery Timeline

  • 2026-10-16 - CVE-2026-103999 published to the National Vulnerability Database
  • 2026-10-16 - Last updated in NVD database

Technical Details for CVE-2026-103999

Vulnerability Analysis

The vulnerability resides in the file upload handling logic of the Ultra Addons for Contact Form 7 plugin. The plugin implements an extension blocklist intended to prevent dangerous file types from being uploaded. The gatekeeper checks only the file extension against a denylist and classifies the file as text/plain without inspecting its byte content.

Attackers abuse this trust by uploading files with permitted text extensions such as .txt, .csv, .vtt, .srt, and .asc. When the file contents begin with an HTML payload such as <BODY onload=…>, browsers render the response as HTML regardless of the server's declared content type. This triggers MIME sniffing behavior that executes injected scripts.

The stored payload executes in the browser context of any user who accesses the injected page. This enables session cookie theft, administrative account takeover, and arbitrary actions performed on behalf of authenticated administrators.

Root Cause

The root cause is incomplete file validation. The upload handler in addons/database/database.php (around lines 869, 895, and 901 in version 3.5.52) and supporting logic in inc/functions.php relies on extension-based classification. The code never inspects magic bytes or scans the file content for HTML or script markers before storing the file in a web-accessible location.

Attack Vector

The attack vector is network-accessible and requires no authentication or user interaction to upload the malicious file. An attacker crafts a text file with an embedded HTML payload, submits it through a contact form that uses the vulnerable plugin, and then shares or waits for the stored URL to be visited. The payload executes in the victim's browser whenever the uploaded resource is rendered.

See the Wordfence Vulnerability Report and the WordPress Changeset #3738548 for the technical fix details.

Detection Methods for CVE-2026-103999

Indicators of Compromise

  • Uploaded files in the plugin's upload directory with text extensions (.txt, .csv, .vtt, .srt, .asc) whose first bytes contain HTML markup such as <BODY, <SCRIPT, <IMG, or <SVG.
  • Unexpected outbound requests from site visitors to attacker-controlled domains originating from pages that reference uploaded form attachments.
  • Web server access logs showing POST requests to Contact Form 7 endpoints followed by GET requests to recently uploaded files from unusual referrers.

Detection Strategies

  • Scan the WordPress uploads directory for files bearing text extensions whose content begins with HTML tags or JavaScript event handlers.
  • Review the plugin version in use across all WordPress installations and flag any instance at or below 3.5.54.
  • Monitor web application firewall logs for form submissions containing payloads such as onload=, onerror=, or <script within file bodies.

Monitoring Recommendations

  • Enable file integrity monitoring on WordPress wp-content/uploads directories to detect new or modified files containing executable markup.
  • Log and alert on administrative session activity originating from unusual IP addresses shortly after visits to pages hosting uploaded form content.
  • Correlate contact form submission events with subsequent requests to uploaded files to identify stored XSS exploitation attempts.

How to Mitigate CVE-2026-103999

Immediate Actions Required

  • Update the Ultra Addons for Contact Form 7 plugin to a version newer than 3.5.54 as soon as a patched release is available via the WordPress plugin repository.
  • Audit the WordPress uploads directory for suspicious text files containing HTML or script content, and remove any malicious uploads.
  • Rotate credentials and invalidate active sessions for administrative accounts if signs of exploitation are present.

Patch Information

The vendor committed a fix in WordPress Changeset #3738548 targeting addons/database/database.php. Administrators should install the latest release from the WordPress Plugin Repository. Verify the installed plugin version through the WordPress admin dashboard after upgrade.

Workarounds

  • Disable the Ultra Addons for Contact Form 7 plugin until the patched version is deployed if immediate upgrade is not feasible.
  • Configure the web server to serve files from the uploads directory with the X-Content-Type-Options: nosniff header to prevent MIME sniffing of text uploads.
  • Restrict public access to the WordPress uploads directory via web application firewall rules that block requests containing HTML or script markers in file content.
bash
# Configuration example: enforce nosniff header for WordPress uploads (Nginx)
location ^~ /wp-content/uploads/ {
    add_header X-Content-Type-Options "nosniff" always;
    add_header Content-Security-Policy "default-src 'none'; sandbox;" always;
    types {
        text/plain txt csv vtt srt asc;
    }
}

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.