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

CVE-2026-96752: Zero Spam WordPress Plugin XSS Vulnerability

CVE-2026-96752 is a stored XSS flaw in Zero Spam for WordPress plugin affecting Contact Form 7 integration. Unauthenticated attackers can inject malicious scripts through nested POST arrays. This article covers technical details, affected versions, impact assessment, 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-96752 Overview

CVE-2026-96752 is a stored cross-site scripting (XSS) vulnerability [CWE-79] in the Zero Spam for WordPress plugin. The flaw affects all versions up to and including 5.7.10. Unauthenticated attackers can inject arbitrary JavaScript by submitting a Contact Form 7 request with nested POST array keys containing HTML or script payloads. PHP parses the crafted field name into a nested array key, which Zero Spam stores verbatim in the zerospam_log.submission_data column when the submission is flagged as spam. The payload executes when an administrator views the logged submission in the plugin's admin interface.

Critical Impact

Unauthenticated attackers can achieve stored XSS in the WordPress admin panel, enabling session theft, administrative account takeover, and persistent backdoor installation.

Affected Products

  • Zero Spam for WordPress plugin — all versions through 5.7.10
  • WordPress sites using Zero Spam with the Contact Form 7 integration module enabled
  • Deployments where the zerospam_david_walsh_key honeypot field is absent from submissions

Discovery Timeline

  • 2026-09-25 - CVE-2026-96752 published to the National Vulnerability Database
  • 2026-09-25 - Last updated in NVD database

Technical Details for CVE-2026-96752

Vulnerability Analysis

The vulnerability resides in Zero Spam's Contact Form 7 integration module. When a Contact Form 7 submission is processed, the plugin collects $_POST data and persists it for review by administrators. Zero Spam flags any submission missing the hidden zerospam_david_walsh_key honeypot field as spam and writes the raw submission payload to the zerospam_log database table.

The plugin fails to sanitize nested array keys parsed from the request body. PHP automatically converts field names such as your-name[<script>...</script>] into nested associative array keys. The resulting structure is serialized into the submission_data column without encoding. When an administrator opens the log entry through the admin-modal-details.php template, the stored key is rendered directly into the DOM, executing attacker-controlled JavaScript in an authenticated session.

Root Cause

The root cause is insufficient input sanitization and output escaping [CWE-79] in two locations. The storage path in includes/class-db.php persists submission data without filtering array key content. The rendering path in includes/templates/admin-modal-details.php outputs the stored keys without applying esc_html() or equivalent WordPress escaping functions. Nested array keys are an attacker-controlled surface that the plugin treated as trusted structural metadata.

Attack Vector

An unauthenticated remote attacker locates any Contact Form 7 form on a target site running Zero Spam. The attacker submits the form while deliberately omitting the zerospam_david_walsh_key field so Zero Spam logs the request as spam. One of the form field names is crafted with a nested array index containing an HTML or JavaScript payload. Zero Spam stores the payload. When an administrator later reviews flagged submissions in the WordPress dashboard, the script executes with administrator privileges, enabling actions such as account creation, plugin installation, or theft of session cookies.

The vulnerability mechanism is documented in the Wordfence Vulnerability Report and the affected source paths are visible in the WordPress Zero Spam DB Class, Contact Form 7 Module, and Admin Modal Template.

Detection Methods for CVE-2026-96752

Indicators of Compromise

  • Rows in the zerospam_log table where the submission_data column contains <script, onerror=, onload=, javascript:, or encoded variants in serialized array keys
  • Contact Form 7 submissions missing the zerospam_david_walsh_key honeypot field combined with unusually structured field names
  • Unexpected WordPress administrator accounts, new plugins, or modified wp_options entries following administrator access to the Zero Spam dashboard

Detection Strategies

  • Query the zerospam_log table for serialized submission_data values containing HTML tag characters within array key positions
  • Inspect web server access logs for POST requests to Contact Form 7 endpoints with square brackets and script-like characters in parameter names
  • Monitor WordPress audit logs for administrator sessions that immediately precede privilege changes or plugin installations

Monitoring Recommendations

  • Alert on creation of new WordPress users with the administrator role outside of change windows
  • Enable file integrity monitoring on the wp-content/plugins/ and wp-content/mu-plugins/ directories
  • Capture and retain full request bodies for /wp-admin/admin-ajax.php and Contact Form 7 submission endpoints for forensic review

How to Mitigate CVE-2026-96752

Immediate Actions Required

  • Update the Zero Spam for WordPress plugin to the version released in the fix changeset 3709762
  • Review and purge existing entries in the zerospam_log table that contain suspicious serialized keys before any administrator opens the submissions dashboard
  • Rotate WordPress administrator credentials and invalidate active sessions if the plugin was installed and accessed prior to patching

Patch Information

The vendor addressed the flaw in the changeset referenced in the plugin's Subversion repository. The fix adds sanitization of nested POST array keys before storage and applies output escaping in the admin modal template. Site operators should upgrade to the first Zero Spam release above 5.7.10 that incorporates the changeset.

Workarounds

  • Disable the Contact Form 7 integration module within Zero Spam settings until the plugin is patched
  • Deactivate the Zero Spam plugin entirely on sites that cannot immediately update
  • Deploy a web application firewall rule that blocks POST requests to Contact Form 7 endpoints whose parameter names contain <, >, or script character sequences
bash
# Example WAF rule (ModSecurity) to block malicious nested array keys
SecRule REQUEST_METHOD "@streq POST" \
  "chain,id:1026967520,phase:2,deny,status:403,msg:'CVE-2026-96752 Zero Spam XSS attempt'"
  SecRule ARGS_NAMES "@rx (?:<script|onerror=|onload=|javascript:)" \
    "t:lowercase,t:urlDecodeUni"

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.