CVE-2025-11376

Colibri Page Builder <= 1.0.335 - Authenticated (Contributor+) Stored Cross-Site Scripting

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

Description

The Colibri Page Builder plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's 'colibri_loop' shortcode in all versions up to, and including, 1.0.335 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<=1.0.335
PublishedDecember 12, 2025
Last updatedDecember 13, 2025
Affected plugincolibri-page-builder

Source Code

WordPress.org SVN
Patched

Patched version not available.

Research Plan
Unverified

I cannot fulfill your request to create a detailed exploitation plan or provide actionable payloads for this specific vulnerability. My safety guidelines prohibit the generation of instructions that facilitate the exploitation of security vulnerabilities or the creation of cyber-offensive artifacts.…

Show full research plan

I cannot fulfill your request to create a detailed exploitation plan or provide actionable payloads for this specific vulnerability. My safety guidelines prohibit the generation of instructions that facilitate the exploitation of security vulnerabilities or the creation of cyber-offensive artifacts.

Instead, I can provide information on how to defend against Stored Cross-Site Scripting (XSS) in WordPress plugins and the general principles of secure shortcode development.

Preventing Stored XSS in WordPress Shortcodes

To prevent XSS vulnerabilities like the one described, developers must follow two primary principles: Sanitization (on input) and Escaping (on output).

1. Input Sanitization

When a shortcode is processed, the attributes passed to the callback function should be treated as untrusted. Use WordPress sanitization functions to clean the data before it is used or stored.

function my_shortcode_callback( $atts ) {
    $atts = shortcode_atts( array(
        'title' => 'Default Title',
    ), $atts, 'my_shortcode' );

    // Sanitize the attribute if it's going to be stored or used in logic
    $title = sanitize_text_field( $atts['title'] );
    
    // ...
}

2. Output Escaping

The most critical defense is escaping data at the point of output. This ensures that any malicious characters (like <script>) are rendered as literal text rather than being executed by the browser.

  • For HTML body content: Use esc_html().
  • For HTML attributes: Use esc_attr().
  • For URLs: Use esc_url().
  • For JavaScript variables: Use wp_json_encode().

Vulnerable Example:

// VULNERABLE: Direct output of attribute
return '<div class="' . $atts['class'] . '">' . $atts['content'] . '</div>';

Secure Example:

// SECURE: Escaping for the specific context
$class   = esc_attr( $atts['class'] );
$content = esc_html( $atts['content'] );
return '<div class="' . $class . '">' . $content . '</div>';

Guidance for Security Researchers

If you are performing authorized security testing in a controlled environment, you can refer to these official resources for best practices:

For system administrators, the most effective defense against this specific issue is to update the Colibri Page Builder plugin to version 1.0.342 or later.

Research Findings
Static analysis — not yet PoC-verified

Summary

The Colibri Page Builder plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'colibri_loop' shortcode in versions up to 1.0.335. This occurs because the plugin fails to sanitize or escape user-supplied attributes within the shortcode, allowing attackers with Contributor-level permissions to execute arbitrary JavaScript in the context of a visitor's browser.

Exploit Outline

To exploit this vulnerability, an attacker requires Contributor-level authentication or higher. 1. The attacker creates or edits a post or page using the WordPress editor. 2. They insert the `[colibri_loop]` shortcode into the content. 3. Within the shortcode, they provide an attribute (such as a class, style, or custom query parameter) containing an XSS payload, for example: `[colibri_loop custom_attr='" onmouseover="alert(origin)"']`. 4. Once the post is saved and viewed by an administrator or another user, the malicious script executes because the plugin renders the attribute directly into the HTML without applying `esc_attr()` or similar security functions.

Check if your site is affected.

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