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.







